GPT Image 2 API
Image model · model id
gpt-image-2GPT Image 2 is an image-generation model available through G0I. Generate images from text prompts using the same API key and endpoint you use for every other model on the platform.
How to call GPT Image 2
G0I is OpenAI-compatible. Point your client at https://g0i.ai/v1, set the model field to gpt-image-2, and generate an image via /v1/images/generations:
curl https://g0i.ai/v1/images/generations \
-H "Authorization: Bearer $G0I_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"gpt-image-2","prompt":"a red apple on a table"}'
Why use GPT Image 2 through G0I
- One API key — GPT Image 2 plus 470+ other models, no separate provider account.
- OpenAI-compatible — works with the OpenAI SDK and any compatible tooling.
- Switch freely — change the
modelfield to compare GPT Image 2 against other models with zero code changes. - Start free — create an account and test with a free token quota.
Browse the full model catalog, read the quickstart, or see pricing. Looking for an OpenAI API alternative or a unified AI API? G0I covers it.