GPT Image2 is an image model by OpenAI, available through the OpenAI-compatible Images API.
GPT Image2 is an image model by OpenAI, available through the OpenAI-compatible Images API.
| Billed item | Price |
|---|---|
| Input tokens | $9.60 / M input tokens |
| Cached input tokens | $2.40 / M input tokens |
| Output image tokens | $36.00 / M output image tokens |
| Parameter | Allowed values | Default |
|---|---|---|
quality Quality | auto · low · medium · high | - |
generation_config.resolution Resolution | 1K · 2K · 4K | - |
generation_config.aspect_ratio Aspect ratio | auto · 21:9 · 16:9 · 3:2 · 4:3 · 1:1 · 3:4 · 2:3 · 9:16 | auto |
Same as the OpenAI Images API; platform-specific options go in generation_config. Read the guide →
curl https://api.geekidea.ai/v1/images/generations \
-H "Authorization: Bearer $GEEKIDEA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-image-2",
"prompt": "A paper boat drifting on a rainy street, cinematic lighting",
"quality": "auto",
"generation_config": {
"aspect_ratio": "auto",
"resolution": "1K"
}
}'