OpenAI
Latencyβ
Throughputβ
Upload rateβ
Context lengthβ
Max outputβ
Input price$2.5per 1M tokens
Output price$15per 1M tokens
Cache readβper 1M tokens
Cache writeβper 1M tokens
/openai/gpt-image-2
GPT Image 2 is OpenAI's high-quality image generation and editing model. It supports text-to-image generation, image editing, high-fidelity image inputs, custom resolutions, transparent backgrounds, and multiple output formats. It is designed for professional creative workflows such as advertising, e-commerce, product rendering, posters, concept art, and visual design.
curl ${API_BASE_URL}/v1/images/edits \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-image-2",
"prompt": "Describe the image you want"
}'Replace <YOUR_API_KEY> with the API key generated on your token management page.
All requests must include the Authorization: Bearer <TOKEN> header.
RPM = requests per minute, TPM = tokens per minute, RPD = requests per day. Limits apply by token group.