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

# GPT-Image 2 Official

> The compliance-tier variant of GPT-Image 2 for audit- and data-residency-sensitive workflows.

**Family:** GPT (OpenAI)
**Model ID:** `gpt-image-2-official`
**Capability:** 1024² – 4096² · photorealism · prompt-following
**Pricing:** per image, official tier ([live rate](https://bytespike.ai/pricing#image))

GPT-Image 2 Official is a higher compliance tier of GPT-Image 2 —
same model weights and output as
[GPT-Image 2](/api-reference/image/gpt-image-2). Use this variant
when compliance, data-residency contracts, or audit requirements call
for the stricter tier. The price tier reflects the premium.

## Request

```bash theme={null}
curl https://llm.bytespike.ai/v1/images/generations \
  -H "Authorization: Bearer $BYTESPIKE_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "model": "gpt-image-2-official",
    "prompt": "Studio shot of a teacup on a wooden table, soft natural light",
    "size": "1024x1024",
    "quality": "high"
  }'
```

### Body parameters

Same as [GPT-Image 2](/api-reference/image/gpt-image-2) — `prompt`,
`size`, `n`, `quality`, `style`, `output_format`, `output_compression`.
Only the `model` value changes.

## Response

Same shape as GPT-Image 2.

```json theme={null}
{
  "created": 1715174400,
  "data": [{"url": "https://cdn.bytespike.ai/img/...", "revised_prompt": "..."}]
}
```

URLs pre-signed, 24h expiry.

## Code examples

<CodeGroup>
  ```bash cURL theme={null}
  curl https://llm.bytespike.ai/v1/images/generations \
    -H "Authorization: Bearer $BYTESPIKE_API_KEY" \
    -H "content-type: application/json" \
    -d '{"model": "gpt-image-2-official", "prompt": "Studio teacup", "quality": "high"}'
  ```

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

  client = OpenAI(base_url="https://llm.bytespike.ai/v1", api_key="$BYTESPIKE_API_KEY")
  resp = client.images.generate(
      model="gpt-image-2-official",
      prompt="Studio shot of a teacup on a wooden table, soft natural light",
      size="1024x1024",
      quality="high",
  )
  print(resp.data[0].url)
  ```

  ```javascript Node theme={null}
  import OpenAI from "openai"

  const client = new OpenAI({
    baseURL: "https://llm.bytespike.ai/v1",
    apiKey: process.env.BYTESPIKE_API_KEY,
  })
  const resp = await client.images.generate({
    model: "gpt-image-2-official",
    prompt: "Studio shot of a teacup on a wooden table, soft natural light",
    size: "1024x1024",
    quality: "high",
  })
  console.log(resp.data[0].url)
  ```
</CodeGroup>

## Errors

Same as [GPT-Image 2](/api-reference/image/gpt-image-2). Note the
official tier can be more sensitive to rate limits during peak hours;
expect occasional 429 with a longer Retry-After.

## When to use

* Compliance / data-residency contracts requiring the stricter tier.
* Audited workflows where the compliance tier is part of the spec.
* For lower cost on identical model output, see [GPT-Image 2](/api-reference/image/gpt-image-2).
* For text-rendering edge cases, [Nano Banana 2](/api-reference/image/nano-banana-v2) is also strong.

## Limits

| Limit                       | Value              |
| --------------------------- | ------------------ |
| Max output resolution       | 4096×4096          |
| Max images per call (`n`)   | 4                  |
| Supports `quality` modifier | Yes                |
| Sync?                       | Yes (≤30s typical) |
| Avg latency for 1024² high  | 14-22s             |
