GPT Image 2
Next-gen image generation & editing with stronger compositional control and text rendering.
OpenAI$0.05 / imagetext-to-imageopenai
Capability
Est. cost$0.05For $1 you can run this model 20 times.
Example output

$0.05/ image
$0.05 per image. For $1 you can run this model 20 times.
Pay only for successful generations. No idle, no minimums, no per-seat.
API
Wire it up.
Endpoint
POST https://api.tryinfer.com/v1/inference/gpt-image-2/text-to-imagerequest
curl https://api.tryinfer.com/v1/inference/gpt-image-2/text-to-image \
-H "Authorization: Bearer $INFER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"prompt": "a watercolour illustration of a cat reading a book by candlelight"
}
}'
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| prompt | string | Yes | — | — |
| num_images | integer | — | 1 | — |
| aspect_ratio | string | — | 1:1 | 21:916:93:24:31:13:42:39:16 |
| output_format | string | — | png | jpegpngwebp |
Authenticate with a bearer token. Get an API key →
Further reading
From the Infer content directory.
Best ofBest AI image-editing models in 2026FLUX.1 Kontext [pro] leads AI image editing in 2026 at $0.02/image with 5+ edit identity retention, ahead of GPT Image 1.5, Nano Banana 2, and SAM 3.1 for masking.PricingThe cheapest text-to-image APIs in 2026FLUX 1.1 [pro] lists the lowest Infer rate at $0.02 (its page also shows a conflicting $0.04). Seedream 4.0 is the cheapest confirmed price with a leaderboard rank.Best ofBest AI models for text rendering and typographyIdeogram 3.0 is the typography specialist at $0.06/image; Nano Banana 2 claims near-Ideogram fidelity at half the latency for $0.039. Full 2026 ranking below.