OpenAI: GPT Image 2
One API key. Live prices. Ready-to-run code.
5. It takes flexible sizes up to 4K and is billed by the text and image tokens each request uses.
Served on OneInfer by OpenAI. Use it with the same API key and pay-as-you-go wallet as every other model in the catalog.
openai/gpt-image-2Call GPT Image 2 in 4 steps
Create a key in the Console. The same key works for every model on OneInfer.
- Context
- N/A
- Input
- text, image
- Output
- image
- Tool calling
- Not listed
About this model
GPT Image 2 is OpenAI's image generation and editing model from April 2026, the generation before GPT Image 2.5. It takes flexible sizes up to 4K and is billed by the text and image tokens each request uses.
Input modalities
text
Accepted as model input
image
Accepted as model input
Providers
Available routing options for this model through OneInfer.
- Available
- Text input tokens
- $5.00 / 1M tokens
- Cached text input tokens
- $1.25 / 1M tokens
- Routing
- OneInfer optimized
Pricing
Current OneInfer pricing for this model.
| Usage | Price |
|---|---|
| Text input tokensauto, auto | $5.00 / 1M tokens |
| Cached text input tokensauto, auto | $1.25 / 1M tokens |
| Image input tokensauto, auto | $8.00 / 1M tokens |
| Cached image input tokensauto, auto | $2.00 / 1M tokens |
| Image output tokensauto, auto | $30.00 / 1M tokens |
Performance and benchmarks
Independent evaluations and live cluster operational metrics
We haven’t measured this model yet.
API guide
Generate your access token
Use your API key to generate the JWT access token required by the Models API.
Add the JWT token
Copy the generated JWT token and replace
JWT_TOKENin the example below.Check your credits
If your balance is too low, before calling the model.
Run the API example
Choose your preferred language, copy the example, and send your first model request.
curl -X POST https://api.oneinfer.ai/v1/ula/generate-image \ -H "Authorization: Bearer YOUR_JWT_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "model": "openai/gpt-image-2", "messages": [ { "role": "user", "content": "A futuristic city skyline at dusk" } ], "number": 1, "size": "auto", "quality": "standard" }'
Community reviews and ratings
Visitor and developer evaluations of OpenAI: GPT Image 2's real-world intelligence, code accuracy, and speed
Top community tags
No community reviews yet
Be the first to share developer feedback on OpenAI: GPT Image 2's latency, code accuracy, and reliability in production.