Spiral gives your agent every tool with one account. Browse the tools →

Codex · Image

How to Use GPT Image 2.6 Sunburst Edit in Codex

GPT Image 2.6 Sunburst Edit refines existing images while preserving the subject and composition through revisions. Unlike GPT Image 2.6 Sunburst Text to Image, it starts with reference images for changes such as replacing a backdrop or restyling a scene.

Prompts to try with GPT Image 2.6 Sunburst Edit in Codex

Copy an example into Codex, or ask in your own words.

Use GPT Image 2.6 Sunburst Edit on the product photo in this project's assets. Replace only the backdrop with a neutral studio setting; preserve the product geometry, label, camera angle, and lighting. Return a 1024 × 1024 image.

GPT Image 2.6 Sunburst EditCodex
Try asking
  • Use GPT Image 2.6 Sunburst Edit to isolate the product in the project's source photo on a transparent background. Preserve its silhouette and label, return a 1024 × 1536 PNG, and inspect the edges before saving it.

  • Remove the background from the photo I attach with GPT Image 2.6 Sunburst Edit and give me a transparent PNG. Save the result in ./assets.

  • Use GPT Image 2.6 Sunburst Edit to clean up these product shots so they sit on pure white.

  • Edit this image with GPT Image 2.6 Sunburst Edit: keep the subject, swap the background for a sunlit studio.

How to set up GPT Image 2.6 Sunburst Edit in Codex

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. Add the hosted server
    codex mcp add spiral --url https://api.spiral.ai/mcp
  2. Sign in

    Codex opens the browser: sign in to Spiral and click Authorize. No API key. codex mcp list then shows Spiral.

    codex mcp login spiral

Use the Spiral skill

  1. Send Codex this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. Install and sign in

    Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run GPT Image 2.6 Sunburst Edit

    One request; the result comes back by polling or a webhook.

    curl https://api.spiral.ai/v1/runs \
      -H "Authorization: Bearer $SPIRAL_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: $(uuidgen)" \
      -d '{
        "provider": "fal",
        "model": "openai/gpt-image-2.6/sunburst/edit",
        "input": {
          "prompt": "Same workers, same beam, same lunch boxes - but they'\''re all on their phones now. One is taking a selfie. One is on a call looking annoyed. Same danger, new…",
          "image_urls": [
            "<image_urls>"
          ]
        }
      }'

Then paste one of the prompts above: Codex finds GPT Image 2.6 Sunburst Edit on Spiral, shows the price and runs it.

GPT Image 2.6 Sunburst Edit providers and prices

Spiral runs GPT Image 2.6 Sunburst Edit through fal and OpenAI. Open a card for today's price, with every fee included. Name one in your prompt, or let Codex pick.

falImage
GPT Image 2.6 Sunburst · Edit
openai/gpt-image-2.6/sunburst/edit
OpenAIImage
GPT Image 2.6 Sunburst · Edit
gpt-image-2.6-sunburst/edit

Settings you can ask for

GPT Image 2.6 Sunburst Edit works from your prompt, image URLs, and mask URL. Ask Codex for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Backgroundauto, transparent, or opaqueauto

Background for the generated image

Qualityauto, low, medium, high, xhigh, or maxhigh

Quality for the generated image. Higher settings increase detail, latency, and token usage. Use 'auto' to let the model choose.

Number of images1 to 101

Number of images to generate

Output formatjpeg, png, or webppng

Output format for the images

Output compression0 to 100

Compression level from 0 to 100. Only supported when output_format is 'jpeg' or 'webp'.

Image passthroughon or offoff

Send reference images and masks without resizing or re-encoding, and return the provider's original image bytes and format. Requests use the direct OpenAI API. Masks must be PNGs with an alpha channel: transparent regions are edited, and dimensions must match the first reference.

Every API field of GPT Image 2.6 Sunburst · Edit is on its tool page: open its card above.

What can you do with GPT Image 2.6 Sunburst Edit in Codex?

Turn project briefs into image assets and visual concepts with GPT Image 2.6 Sunburst. Use the project's design requirements to specify composition and lettering, then inspect the output before adding it to the interface.

Product campaign images

Build a product scene from a written concept, or revise an existing product photo while preserving its shape and label. Specify the lighting, backdrop, and space needed for campaign copy.

Event posters

Create a poster from an event brief or update an existing design. Supply the exact headline, date, and location, then check every word in the result.

Process diagrams

Illustrate a short process from supplied steps, or revise a diagram that needs clearer visual hierarchy. Provide the labels and connections explicitly, then verify their placement.

App interface concepts

Explore a screen design from a written specification or refine an existing screen image. Define the navigation, content hierarchy, and exact labels before generating the visual.

Product cutouts

Isolate a product from a supplied photo for use in a layout. Request a transparent PNG and inspect the silhouette, label, and fine edges before placing it.

Illustrated campaign revisions

Restyle a supplied campaign image while retaining the subject, pose, and framing. State which visual treatment should change and which recognizable details must survive.

Questions about GPT Image 2.6 Sunburst Edit in Codex

Can Codex use GPT Image 2.6 Sunburst Edit?

Yes. Add Spiral to Codex as an MCP server, and Codex can find and run GPT Image 2.6 Sunburst Edit like any built-in tool.

How much does GPT Image 2.6 Sunburst Edit cost in Codex?

$0.0475 per 4:3 image at high quality ($0.0225 low, $0.0393 medium, $0.084 xhigh, $0.188 max). At high: $0.0605 square, $0.069 square HD, $0.0342 16:9. Auto quality or size: the price of the one chosen for the request. Prompt: $6.50 per 1M tokens. Input images: $0.0106 each at 1024×1024. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Codex plan is separate.

Do I need a fal account to use GPT Image 2.6 Sunburst Edit in Codex?

No. Spiral runs GPT Image 2.6 Sunburst Edit on its own fal account. You sign in to Spiral once and never paste a key.

How long does it take to set up GPT Image 2.6 Sunburst Edit in Codex?

About two minutes: add the hosted server, then sign in.

Does Codex wait while GPT Image 2.6 Sunburst Edit runs?

GPT Image 2.6 Sunburst Edit runs in the background. Codex starts the run, checks on it and gives you the image when it's ready.

What is GPT Image 2.6 Sunburst good at?

Detailed compositions and image editing are its main strengths. Consider it for visuals where product details, illustration detail, or careful revisions affect whether the image is usable.

How large can GPT Image 2.6 Sunburst images be?

The longest edge can reach 3,840 pixels, with an aspect ratio no wider or taller than 3:1. The total image must contain between 655,360 and 8,294,400 pixels, so the edge limit does not permit a 3,840 × 3,840 square.

Can GPT Image 2.6 Sunburst make transparent images?

Yes. Request a transparent background and choose PNG or WebP so the result can retain transparency.

Can I trust text inside a generated image?

Review it before publishing. Precise text placement and clarity can still fail, especially when the wording must fit a particular part of the design.

How should I prompt GPT Image 2.6 Sunburst?

Put required wording in quotation marks and specify where it belongs and how it should look. When requesting a revision, state the change separately from the details that must stay unchanged.

Get started

Start using GPT Image 2.6 Sunburst Edit in Codex

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into Codex:

Set up Codex

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options