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

> ## Agent Instructions
> The Venice API is OpenAI-compatible: use any OpenAI SDK with the base URL `https://api.venice.ai/api/v1` and a Venice API key, or pay per request from a USDC wallet through x402 with no account.
> Read model IDs from `GET /models` or `GET /models/traits` at runtime instead of hardcoding them from memory or from these pages. Models are added and retired often.
> Every model's price is in https://docs.venice.ai/pricing.md. Quote video and audio jobs with `POST /video/quote` or `POST /audio/quote` before you queue them.
> Search these docs from an MCP client at https://docs.venice.ai/mcp. The full agent guide is https://docs.venice.ai/agents.md.

# GPT Image 2 API

> GPT Image 2 API on Venice: image generation and image editing up to 4K, from $0.26 per image. Anonymized access without your identity.



## GPT Image 2 API

GPT Image 2 is an image generation and image editing model by OpenAI, available on the Venice API as `gpt-image-2`. The provider of this model may retain prompt data (though it is anonymized by Venice). For sensitive content, use a private model.

GPT Image 2 is OpenAI's image generation model, known for fine typography and high detail. It renders at up to 4K, offers low, medium and high quality settings, and pairs with GPT Image 2 Edit for edits that preserve composition.

### GPT Image 2 API pricing

| Model ID | Variant | Privacy | Price |
| - | - | - | - |
| `gpt-image-2` | Generate | Anonymized | \$0.26 / image |
| `gpt-image-2-edit` | Edit | Anonymized | \$0.34 / edit |

Prices by `quality` for `gpt-image-2`, `high` when left out:

| Quality | 1K | 2K | 4K |
| - | - | - | - |
| low | \$0.02 | \$0.03 | \$0.05 |
| medium | \$0.07 | \$0.13 | \$0.21 |
| high | \$0.26 | \$0.50 | \$0.83 |

### GPT Image 2 specifications

| Spec | Value |
| - | - |
| Provider | OpenAI |
| Released | Apr 21, 2026 |
| Privacy | Anonymized |
| Status | Stable |
| Resolutions | 1K, 2K, 4K |
| Aspect ratios | 1:1, 5:4, 4:3, 3:2, 16:9, 21:9, 4:5, 3:4, 2:3, 9:16, 9:21 |
| Prompt limit | 10,000 characters |

### How to use the GPT Image 2 API

Send requests to `POST https://api.venice.ai/api/v1/image/generate` with `"model": "gpt-image-2"` and your API key.

```bash theme={"system"}
curl https://api.venice.ai/api/v1/image/generate \
  -H "Authorization: Bearer $VENICE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-image-2",
    "prompt": "A retro travel poster with the bold headline \"VENICE\" in large condensed serif type, sunset color palette",
    "resolution": "1K",
    "aspect_ratio": "1:1"
  }'
```

### Related models

* [GPT Image 1.5 API](https://docs.venice.ai/models/gpt-image-1-5.md): \$0.26 / image
* [Recraft V4 Pro API](https://docs.venice.ai/models/recraft-v4-pro.md): \$0.29 / image
* [Ideogram V4.5 API](https://docs.venice.ai/models/ideogram-v4-5.md): \$0.26 / image
* [Nano Banana Pro API](https://docs.venice.ai/models/nano-banana-pro.md): \$0.18 / image


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