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

Factory Droid · ImageReleased 2026-04-20

How to Use GPT Image 2 Edit in Factory Droid

Use GPT Image 2 Edit to revise an existing image, combine references, or change a scene while preserving its subject. It uses the same underlying model as GPT Image 2, with reference images guiding the result.

Prompts to try with GPT Image 2 Edit in Factory Droid

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

Use GPT Image 2 Edit on the product photograph in this project's assets. Replace only the background with a sunlit workshop; preserve the product shape, label wording, and camera angle. Return a 1536×1024 image at high quality.

GPT Image 2 EditFactory Droid
Try asking
  • Use GPT Image 2 Edit to revise the illustration used on this project's empty state. Change only the central object to an open notebook, preserving the palette, perspective, and surrounding scene. Keep the output 1024×1024.

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

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

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

How to set up GPT Image 2 Edit in Factory Droid

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

Use Spiral's MCP server

  1. Add the server

    Droid saves it to your user config, ~/.factory/mcp.json, so it works in every project.

    droid mcp add spiral https://api.spiral.ai/mcp --type http
  2. Sign in

    Start droid, type /mcp, select spiral and authenticate it. Sign in to Spiral in the browser and click Authorize. No API key.

  3. Check it

    Spiral shows as connected. needs authentication means the sign-in did not finish: run /mcp again.

    droid mcp list

Use the Spiral skill

  1. Send Factory Droid 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 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/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: Factory Droid finds GPT Image 2 Edit on Spiral, shows the price and runs it.

GPT Image 2 Edit providers and prices

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

falImage
GPT Image 2 · Image Editing
openai/gpt-image-2/edit
OpenAIDeprecatedImage
GPT Image 2 · Edit
gpt-image-2/edit

Settings you can ask for

GPT Image 2 Edit works from your prompt, image URLs, and mask URL. Ask Factory Droid for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Backgroundauto or opaqueauto

Background for the generated image

Qualityauto, low, medium, or highhigh

Quality for the generated image. Use 'auto' to let the model pick the best quality for the prompt.

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 · Image Editing is on its tool page: open its card above.

What can you do with GPT Image 2 Edit in Factory Droid?

Create image assets that fit the project's actual content and layout. A coding agent can use repository briefs and existing images to prepare illustrations, diagrams, and targeted revisions.

Article illustrations

Turn an article brief into a realistic scene or explanatory illustration, with space reserved for a headline.

Labeled diagrams

Create an infographic from supplied relationships and exact labels, then review the text and arrangement.

Product scene revisions

Edit a product photograph into a different setting while specifying which shape, label, and lighting details to preserve.

Visual sequences

Describe each panel of a short visual story and review the result for subject continuity.

Campaign concepts

Explore poster compositions at low quality, then refine a chosen direction with exact copy at higher quality.

Reference composites

Combine a subject from one image with a scene from another, naming each reference's role.

GPT Image 2 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
95.2%
Fastest median run time
1m 31s
Runs, last 24 hours
314
ToolSuccessMedian timeRuns
GPT Image 2 · Image Editing95.3%1m 31s296
GPT Image 2 · EditNot enough runs

Questions about GPT Image 2 Edit in Factory Droid

Can Factory Droid use GPT Image 2 Edit?

Yes. Add Spiral to Factory Droid as an MCP server, and Factory Droid can find and run GPT Image 2 Edit like any built-in tool.

How much does GPT Image 2 Edit cost in Factory Droid?

$0.188 per 4:3 image at high quality ($0.00572 low, $0.0475 medium). At high: $0.24 square, $0.274 square HD, $0.135 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 Factory Droid plan is separate.

Do I need a fal account to use GPT Image 2 Edit in Factory Droid?

No. Spiral runs GPT Image 2 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 Edit in Factory Droid?

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

Which provider runs GPT Image 2 Edit?

Spiral offers GPT Image 2 Edit through fal and OpenAI. Name one in your prompt, or let Factory Droid pick.

Does Factory Droid wait while GPT Image 2 Edit runs?

GPT Image 2 Edit runs in the background. Factory Droid starts the run, checks on it and gives you the image when it's ready.

What is GPT Image 2 good at?

It is useful for realistic imagery, posters with embedded text, infographics, diagrams, and visual sequences. Give it a concrete brief with the subject, composition, required copy, and intended use.

How does GPT Image 2 Edit differ from GPT Image 2?

Both use the same underlying model. Choose the generation entry to start from a written brief and the editing entry to revise existing imagery or combine references.

Can GPT Image 2 generate 4K images?

Yes. Supported examples include 3840×2160 landscape and 2160×3840 portrait; custom sizes must meet the dimension, aspect ratio, and total pixel limits.

How do I get readable text inside an image?

Quote the exact copy, specify its position and typography, and say how many times it should appear. Check the result for spelling and placement before using it.

Which quality setting should I use?

Start with low quality to compare draft concepts. Use medium or high for final assets, especially when small lettering or dense labels matter.

Get started

Start using GPT Image 2 Edit in Factory Droid

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

Paste this into Factory Droid:

Set up Factory Droid

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