OpenAI
GPT Image 2
openai/gpt-image-2GPT Image 2 is an image generation model by OpenAI that creates images from text prompts. It supports a 33K token context window with up to 33K tokens of output. Priced at $8 per million input tokens and $30 per million output tokens. Access GPT Image 2 through Inworld LLM Inference with OpenAI SDK compatibility, built-in failover, and intelligent routing across providers.
- Input
- $8.00
- Output
- $30.00
- Cache read
- $2.00
- Context
- 32.8K
- Max output
- 32.8K
TextImage→Image
Prompt CachingVision
curl --fail-with-body https://api.inworld.ai/v1/chat/completions \
-H "Authorization: Basic $INWORLD_API_KEY" \
-H 'Content-Type: application/json' \
-o response.json \
-d '{
"model": "openai/gpt-image-2",
"messages": [{"role": "user", "content": "A blue circle on a white background."}],
"modalities": ["image"]
}'Model GPT Image 2Chat Completions · Image output
Pricing and providers
Access GPT Image 2 through Inworld LLM Inference or speech to speech via OpenAI. By using the providers below you agree to their terms, listed under each provider's name in the Legal section.
| Modalities | |||||||
|---|---|---|---|---|---|---|---|
OpenAIThis pageopenai/gpt-image-2 | $8.00 | $30.00 | $2.00 | — | 32.8K | 32.8K | TextImage→Image |
Prices in USD per 1M tokens.
Start building with GPT Image 2
Access GPT Image 2 and every other model through LLM Inference or speech to speech. Create a free account and start in minutes.