> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ttapi.io/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenAI Image API Documentation

> Explore OpenAI image API endpoints on TTAPI, including image generation, image edits, GPT-4o image generation, and image fetch workflows.

# OpenAI Image API

The **OpenAI image API** on TTAPI gives developers one place to access image generation, image editing, GPT-4o image generation, and image result retrieval endpoints.

If you are searching for **OpenAI image API documentation**, start here and then open the endpoint that matches your workflow.

## What You Can Build With The OpenAI Image API

* Generate images with the [OpenAI Images Generations API](/api/en/openai/images-generations)
* Edit images with the [OpenAI Images Edits API](/api/en/openai/images-edits)
* Use GPT-4o image generation with the [4o Image Generations API](/api/en/openai/4o-image-generations)
* Retrieve image results with the [4o Image Fetch API](/api/en/openai/4o-image-fetch)

## Popular OpenAI Image Endpoints

| Use case                | Endpoint                                                           |
| :---------------------- | :----------------------------------------------------------------- |
| Image generation        | [OpenAI Images Generations API](/api/en/openai/images-generations) |
| Image editing           | [OpenAI Images Edits API](/api/en/openai/images-edits)             |
| GPT-4o image generation | [4o Image Generations API](/api/en/openai/4o-image-generations)    |
| Image result retrieval  | [4o Image Fetch API](/api/en/openai/4o-image-fetch)                |

## Recommended Workflow

1. Start with [image generation](/api/en/openai/images-generations) or [image editing](/api/en/openai/images-edits).
2. Use the [4o image generation endpoint](/api/en/openai/4o-image-generations) when your workflow is built around GPT-4o image output.
3. Use [4o image fetch](/api/en/openai/4o-image-fetch) when the workflow returns asynchronous results.

## Why Use TTAPI For OpenAI Image API Access

* Unified gateway for OpenAI image endpoints
* Stable auth and billing workflow

## FAQ

### Which endpoint should I start with?

Most users should start with the [OpenAI Images Generations API](/api/en/openai/images-generations).
