Generate or edit images from text and image references.
API ID
gpt-image-2Overview
- Input
- Text, Image
- Output
- Image
- Providers
- Azure OpenAI
- Released
- Apr 2026
- Latest operational check
- Healthy
- API compatibility
- OpenAI Images
Recommended for
- Image generation
- Image edit
Supported features
- Function calling: Not supported
- Structured outputs: Not supported
- Vision: Not supported
- Streaming: Not supported
- Reasoning: Not supported
- Prompt caching: Not supported
Supported parameters
View API reference sizequalityoutput_formatMake your first request
View full setupcurl --fail-with-body https://gateway.primexos.com/v1/images/generations \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"gpt-image-2","prompt":"A clean product illustration"}'Executing this request uses your account’s API credits.