About GPT Image 2
The GPT Image 2 API is OpenAI's earlier image model with dependable typography, mask_url edits and up to ten outputs per call, typically about a minute for text to image and 90 seconds for edits. Without transparency or the xhigh and max tiers, it is the budget OpenAI option for text-heavy creatives.
Call it with the model name openai/gpt-image-2/text-to-image on POST /jobs/createTask, from $0.00182.
Introduction
GPT Image 2 Text to image is OpenAI's gpt-image-2 model, released in April 2026, generating images from a written prompt. It follows long, specific briefs, sets quoted headlines and labels into the picture as legible type, and renders at three quality tiers and three size tiers in fifteen aspect ratios.
Choose a mode by starting material
| What you have | Mode |
|---|---|
| a written brief | GPT Image 2 Text to image |
| an image to change | GPT Image 2 Edit |
Key features
Text you can read
Headlines, cover lines, signs and labels written in quotes come back as real type. In our poster and magazine-cover tests every quoted line rendered with the right spelling at medium quality.
Request parameters
| Parameter | Required | Description |
|---|---|---|
prompt | Yes | Describe what you want to make. |
quality | No | Choose one of this model’s quality settings. low · medium · high · Default: medium |
resolution | No | Choose an available output size. 1k · 2k · 4k · Default: 1k |
num_outputs | No | How many results to make in one go. ≥ 1 · ≤ 10 · Default: 1 |
aspect_ratio | No | The shape of the frame: wide, square or tall. 1:1 · 1:2 · 1:3 · 2:1 · 2:3 · 3:1 · 3:2 · 3:4 · 4:3 · 4:5 · 5:4 · 9:16 · 9:21 · 16:9 · 21:9 · Default: 1:1 |
output_format | No | File type of the result. png · jpeg · webp · Default: png |
output_quality | No | Compression for JPEG and WebP. Higher keeps more detail and makes bigger files. ≥ 0 · ≤ 100 |
Pricing
Prices are in USD and charged to your PopNow balance. When a task is accepted, we reserve the maximum quoted amount from your PopNow balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.
| Option | USD per image |
|---|---|
| aspect_ratio 1:3 · quality low · resolution 1K | $0.00182 |
| aspect_ratio 3:1 · quality low · resolution 1K | $0.00182 |
| aspect_ratio 21:9 · quality low · resolution 1K | $0.00244 |
| aspect_ratio 9:21 · quality low · resolution 1K | $0.00244 |
| aspect_ratio 1:2 · quality low · resolution 1K | $0.00276 |
| aspect_ratio 2:1 · quality low · resolution 1K | $0.00276 |
| aspect_ratio 1:3 · quality low · resolution 2K | $0.00288 |
| aspect_ratio 3:1 · quality low · resolution 2K | $0.00288 |
| aspect_ratio 16:9 · quality low · resolution 1K | $0.00304 |
| aspect_ratio 9:16 · quality low · resolution 1K | $0.00304 |
| aspect_ratio 2:3 · quality low · resolution 1K | $0.00357 |
| aspect_ratio 3:2 · quality low · resolution 1K | $0.00357 |
Send the same request body to POST /jobs/quote to see the estimated and maximum USD charge before running. A quote does not run the task or charge your balance.
Use cases
Posters, covers and ads
Layouts where the words matter as much as the picture: film posters, magazine covers, sale banners and packaging mock-ups, produced in one call instead of a picture plus a separate typesetting pass.
Variations for review
Up to ten images from one brief in a single request, so a team can pick a direction before anyone pays for the high tier.
Prompt guide & pro tips
Quote and place every line
Write each piece of text in double quotes and say where it goes: across the top, bottom left, on the sign. Unquoted words are read as description, not as type to set.
Describe the photograph, not keywords
Full sentences about subject, wardrobe, setting, light and lens work better than tag lists. Name the medium as well: film still, studio product shot, magazine cover.
Draft at low, finish higher
Keep the prompt unchanged and move up a tier for the final.
Match the size tier to the use
Use 1k for screens and social posts, 2k for large displays and 4k only for print or heavy cropping.
API quick start
Call the GPT Image 2 API in three steps
- Create an API key. Sign in to PopNow and create a key in the API console. Keys start with sk-popnow-. API calls are billed in USD from your PopNow balance.
- Send the request. POST /jobs/createTask with model openai/gpt-image-2/text-to-image and an input object that follows the parameter table. The response returns a task ID straight away.
- Get the result. Poll GET /jobs/recordInfo with the task ID, or pass a callBackUrl and we post the result to it. Download the output links when the task succeeds.
# 1. Create the task. Keep the Idempotency-Key if you retry after a network error.
export IDEMPOTENCY_KEY="$(uuidgen)"
curl -X POST https://api.popnow.ai/api/v1/jobs/createTask \
-H "Authorization: Bearer $POPNOW_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $IDEMPOTENCY_KEY" \
-d '{
"model": "openai/gpt-image-2/text-to-image",
"input": {
"prompt": "A ceramic teapot on a linen cloth, soft window light, muted palette",
"aspect_ratio": "1:1",
"resolution": "1k",
"quality": "medium",
"num_outputs": 1,
"output_format": "png"
}
}'
# 2. Copy data.taskId from the response, then poll until state is succeeded, failed, canceled or expired.
TASK_ID="TASK_ID_FROM_RESPONSE"
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=$TASK_ID" \
-H "Authorization: Bearer $POPNOW_API_KEY"Replace the prompt and any links with your own. The API tab has the response, polling and callback reference.
What to build with the GPT Image 2 API
- Poster and flyer variant generators returning ten options per call.
- Cover retyping and localisation via masked edits.
- Two-person composite posters from separate portraits.
GPT Image 2 parameter notes
- quality low, medium or high; num_outputs 1 to 10.
- mask_url and input_fidelity on edit; up to ten image_urls.
- background accepts opaque only.
- Aspect ratio affects price at the same quality; non-square shapes are cheaper.
How GPT Image 2 API pricing adds up
Billed in USD per image by resolution, quality and shape; num_outputs multiplies the charge. Check the live price table and /jobs/quote for your chosen settings.
- aspect_ratio 1:3 · quality low · resolution 1k: $0.00182 per run, $0.182 for 100 runs
- aspect_ratio 3:2 · quality low · resolution 1k: $0.00357 per run, $0.357 for 100 runs
Async jobs, webhooks and rate limits
Every GPT Image 2 request is asynchronous: createTask returns a taskId straight away, and the result arrives when the job finishes. Poll GET /jobs/recordInfo every few seconds, or pass a public https callBackUrl and verify the X-Webhook-Signature header (HMAC-SHA256 over taskId, timestamp and the body hash) before trusting the payload. Each account gets 1,000 write requests per 10 seconds; a 429 carries Retry-After. Send an Idempotency-Key with createTask so a retried request for openai/gpt-image-2/text-to-image never runs or bills twice.
Common GPT Image 2 API errors
| errorCode | What it usually means and how to fix it |
|---|---|
unsupported_combination | background transparent requested; use openai/gpt-image-2.5-flare or sunburst. |
invalid_request | num_outputs above ten or more than ten references. |
content_rejected | A refused prompt or source image. |
GPT Image 2 price on other platforms
| Options | fal | Replicate | |
|---|---|---|---|
| 1K · mediumGuaranteed | −19% vs fal$0.0426/ image | $0.0530/ image | $0.0470/ image |
Each platform's public API list price for the same model and settings, checked Nov 3, 2026.
GPT Image 2 API questions
How much does the GPT Image 2 API cost?
GPT Image 2 starts at $0.00182 per image with Create Image, its lowest-priced task. Prices by option: 1:3 · low · 1K $0.00182 per image, 3:1 · low · 1K $0.00182 per image, 21:9 · low · 1K $0.00244 per image, 9:21 · low · 1K $0.00244 per image. API usage is charged in USD to your PopNow balance. When a task is accepted, we reserve the maximum quoted amount from your PopNow balance. On completion, we charge for actual usage, never more than the hold, and release the remainder. If the task fails, the hold is released.
What is the model name for GPT Image 2 in the API?
Put openai/gpt-image-2/text-to-image for Create Image; openai/gpt-image-2/edit for Edit Image in the model field of POST /jobs/createTask.
How fast is the GPT Image 2 API?
About 58 seconds for text to image and 88 for edits.
Does GPT Image 2 support transparency?
No, only opaque backgrounds.
Why does aspect ratio change the price?
At the same quality, square outputs cost more than wide or tall ones.
What are the limits of the GPT Image 2 API?
Resolutions: 1K · 2K · 4K; Aspect ratios: 1:1 · 1:2 · 1:3 · 2:1 · 2:3 · 3:1 +9; Outputs per call: 1–10; Prompt length (characters): 5,000. Requests outside these limits are rejected before anything is charged.
Can I try GPT Image 2 without writing code?
Run GPT Image 2 in the Playground without an API key, using the same PopNow balance as the website, shown in USD. Each run appears in your developer history with its matching code.
All GPT Image models
GPT Image 2.5 Flare and Sunburst add transparent backgrounds, higher quality tiers and 16-photo edits.
- GPT Image 2.5 Sunburst APIOpenAI's quality-first model, up to 4K with clean textFrom $0.002 per image
- GPT Image 2.6 Sunburst APIOpenAI's precision tier for detail that holds across repeated edits, up to 4KFrom $0.02232 per image
- GPT Image 2.6 Flare APIOpenAI's fast tier for quick drafts, edits and short GIF loopsFrom $0.02232 per image
- GPT Image 2.5 Flare APIOpenAI's speed-first model with masked edits and cut-outsFrom $0.00182 per image
- GPT Image 2 APILegible in-image text and precise masked editsFrom $0.00182 per image
More about GPT Image 2
- Endpoints
- GPT Image 2 · Edit Image