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

# Call the OpenAI official-relay image models through the Images API

> For the five main OpenAI official-relay image models — gpt-image-2.6-sunburst / flare, gpt-image-2.5-sunburst / flare and gpt-image-2 — use the Images API. Chat completions does not support them, and Responses tool calls are unstable and add a fixed $0.2 tool fee per call.

**2026/11/21 22:30 (UTC+8)** · Docs Update · OpenAI

📖 **Use the Images API for the five OpenAI official-relay image models**

The five official-relay models are `gpt-image-2.6-sunburst`, `gpt-image-2.6-flare`, `gpt-image-2.5-sunburst`, `gpt-image-2.5-flare` and `gpt-image-2`. Call them through the two standard OpenAI Images API endpoints:

* Text-to-image: `POST /v1/images/generations`
* Image editing: `POST /v1/images/edits`

Please avoid these two routes:

* **Chat completions**: `/v1/chat/completions` does not support these official-relay image models.
* **Responses tool calling**: the `image_generation` tool on `/v1/responses` is unstable and adds a fixed tool-call fee of about \$0.20 per call, which is not reasonable for per-call billing.

See [text-to-image](https://docs.apiyi.com/en/api-capabilities/gpt-image-2/text-to-image.md) and [image editing](https://docs.apiyi.com/en/api-capabilities/gpt-image-2/image-edit.md) for endpoint usage; the historical note on the Responses tool route is in [Native Tool Image Generation](https://docs.apiyi.com/en/api-capabilities/gpt-image-2/responses-image-tool).

***

← [Back to Live Updates](https://docs.apiyi.com/en/live.md) · 📚 [Archive by Month](https://docs.apiyi.com/en/live/archive.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.