GPT Image 2.6 Sunburst API reference
OpenAI's precision tier for detail that holds across repeated edits, up to 4K
Call GPT Image 2.6 Sunburst from your own code with one PopNow API key. Below are the exact model IDs to send, every input field the model accepts, what each request costs in USD, and a request you can paste into a terminal.
At a glance
- Made by
- OpenAI
- Output
- Image
- From
- $0.02232 USD per image
- Typical time
- about 50 s
Prices are in USD, charged to your PopNow balance. A task reserves the maximum possible charge when accepted and settles actual usage on completion; any remainder is released. Failed tasks are not charged. Call POST /api/v1/jobs/quote for an exact quote before running.
Create Image
openai/gpt-image-2.6-sunburst/text-to-image
Price
| Option | USD |
|---|---|
quality = low, resolution = 1k | $0.02232 per image |
quality = low, resolution = 512 | $0.027 per image |
quality = medium, resolution = 1k | $0.03915 per image |
quality = low, resolution = 2k | $0.04131 per image |
quality = low, resolution = 768 | $0.04392 per image |
quality = high, resolution = 1k | $0.04743 per image |
quality = medium, resolution = 512 | $0.04752 per image |
quality = high, resolution = 512 | $0.05742 per image |
quality = medium, resolution = 2k | $0.07299 per image |
quality = low, resolution = 4k | $0.07479 per image |
quality = medium, resolution = 768 | $0.07776 per image |
quality = xhigh, resolution = 1k | $0.08433 per image |
quality = high, resolution = 2k | $0.08847 per image |
quality = high, resolution = 768 | $0.09432 per image |
quality = xhigh, resolution = 512 | $0.10206 per image |
quality = medium, resolution = 4k | $0.13221 per image |
quality = xhigh, resolution = 2k | $0.15723 per image |
quality = high, resolution = 4k | $0.16011 per image |
quality = xhigh, resolution = 768 | $0.1674 per image |
quality = max, resolution = 1k | $0.18972 per image |
quality = max, resolution = 512 | $0.22941 per image |
quality = xhigh, resolution = 4k | $0.28512 per image |
quality = max, resolution = 2k | $0.35379 per image |
quality = max, resolution = 768 | $0.37638 per image |
quality = max, resolution = 4k | $0.64044 per image |
Billed on the tokens each request uses: $4.5 per 1M text input tokens, $7.2 per 1M image input tokens and $27 per 1M image output tokens. The table lists the square-image price for each tier, so other ratios usually cost less. With several output images, input tokens count once per image.
Parameters
| Field | Type | Default | Allowed | What it does |
|---|---|---|---|---|
promptRequired | string | — | up to 5,000 characters | Describe the picture: subject, setting, light and any short text to render in quotes. |
aspect_ratioOptional | string | 1:1 | 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 21:9, 9:21, 2:1, 1:2, 3:1, 1:3, 5:4, … (+1) | Output aspect ratio. |
resolutionOptional | string | 1k | 1k, 2k, 4k, 512, 768 | Output size tier: 1k is about 1 megapixel, 2k about 3.7, 4k about 8.3. For GIF output use 512 or 768, the size of one frame. |
qualityOptional | string | medium | low, medium, high, xhigh, max | Rendering quality. Higher tiers add detail, time and cost. |
reasoning_effortOptional | string | — | low, medium, high | How much the model plans the picture before drawing. Higher helps dense text and complex layouts and takes longer; the price does not change. Leave it unset for the model default (high). |
num_outputsOptional | integer | 1 | 1 to 10 | How many images to return, each billed separately. |
backgroundOptional | string | auto | auto, transparent, opaque | Background treatment. Transparent needs PNG or WebP output. |
output_formatOptional | string | png | png, jpeg, webp, gif | File format of the returned images. gif returns an animated loop; describe the motion in the prompt. |
frame_countOptional | integer | — | 2 to 16 | Number of frames in a GIF, 2 to 16 (default 9). Every 8 frames are billed as one more frame sheet. Only with gif output. |
frame_duration_msOptional | integer | — | 20 to 2000 | How long each GIF frame stays on screen, 20 to 2000 milliseconds (default 200). Only with gif output. |
output_qualityOptional | integer | — | 0 to 100 | Compression quality for JPEG and WebP output, from 0 to 100. |
Example request
This request runs as it is; any field you leave out uses its default. Put your key in POPNOW_API_KEY first.
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: $(uuidgen)" \
-d '{
"model": "openai/gpt-image-2.6-sunburst/text-to-image",
"input": {
"prompt": "A cozy reading nook beside a rain-streaked window, warm lamp light, a sleeping orange cat on a knitted blanket, soft film grain",
"num_outputs": 1,
"quality": "medium",
"resolution": "1k"
}
}'The response carries a taskId straight away. Read the result with GET /api/v1/jobs/recordInfo, or add callBackUrl to be notified.
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"Edit Image
openai/gpt-image-2.6-sunburst/edit
Price
| Option | USD |
|---|---|
quality = low, resolution = 1k | $0.02232 per image |
quality = medium, resolution = 1k | $0.03915 per image |
quality = low, resolution = 2k | $0.04131 per image |
quality = high, resolution = 1k | $0.04743 per image |
quality = medium, resolution = 2k | $0.07299 per image |
quality = low, resolution = 4k | $0.07479 per image |
quality = xhigh, resolution = 1k | $0.08433 per image |
quality = high, resolution = 2k | $0.08847 per image |
quality = medium, resolution = 4k | $0.13221 per image |
quality = xhigh, resolution = 2k | $0.15723 per image |
quality = high, resolution = 4k | $0.16011 per image |
quality = max, resolution = 1k | $0.18972 per image |
quality = xhigh, resolution = 4k | $0.28512 per image |
quality = max, resolution = 2k | $0.35379 per image |
quality = max, resolution = 4k | $0.64044 per image |
Billed on the tokens each request uses: $4.5 per 1M text input tokens, $7.2 per 1M image input tokens and $27 per 1M image output tokens. The table lists the square-image price for each tier, so other ratios usually cost less. With several output images, input tokens count once per image.
Parameters
| Field | Type | Default | Allowed | What it does |
|---|---|---|---|---|
promptRequired | string | — | up to 5,000 characters | Say what to change and what must stay the same. Refer to the images as Image 1, Image 2 and so on. |
image_urlsRequired | array<string (uri)> | — | up to 16 items | One to 16 source images, in the order your prompt refers to them. Each one adds a small charge. |
mask_urlOptional | string (uri) | — | — | Optional PNG mask: transparent pixels mark the area to repaint in the first image, same size as that image. Cannot be combined with markup_url. |
markup_urlOptional | string (uri) | — | — | Optional transparent PNG with circles, sketches or notes drawn over the first image to show what to change, same size as that image. Cannot be combined with mask_url. |
aspect_ratioOptional | string | — | 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 21:9, 9:21, 2:1, 1:2, 3:1, 1:3, 5:4, … (+1) | Output aspect ratio. Leave it unset to keep the first image's shape (1k only); pick a ratio for 2k or 4k. |
resolutionOptional | string | 1k | 1k, 2k, 4k | Output size tier: 1k is about 1 megapixel, 2k about 3.7, 4k about 8.3. |
qualityOptional | string | medium | low, medium, high, xhigh, max | Rendering quality. Higher tiers add detail, time and cost. |
reasoning_effortOptional | string | — | low, medium, high | How much the model plans the picture before drawing. Higher helps dense text and complex layouts and takes longer; the price does not change. Leave it unset for the model default (high). |
num_outputsOptional | integer | 1 | 1 to 10 | How many images to return, each billed separately. |
backgroundOptional | string | auto | auto, transparent, opaque | Background treatment. Transparent needs PNG or WebP output. |
output_formatOptional | string | png | png, jpeg, webp | File format of the returned images. |
output_qualityOptional | integer | — | 0 to 100 | Compression quality for JPEG and WebP output, from 0 to 100. |
Example request
This request runs as it is; any field you leave out uses its default. Put your key in POPNOW_API_KEY first.
The example uses PopNow sample files in image_urls. Replace them with your own public HTTPS links, uploads or saved assets.
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: $(uuidgen)" \
-d '{
"model": "openai/gpt-image-2.6-sunburst/edit",
"input": {
"prompt": "Change the orange jacket to deep forest green and add soft golden-hour light; keep the face, pose and background unchanged",
"image_urls": [
"https://media.popnow.ai/influencer/examples/marco.webp"
],
"num_outputs": 1,
"quality": "medium",
"resolution": "1k"
}
}'The response carries a taskId straight away. Read the result with GET /api/v1/jobs/recordInfo, or add callBackUrl to be notified.
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
-H "Authorization: Bearer $POPNOW_API_KEY"
