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

VS Code · Image

How to Use GPT Image 2.6 Flare Edit in VS Code

GPT Image 2.6 Flare Edit revises existing images, including product shots and illustrations. Unlike GPT Image 2.6 Flare Text to Image, it uses image references to guide changes and preserve recognizable subjects.

Prompts to try with GPT Image 2.6 Flare Edit in VS Code

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

Use GPT Image 2.6 Flare Edit to revise the product photo in this project's assets. Replace only the tabletop with pale oak, keep the bottle shape and printed label unchanged, and return a 1024 by 1536 image for review.

GPT Image 2.6 Flare EditVS Code
Try asking
  • Use GPT Image 2.6 Flare Edit to develop the sketch in this project's design folder into a colored pencil illustration. Preserve the placement and relative size of the objects, use muted green and rust, and return a 1024 by 1024 PNG.

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

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

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

How to set up GPT Image 2.6 Flare Edit in VS Code

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

Use Spiral's MCP server

  1. Add the hosted server

    Use Add to VS Code on the console's Agents & MCP page, or run:

    code --add-mcp '{"name":"spiral","type":"http","url":"https://api.spiral.ai/mcp"}'
  2. Sign in

    VS Code asks you to sign in when it first starts the server: sign in to Spiral and click Authorize. No API key. Run MCP: List Servers from the Command Palette to check that Spiral is running.

Use the Spiral skill

  1. Send VS Code 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 Flare 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/flare/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: VS Code finds GPT Image 2.6 Flare Edit on Spiral, shows the price and runs it.

GPT Image 2.6 Flare Edit providers and prices

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

falImage
GPT Image 2.6 Flare · Edit
openai/gpt-image-2.6/flare/edit
OpenAIImage
GPT Image 2.6 Flare · Edit
gpt-image-2.6-flare/edit

Settings you can ask for

GPT Image 2.6 Flare Edit works from your prompt, image URLs, and mask URL. Ask VS Code 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 Flare · Edit is on its tool page: open its card above.

What can you do with GPT Image 2.6 Flare Edit in VS Code?

Create visual assets alongside the code that uses them, including website illustrations and documentation graphics. Use project content to define the brief, then review lettering and composition before adding the image.

Event posters

Create a poster from an event brief or revise an existing design. Specify the headline, date, and reading order, then proofread the result.

Product campaign concepts

Explore a product scene from a written description or rework an existing product photo. Define the setting, lighting, and space needed for accompanying copy.

Process diagrams

Draft a process graphic or revise an existing diagram using supplied steps and labels. Check every connection and label before sharing it.

Editorial illustrations

Develop an illustration from an article brief or adapt existing artwork. Specify the subject, medium, palette, and intended crop.

Product photo revisions

Change the setting or a selected detail in an existing product photo. State which product features must stay recognizable and inspect them afterward.

Sketch development

Use a sketch as the starting point for a finished illustration. Describe the materials and lighting while identifying the composition to preserve.

Questions about GPT Image 2.6 Flare Edit in VS Code

Can VS Code use GPT Image 2.6 Flare Edit?

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

How much does GPT Image 2.6 Flare Edit cost in VS Code?

$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 VS Code plan is separate.

Do I need a fal account to use GPT Image 2.6 Flare Edit in VS Code?

No. Spiral runs GPT Image 2.6 Flare 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 Flare Edit in VS Code?

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

Does VS Code wait while GPT Image 2.6 Flare Edit runs?

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

What is GPT Image 2.6 Flare useful for?

Use it to explore posters, product visuals, illustrations, and explanatory graphics. It suits workflows where you want to inspect a draft and refine the visual direction.

How does Flare differ from Sunburst?

Flare prioritizes faster iteration. Sunburst is designed for more demanding detail and precise edits, so compare their results on the details your work requires.

Can GPT Image 2.6 Flare put readable text in an image?

Yes, but spelling, clarity, and placement still need checking. Put the exact copy in quotation marks and specify where it belongs.

How large can a still image be?

The longest edge can reach 3840 pixels, with up to 8,294,400 total pixels. Both dimensions must be multiples of 16, the image must contain at least 655,360 pixels, and its proportions cannot exceed 3:1 in either direction.

Can GPT Image 2.6 Flare make transparent assets?

Yes. Use PNG or WebP and check the file's transparency rather than judging it from a preview alone.

Get started

Start using GPT Image 2.6 Flare Edit in VS Code

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

Paste this into VS Code:

Set up VS Code

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