GPT Image 2 API
OpenAI's flagship image model (the engine behind ChatGPT image generation) — top-tier prompt adherence, reliable in-image text, and photorealistic detail. Supports image-to-image edits.
$0.08/img on Varosity credits ($0.08/img with your own key).
no OpenAI account needed · provider's list price, no markup · failed renders never billed
Best for
- best-in-class instruction following
- accurate in-image text
- photorealistic detail
Trade-offs
- rate-limited per OpenAI plan
How to get the best result
Best instruction following and accurate in-image text; layouts, UI mocks, infographics, precise edits. Pick instead: gemini-3-pro-image for multilingual text and 4:5/21:9; flux-2-klein or z-image-turbo for cheap drafts.
Prompting
- Order: scene/background, subject, key details, constraints; name the intended use (ad, infographic) to set polish.
- Put exact text in quotes or ALL CAPS, give font, color, placement; spell tricky words letter by letter; ask for it once.
- For edits say 'change only X, keep everything else the same' and repeat the preserve list each iteration.
Settings on Varosity
- Only 1:1, 16:9 (1536x1024) and 9:16 (1024x1536).
- providerOptions.quality defaults medium (high costs more); background transparent needs png/webp; outputFormat. moderation applies only on your own key.
- referenceImageUrl routes to /images/edits with that one image.
Avoid
- quality high for drafts; use medium/low until the layout is right.
- Transparent background with jpeg output.
- Expecting slow renders to be instant; high-quality images can take 60-120s.
Example prompt
Poster for a garden seed swap. Top center, bold green sans-serif headline "SEED SWAP". Watercolor basket of seed packets below. Footer: "Saturday 10am".
From developers.openai.com, checked against what Varosity sends.
Call it from your code
One Varosity key works for every model.
curl -X POST https://varosity.ai/api/v1/images \
-H "Authorization: Bearer $VAROSITY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "studio product shot of a matte black water bottle, soft rim light",
"modelId": "gpt-image-2",
"aspectRatio": "1:1"
}'Or use GPT Image 2 over MCP
Connect ChatGPT, Claude, Cursor or any MCP client to https://varosity.ai/api/mcp (sign in, or use your key), then say:
"Use Varosity with gpt-image-2 to generate an image of …"MCP setup for your agent
Compare GPT Image 2
Alternatives to GPT Image 2
- GPT Image 2.5 FlareOpenAI's newest image model · five quality tiers from 1¢$0.03/img
- GPT Image 2.5 SunburstOpenAI's newest image model, precision tier · extra fidelity on intricate detail$0.03/img
- Grok Imagine Imagecheap ($0.02/image) · photorealism$0.02/img
- Ideogram V3best text-in-image · legible typography$0.06/img
- Nano Banana 2 (Gemini 3.1 Flash Image)production-scale quality at flash speed · legible in-image text$0.07/img
- Nano Banana 2.1newest Nano Banana: design, subject consistency, prompt adherence · legible in-image text$0.04/img