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

# GPT Image 1

> OpenAI GPT Image 1 image generation model. Generate and edit images from text prompts.

GPT Image 1 is OpenAI's autoregressive image generation model, available through the Starrise AI API. It generates high-quality images from text prompts, with precise text rendering and multi-style generation support.

## Key Capabilities

* **Text-to-image** — Generate images from natural language descriptions
* **Multi-style** — Photorealistic, illustration, anime, vector, 3D, data visualization
* **Text rendering** — Precise typographic output, ideal for posters, UI mockups, and labels
* **Transparent background** — Supports generating images with transparent backgrounds
* **Batch generation** — Generate up to 4 images per request

## Output Specs

| Property   | Values                                |
| ---------- | ------------------------------------- |
| Size       | 1024x1024, 1536x1024, 1024x1536, auto |
| Quality    | low, medium, high                     |
| Format     | png, webp, jpeg                       |
| Background | transparent, opaque                   |

## Quick Example

<CodeGroup>
  ```bash cURL theme={null}
  curl https://ai.alad.com/v1/images/generations \
    -H "Authorization: Bearer YOUR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "model": "gpt-image-1",
      "prompt": "A cute cat floating in the Milky Way wearing a spacesuit",
      "size": "1024x1024",
      "quality": "high"
    }'
  ```

  ```python Python theme={null}
  from openai import OpenAI

  client = OpenAI(
      api_key="YOUR_API_KEY",
      base_url="https://ai.alad.com/v1"
  )

  response = client.images.generate(
      model="gpt-image-1",
      prompt="A cute cat floating in the Milky Way wearing a spacesuit",
      size="1024x1024",
      quality="high"
  )

  print(response.data[0].b64_json[:100])
  ```
</CodeGroup>

## Parameters

| Parameter            | Type    | Required | Description                                                   |
| -------------------- | ------- | -------- | ------------------------------------------------------------- |
| `model`              | string  | Yes      | Must be `gpt-image-1`                                         |
| `prompt`             | string  | Yes      | Image description text                                        |
| `n`                  | integer | No       | Number of images to generate (1–4), default `1`               |
| `size`               | string  | No       | `1024x1024`, `1536x1024`, `1024x1536`, `auto`, default `auto` |
| `quality`            | string  | No       | `low`, `medium`, `high`, default `medium`                     |
| `output_format`      | string  | No       | `png`, `webp`, `jpeg`, default `png`                          |
| `background`         | string  | No       | `transparent` or `opaque`, default `opaque`                   |
| `moderation`         | string  | No       | `auto` or `low`, default `auto`                               |
| `output_compression` | integer | No       | Compression level for jpeg/webp format (0–100)                |

<Card title="API Reference" icon="code" href="/en/api-reference/model-api/openai/gpt-image-1">
  View the interactive API Playground for GPT Image 1.
</Card>
