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

# GPT Image 1

> GPT Image 1 on the AI Reserve gateway — model id, aliases, pricing, limits and a copy-paste request.

**Image generation** · OpenAI

## Call it

Endpoint: `POST /v1/images/generations` — set `model` to `gpt-image-1`.

```bash cURL theme={"dark"}
curl https://api.aireserve.com/v1/images/generations \
  -H "Authorization: Bearer $AIRESERVE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-image-1",
    "prompt": "A watercolor painting of a fox in a snowy forest",
    "n": 1,
    "size": "1024x1024"
  }'
```

```python Python theme={"dark"}
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.aireserve.com/v1",
    api_key=os.environ["AIRESERVE_API_KEY"],
)

res = client.images.generate(
    model="gpt-image-1",
    prompt="A watercolor painting of a fox in a snowy forest",
    n=1,
    size="1024x1024",
)
print(res.data[0].url)
```

```typescript TypeScript theme={"dark"}
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.aireserve.com/v1",
  apiKey: process.env.AIRESERVE_API_KEY,
});

const res = await client.images.generate({
  model: "gpt-image-1",
  prompt: "A watercolor painting of a fox in a snowy forest",
  n: 1,
  size: "1024x1024",
});
console.log(res.data[0].url);
```

Full request and response reference: [Image generation guide](/capabilities/image-generation).

## IDs & aliases

| Send as `model` | What it is |
| - | - |
| `gpt-image-1` | Canonical gateway id |

## Specs

| Spec | Detail |
| - | - |
| Modality | Image — Image generation |
| Model maker | OpenAI |
| Served by | OpenAI |
| Pricing | \$5 in / \$40 out per 1M tokens · token-billed |
| Hosting | United States |

Prices are public list rates at generation time and may lag the provider card; `GET /v1/models` and the portal's pricing page are authoritative for billing.

> **[Browse all models](/models)**
>
> Search and filter every model by modality, maker, capability and price.


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