> ## 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-1

GPT Image 1 is a native multimodal language model from OpenAI that accepts text and image inputs and generates images.

A lower-cost variant, `gpt-image-1-mini`, works the same way as GPT-Image-1. To try it, replace the model name in the examples below.

### Model parameters

* Model IDs: `gpt-image-1`/`gpt-image-1-mini`
* Pricing: Check the [Model Hub](https://geekai.co/models?platform=openai\&type=image) for current prices.
* 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-1 API documentation](https://platform.openai.com/docs/guides/image-generation).

GPT-Image-1 supports the following values for `size`:

* `1024x1024`
* `1024x1536`
* `1536x1024`

### Pricing

GPT-Image-1 prices vary by size and quality:

| Quality (`quality`) | Size (`size`) | Price (CNY/image) |
| - | - | - |
| low | 1024x1024 | 0.095 |
| low | 1024x1536 | 0.126 |
| low | 1536x1024 | 0.126 |
| medium | 1024x1024 | 0.315 |
| medium | 1024x1536 | 0.473 |
| medium | 1536x1024 | 0.473 |
| high | 1024x1024 | 1.26 |
| high | 1024x1536 | 1.89 |
| high | 1536x1024 | 1.89 |

For GPT-Image-1, `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 default high-availability channel has a factor of `0.5`. An image with `size` set to `1024x1024` and `quality` set to `medium` costs `0.315 x 0.5 = 0.158` CNY. At the same size but with `quality` set to `high`, it costs `1.26 x 0.5 = 0.63` CNY. Apply the same calculation to other settings.

GPT-Image-1 mini pricing:

| Quality (`quality`) | Size (`size`) | Price (CNY/image) |
| - | - | - |
| low | 1024x1024 | 0.041 |
| low | 1024x1536 | 0.049 |
| low | 1536x1024 | 0.049 |
| medium | 1024x1024 | 0.082 |
| medium | 1024x1536 | 0.123 |
| medium | 1536x1024 | 0.123 |
| high | 1024x1024 | 0.287 |
| high | 1024x1536 | 0.410 |
| high | 1536x1024 | 0.410 |

GPT-Image-1 mini has the same defaults as GPT-Image-1: `quality` defaults to `medium` and `size` to `1024x1024`. Calculate proxy channel prices the same way: multiply the listed price by the applicable discount factor.

### 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-1",
    "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/edits' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer $GEEKAI_API_KEY' \
--data '{
    "model":"gpt-image-1",
    "prompt":"Restore this damaged photo",
    "image":"https://static.geekai.co/storage/2025/04/02/broken-picture.jpg"
}'
```

**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/edits' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer $GEEKAI_API_KEY' \
--data '{
    "model":"gpt-image-1",
    "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"
}'
```

GPT-Image-1 supports the image editing endpoint. To use it for image-to-image generation, see [Image editing](https://docs.geekai.co/en/docs/image/edit.md).

### Asynchronous tasks

For time-consuming, high-quality image requests, use GeekAI’s asynchronous task mode.

The `async` parameter in the [Image API](https://docs.geekai.co/en/api/image/generations.md) controls asynchronous generation. It defaults to `false`: the request waits for the image and returns it. Set it to `true` to generate asynchronously. The endpoint returns a task ID you can use to poll for status.


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