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

# GPT-Image-2.6

GPT-Image-2.6 Flare improves image quality, editing efficiency, and speed and is the default choice for most applications. It delivers higher image quality than GPT-Image-2 with 50% lower latency. Use cases range from creator and social content to product experiences, visual search, rapid visual prototyping, and high-volume image generation.

GPT-Image-2.6 Sunburst gives you finer control over edits when visual quality is critical, such as when creating publication-ready ads or polished product imagery.

Use either model directly through the Image API or as the model for the image generation tool in the Responses API.

### Model parameters

* Model IDs: `gpt-image-2.6-sunburst`/`gpt-image-2.6-flare`
* Pricing: [GPT-Image-2.6-Sunburst](https://geekai.co/models/gpt-image-2.6-sunburst), [GPT-Image-2.6-Flare](https://geekai.co/models/gpt-image-2.6-flare)
* Endpoint: `https://geekai.co/api/v1/images/generations`
* Parameters: See the [Image API reference](https://docs.geekai.co/en/api/image/generations.md).
* Authentication: [Get an API key](https://docs.geekai.co/en/docs/quick_start.md).

> [!NOTE]
>
> The following common Image API parameters are not supported:
>
> * `negative_prompt`
> * `seed`
> * `strength`
> * `aspect_ratio`
> * `style_preset`
>
> See also: [Official GPT-Image-2.6 API documentation](https://developers.openai.com/api/docs/guides/image-generation).

For GPT-Image-2.6, `size` defaults to `auto`. You can also use any size that meets these requirements:

* Both width and height must be integer multiples of 16.
* Neither dimension may exceed 3840 pixels.
* The total pixel count must be between 655360 and 8294400.
* The aspect ratio must be between 1:3 and 3:1.

For GPT-Image-2.6, `quality` defaults to `medium` and supports the following values:

* `low`
* `medium`
* `high`
* `xhigh`
* `max`

### Pricing

GPT-Image-2.6 Sunburst and GPT-Image-2.6 Flare have identical pricing. Prices vary by image size and quality:

| Quality (`quality`) | Size (`size`) | Price (CNY/image) |
| - | - | - |
| low | 1024x1024 | 0.185 |
| low | 1024x1536 | 0.149 |
| low | 1536x1024 | 0.149 |
| low | 2048x2048(2K) | 0.375 |
| low | 2048x1152(2K) | 0.148 |
| low | 3840x2160(4K) | 0.351 |
| low | 2160x3840(4K) | 0.351 |
| medium | 1024x1024 | 0.326 |
| medium | 1024x1536 | 0.255 |
| medium | 1536x1024 | 0.255 |
| medium | 2048x2048(2K) | 0.662 |
| medium | 2048x1152(2K) | 0.272 |
| medium | 3840x2160(4K) | 0.642 |
| medium | 2160x3840(4K) | 0.642 |
| high | 1024x1024 | 0.395 |
| high | 1024x1536 | 0.309 |
| high | 1536x1024 | 0.309 |
| high | 2048x2048(2K) | 0.803 |
| high | 2048x1152(2K) | 0.318 |
| high | 3840x2160(4K) | 0.751 |
| high | 2160x3840(4K) | 0.751 |
| xhigh | 1024x1024 | 0.702 |
| xhigh | 1024x1536 | 0.553 |
| xhigh | 1536x1024 | 0.553 |
| xhigh | 2048x2048(2K) | 1.427 |
| xhigh | 2048x1152(2K) | 0.565 |
| xhigh | 3840x2160(4K) | 1.334 |
| xhigh | 2160x3840(4K) | 1.334 |
| max | 1024x1024 | 1.580 |
| max | 1024x1536 | 1.235 |
| max | 1536x1024 | 1.235 |
| max | 2048x2048(2K) | 3.211 |
| max | 2048x1152(2K) | 1.271 |
| max | 3840x2160(4K) | 3.002 |
| max | 2160x3840(4K) | 3.002 |

> [!NOTE]
>
> These prices are examples for common sizes. GPT-Image-2.6 supports many other sizes; the actual price depends on the size and quality you select.

For GPT-Image-2.6, `quality` defaults to `medium` and `size` defaults to `1024x1024`.

When using a GeekAI [discounted proxy channel](https://docs.geekai.co/en/docs/model_price.md), multiply the listed price by the channel’s discount factor. For example, the high-availability channel has a factor of `0.5`. An image with `size` set to `1024x1024` and `quality` set to `medium` costs `0.099 x 0.5 = 0.0495` CNY. At the same size but with `quality` set to `high`, it costs `0.395 x 0.5 = 0.1975` CNY. Apply the same calculation to other settings.

### Text-to-image generation

Generate an image from a text description:

```bash theme={null}
curl --location --request POST 'https://geekai.co/api/v1/images/generations' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer $GEEKAI_API_KEY' \
--data '{
    "model":"gpt-image-2.6-flare",
    "prompt":"Draw a cute kitten playing in the grass"
}'
```

### Image-to-image generation

**Single image**

Edit an existing image using a text instruction to generate a new image:

```bash theme={null}
curl --location --request POST 'https://geekai.co/api/v1/images/generations' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer $GEEKAI_API_KEY' \
--data '{
    "model":"gpt-image-2.6-flare",
    "prompt":"Restore this damaged photo",
    "image":"https://static.geekai.co/storage/2025/04/02/broken-picture.jpg"
}'
```

GPT-Image-2.6 also supports image-to-image generation through the image editing endpoint:

```bash json theme={null}
curl --location --request POST 'https://geekai.co/api/v1/images/generations' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer $GEEKAI_API_KEY' \
--data '{
    "model": "gpt-image-2.6-flare",
    "prompt": "Restore this damaged photo",
    "image": "https://static.geekai.co/storage/2025/04/02/broken-picture.jpg"
}'
```

```bash form theme={null}
curl --location --request POST 'https://geekai.co/api/v1/images/edits' \
--header 'Authorization: Bearer $GEEKAI_API_KEY' \
--form 'model="gpt-image-2.6-flare"' \
--form 'prompt="Restore this damaged photo"' \
--form 'image=@/path/to/your/local/image.jpg'
```

> [!NOTE]
>
> `image` accepts an image URL or a Base64-encoded image. For the mainland China version, use a URL publicly accessible from mainland China; otherwise, send the image as Base64.

**Multiple images**

Combine styles or elements from several reference images. For example, combine clothes, shoes, and accessories with a model photo to show an outfit, or place a person in a landscape:

```bash theme={null}
curl --location --request POST 'https://geekai.co/api/v1/images/generations' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer $GEEKAI_API_KEY' \
--data '{
    "model":"gpt-image-2.6-flare",
    "prompt": "Apply the fabric from image 1 to the clothing in image 2. Use the aspect ratio of image 2.",
    "image": [
        "https://style3d-render.oss-cn-hangzhou.aliyuncs.com/test/针织.jpg",
        "https://style3d-render.oss-cn-hangzhou.aliyuncs.com/test/款式图.jpg"
    ],
    "quality": "high",
    "background": "auto",
    "output_format": "png",
    "response_format": "url",
    "async": true
}'
```

The image editing endpoint also supports multiple images:

```bash json theme={null}
curl --location --request POST 'https://geekai.co/api/v1/images/generations' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer $GEEKAI_API_KEY' \
--data '{
    "model": "gpt-image-2.6-flare",
    "prompt": "Apply the fabric from image 1 to the clothing in image 2. Use the aspect ratio of image 2.",
    "image": [
        "https://style3d-render.oss-cn-hangzhou.aliyuncs.com/test/针织.jpg",
        "https://style3d-render.oss-cn-hangzhou.aliyuncs.com/test/款式图.jpg"
    ],
    "quality": "high",
    "background": "auto",
    "output_format": "png",
    "response_format": "url",
    "async": true
}'
```

```bash form theme={null}
curl --location --request POST 'https://geekai.co/api/v1/images/edits' \
--header 'Authorization: Bearer $GEEKAI_API_KEY' \
--form 'model="gpt-image-2.6-flare"' \
--form 'prompt="Apply the fabric from image 1 to the clothing in image 2. Use the aspect ratio of image 2."' \
--form 'image[]=@/path/to/your/local/image1.jpg' \
--form 'image[]=@/path/to/your/local/image2.jpg'
```

**Guide edits with annotations**

With GPT-Image-2.6, pass an annotation layer in `markup` to mark the region to edit. The model uses the marks and your prompt to guide the edit:

```bash json theme={null}
curl --location --request POST 'https://geekai.co/api/v1/images/generations' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer $GEEKAI_API_KEY' \
--data '{
    "model": "gpt-image-2.6-flare",
    "prompt": "Replace the butterfly in the marked area with a bee",
    "image": "https://static.geekai.co/image/image1.jpg",
    "markup": "https://static.geekai.co/image/markup.jpg",
    "quality": "high",
    "background": "auto",
    "output_format": "png",
    "response_format": "url",
    "async": true
}'
```

```bash form theme={null}
curl --location --request POST 'https://geekai.co/api/v1/images/edits' \
--header 'Authorization: Bearer $GEEKAI_API_KEY' \
--form 'model="gpt-image-2.6-flare"' \
--form 'prompt="Replace the butterfly in the marked area with a bee"' \
--form 'image[]=@/path/to/your/local/image1.jpg' \
--form 'markup=@/path/to/your/local/markup.jpg'
```

Annotation image requirements:

* Use a PNG with a transparent background and the same dimensions as the original image.
* Marks apply to the first input image. Additional images can serve as references.
* The annotation image and first input image must each contain at most 16,777,216 pixels. The annotation image must not exceed 50 MB.
* Do not supply both an annotation image (`markup`) and a mask (`mask`).

**Edit with a mask**

Use `mask` to specify the area to edit. The model edits only the masked area and leaves the rest of the original unchanged:

```bash json theme={null}
curl --location --request POST 'https://geekai.co/api/v1/images/generations' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer $GEEKAI_API_KEY' \
--data '{
    "model": "gpt-image-2.6-flare",
    "prompt": "A sunlit indoor lounge with a flamingo in the pool",
    "image": "https://static.geekai.co/image/image1.jpg",
    "mask": "https://static.geekai.co/image/mask.png",
    "quality": "high",
    "background": "auto",
    "output_format": "png",
    "response_format": "url",
    "async": true
}'
```

```bash form theme={null}
curl --location --request POST 'https://geekai.co/api/v1/images/edits' \
--header 'Authorization: Bearer $GEEKAI_API_KEY' \
--form 'model="gpt-image-2.6-flare"' \
--form 'prompt="A sunlit indoor lounge with a flamingo in the pool"' \
--form 'image[]=@/path/to/your/local/image1.jpg' \
--form 'mask=@/path/to/your/local/mask.png'
```

Mask requirements:

* Use a PNG with a transparent background and the same dimensions as the original image, no larger than 50 MB.
* The mask must contain an alpha channel.
* Do not supply both a mask (`mask`) and an annotation image (`markup`).

### Generate animated GIFs

To generate an animated GIF, set `output_format` to `gif`:

```bash json theme={null}
curl --location --request POST 'https://geekai.co/api/v1/images/generations' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer $GEEKAI_API_KEY' \
--data '{
    "model": "gpt-image-2.6-flare",
    "prompt": "Generate a photorealistic image on a pure white background showing a ribbon-trimmed gift basket containing all the items in the reference image. Add GeekAI in handwritten lettering.",
    "image": [
        "https://static.geekai.co/image/image1.jpg",
        "https://static.geekai.co/image/image2.jpg",
        "https://static.geekai.co/image/image3.jpg",
        "https://static.geekai.co/image/image4.jpg"
    ],
    "output_format": "gif",
    "response_format": "url",
    "async": true
}'
```

Both text-to-image and image-to-image generation are supported. Pass `frame_count` in `extra_body` to set the GIF frame count (2–16), and use `frame_duration_ms` to set each frame’s duration in milliseconds (default: 200).

### Generate SVG images

To generate an SVG, set `output_format` to `svg` and pass `svg.model` in `extra_body` to specify the SVG model:

```bash json theme={null}
curl --location --request POST 'https://geekai.co/api/v1/images/generations' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer $GEEKAI_API_KEY' \
--data '{
    "model": "gpt-image-2.6-flare",
    "prompt": "Create a clean, modern, tech-inspired vector logo for GeekAI",
    "output_format": "svg",
    "extra_body": {
        "svg": {
            "model": "gpt-6.1-sol",
            "reasoning": {
                "effort": "medium"
            }
        }
    },
    "async": true
}'
```

SVG supports text-to-image generation only, with at most one output image.

> [!NOTE]
>
> For long-running requests, set `async` to `true` to enable asynchronous processing. The endpoint returns a `task_id`. Poll `https://geekai.co/api/v1/images/{task_id}` for the latest status and retrieve the final image URL when the task completes. See [Asynchronous image generation](https://docs.geekai.co/en/docs/image/txt2img.md#asynchronous-image-generation).


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