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

opencode · ImageReleased 2026-09-08

How to Use GPT Image 2.5 Sunburst Edit in opencode

GPT Image 2.5 Sunburst Edit revises existing images with close control over subjects and composition. Unlike GPT Image 2.5 Sunburst Text to Image, it uses reference images to guide changes.

Prompts to try with GPT Image 2.5 Sunburst Edit in opencode

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

Use GPT Image 2.5 Sunburst Edit on the product image in public/assets. Change only the background to dark green painted wood; preserve the bottle shape, label wording, cap, and camera angle. Return a 1024 × 1024 image.

GPT Image 2.5 Sunburst Editopencode
Try asking
  • Use GPT Image 2.5 Sunburst Edit on the existing article illustration. Replace the cloudy sky with pale morning light while preserving the buildings, people, framing, and ink texture. Return 1536 × 1024.

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

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

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

How to set up GPT Image 2.5 Sunburst Edit in opencode

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

Use Spiral's MCP server

  1. Add the server

    Leave out --global to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

    opencode mcp add spiral --global --url https://api.spiral.ai/mcp
  2. Sign in

    Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, /mcps starts the same sign-in.

    opencode mcp auth spiral
  3. Check it

    Spiral shows as connected.

    opencode mcp list

Use the Spiral skill

  1. Send opencode 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.5 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.5/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: opencode finds GPT Image 2.5 Sunburst Edit on Spiral, shows the price and runs it.

GPT Image 2.5 Sunburst Edit providers and prices

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

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

Settings you can ask for

GPT Image 2.5 Sunburst Edit works from your prompt, image URLs, and mask URL. Ask opencode 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.5 Sunburst · Image Editing is on its tool page: open its card above.

What can you do with GPT Image 2.5 Sunburst Edit in opencode?

Turn project briefs into campaign artwork, illustrations, and product visuals. Use the project’s content and visual requirements to write specific briefs and review the resulting images.

Campaign art

Develop campaign scenes with deliberate lighting, material detail, and space reserved for a headline.

Product concepts

Explore packaging, surface finishes, and product presentation before arranging a photo shoot.

Educational graphics

Develop illustrated process explanations with a defined reading order. Review labels and relationships before publication.

Editorial illustrations

Explore gouache, ink, or print treatments for articles, covers, and presentation artwork.

Product cutouts

Extract a supplied product onto a transparent background while asking to preserve its shape and label.

Focused creative revisions

Change a background, garment, or product detail in an existing image while specifying what must remain intact.

GPT Image 2.5 Sunburst Edit success rate and speed on Spiral

Success and speed over the last 24 hours, across every run of these tools on Spiral.

Success rate
97.6%
Fastest median run time
30.2s
Runs, last 24 hours
2,497
ToolSuccessMedian timeRuns
GPT Image 2.5 Sunburst · Image Editing97.7%39.6s2,466
GPT Image 2.5 Sunburst · Edit87.1%30.2s31

Questions about GPT Image 2.5 Sunburst Edit in opencode

Can opencode use GPT Image 2.5 Sunburst Edit?

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

How much does GPT Image 2.5 Sunburst Edit cost in opencode?

$0.0475 per 4:3 image at high quality ($0.00572 low, $0.0122 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 opencode plan is separate.

Do I need a fal account to use GPT Image 2.5 Sunburst Edit in opencode?

No. Spiral runs GPT Image 2.5 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.5 Sunburst Edit in opencode?

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

Does opencode wait while GPT Image 2.5 Sunburst Edit runs?

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

What is GPT Image 2.5 Sunburst useful for?

Use it for detailed campaign imagery, product concepts, illustrations, and information graphics. Its emphasis on visual detail makes it useful when materials, lighting, and composition matter.

How large can the images be?

Supported examples reach 3840 × 2160 pixels. Outputs above 2560 × 1440 are experimental, so inspect large images closely before using them.

Can it put exact wording inside an image?

Yes. Put the wording in quotes and specify its position and typography, then check the result against your requested copy.

Can it make transparent assets?

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

Should I always choose the highest quality?

Compare settings against the detail you need. A higher setting does not guarantee a better result for every prompt.

Get started

Start using GPT Image 2.5 Sunburst Edit in opencode

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

Paste this into opencode:

Set up opencode

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