About GPT Image 2.5 Sunburst
GPT Image 2.5 Sunburst edit takes a prompt and up to 16 image_urls, plus optional mask_url to restrict changes to a painted region.
Call it with the model name openai/gpt-image-2.5-sunburst/edit on POST /jobs/createTask, from $0.01165.
Introduction
GPT Image 2.5 Sunburst Edit changes one to sixteen source images supplied in image_urls. An optional PNG mask guides the area to repaint. You can also set input fidelity, request a transparent background and return one to ten variations.
Choose a mode by starting material
| Starting material | Mode |
|---|---|
| A written brief | Text to image |
| An image to change | Edit images |
Key features
Masks guide the edit
Supply a PNG mask in mask_url; its transparent areas mark where the first source image should be repainted. The mask guides generation rather than protecting every other pixel. Review the complete result against the source.
Fidelity and reference images
Set input_fidelity to high when the source appearance needs closer attention; the default is low. With several sources, identify each by upload order and explain what it contributes.
Transparent output
Set background to transparent and choose PNG or WebP to retain an alpha channel. Describe which person or object should remain, then inspect the edges and transparency in the downloaded file.
Request parameters
| Parameter | Required | Description |
|---|---|---|
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 |
background | No | Keep, remove or replace the background. auto · transparent · opaque · Default: auto |
image_urls | Yes | Photos to edit or combine. Say in the prompt what each one adds. |
input_fidelity | No | How closely to keep the look of your source pictures. low · high · Default: low |
mask_url | No | Paint over the area that should change. |
num_outputs | No | How many results to make in one go. ≥ 1 · ≤ 10 · Default: 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 |
prompt | Yes | Describe what you want to make. |
quality | No | Choose one of this model’s quality settings. low · medium · high · xhigh · max · Default: high |
resolution | No | Choose an available output size. 1k · 2k · 4k · Default: 1k |
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
Retouch an approved photograph
Change a garment, colour or lighting arrangement and specify the details to preserve. A mask can focus the request on one area; compare faces, objects and the surrounding scene before using the result.
Cut-outs for layouts
Request a person or product on a transparent background for a slide, campaign layout or product page. Check for remaining background pixels and soft or missing edges.
Product colour variations
Use the same source image to explore finishes or colours. Name the details that should stay, such as the product shape, markings, lighting and setting, and compare each variation.
Prompt guide & pro tips
Match the mask to the first source
Create a PNG mask with the same pixel dimensions as the first source image. Make the intended edit area transparent and the rest opaque.
Write the preservation instructions
List the face, hair, pose, product markings or lighting that should remain. The list communicates your intent; check those details in the returned image.
Request transparency in both settings and text
Choose a transparent background and PNG or WebP output, then describe the subject to retain. Open the file on a contrasting background to inspect the alpha channel and edges.
API quick start
Call the GPT Image 2.5 Sunburst 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.5-sunburst/edit 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.5-sunburst/edit",
"input": {
"prompt": "A ceramic teapot on a linen cloth, soft window light, muted palette",
"image_urls": [
"https://media.popnow.ai/influencer/examples/marco.webp"
],
"aspect_ratio": "1:1",
"resolution": "1k",
"quality": "high",
"num_outputs": 1,
"input_fidelity": "low"
}
}'
# 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.
About the GPT Image 2.5 Sunburst Edit Image endpoint
input_fidelity high protects faces and identity when the edit changes clothing, colour or light around a person.
background transparent turns the edit into a cut-out generator; request png or webp.
Edits typically take about two minutes at high quality, longer at xhigh and max.
num_outputs returns several candidates, each billed, which suits review flows where the user picks one.
GPT Image 2.5 Sunburst API questions
How much does the GPT Image 2.5 Sunburst API cost?
GPT Image 2.5 Sunburst starts at $0.01165 per image with Edit 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 are the limits of the GPT Image 2.5 Sunburst · Edit Image 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; Reference images: 16; Prompt length (characters): 5,000. Requests outside these limits are rejected before anything is charged.