[Integrations](https://spiral.ai/integrations) › [Gemini](https://spiral.ai/integrations/gemini) › [GPT Image 2 Edit](https://spiral.ai/integrations/gemini/gpt-image-2-edit)

# How to Use GPT Image 2 Edit in Gemini

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.

|  |  |
| --- | --- |
| Model | GPT Image 2 Edit |
| Available through | fal, OpenAI |
| Category | Image |
| Price | $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. |
| Returns | image |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with GPT Image 2 Edit in Gemini

- Use GPT Image 2 Edit on my reference photograph. Change only the wall color to muted green. Preserve the furniture, camera angle, window light, and floor shadows. Return a 1536×1024 image.
- Use GPT Image 2 Edit to place the bicycle from the second reference into the courtyard in the first reference. Match its scale, perspective, and shadows to the courtyard. Preserve the courtyard framing and return a 1536×1024 image.
- Remove the background from the photo I attach with GPT Image 2 Edit and give me a transparent PNG.
- 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 Gemini

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

### Use the Gemini connector

1. **Open Connected Apps**: On your computer, go to gemini.google.com. At the bottom, click Settings › Connected Apps. If you don't see Connected Apps, click Personal Intelligence first, then Connected Apps.

2. **Add Spiral as a custom app**: Under Custom apps, click Add a custom app and paste this MCP server URL:

```text
https://api.spiral.ai/mcp
```

3. **Sign in to Spiral and approve**: Follow the on-screen instructions. Spiral opens: sign in, pick the organization and click Authorize. No API key.

### Use the Spiral skill

1. **Send Gemini 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.

```bash
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.

```bash
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: Gemini finds GPT Image 2 Edit on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/gemini

## GPT Image 2 Edit tools and prices

- [GPT Image 2 · Image Editing](https://spiral.ai/tools/fal/openai/gpt-image-2/edit) (fal): $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.
- [GPT Image 2 · Edit](https://spiral.ai/tools/openai/gpt-image-2/edit) (OpenAI): $0.274 per 1024×1024 image at high quality ($0.00775 low, $0.0686 medium), plus each input image. At high: $0.214 at 1536×1024 or 1024×1536, $0.198 at 1792×1024 or 1024×1792, $0.203 at 512×512, $0.186 at 256×256. 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.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| image_size |  | auto | The size of the generated image. 'auto' infers it from the input images. Explicit sizes need both sides as multiples of 16, a longest edge of at most 3840 px, an aspect ratio of at most 3:1, and 655,360 to 8,294,400 pixels. |
| background | auto, opaque | auto | Background for the generated image |
| quality | auto, low, medium, high | high | Quality for the generated image. Use 'auto' to let the model pick the best quality for the prompt. |
| num_images | 1 to 10 | 1 | Number of images to generate |
| output_format | jpeg, png, webp | png | Output format for the images |
| output_compression | 0 to 100 | — | Compression level from 0 to 100. Only supported when output_format is 'jpeg' or 'webp'. |

## What can you do with GPT Image 2 Edit in Gemini?

Turn a written idea into a poster, diagram, or realistic scene you can review in conversation. With reference images, you can request a focused revision and refine one detail at a time.

### 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.

## Overview

- [fal](https://spiral.ai/providers/fal)
- [All Gemini guides](https://spiral.ai/integrations/gemini)

## GPT Image 2 Edit in other agents

- [Amp](https://spiral.ai/integrations/amp/gpt-image-2-edit)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/gpt-image-2-edit)
- [Claude](https://spiral.ai/integrations/claude-desktop/gpt-image-2-edit)
- [Claude Code](https://spiral.ai/integrations/claude-code/gpt-image-2-edit)
- [Cline](https://spiral.ai/integrations/cline/gpt-image-2-edit)
- [Codex](https://spiral.ai/integrations/codex/gpt-image-2-edit)
- [Cursor](https://spiral.ai/integrations/cursor/gpt-image-2-edit)
- [Devin](https://spiral.ai/integrations/devin/gpt-image-2-edit)
- [dots](https://spiral.ai/integrations/dots/gpt-image-2-edit)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/gpt-image-2-edit)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/gpt-image-2-edit)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/gpt-image-2-edit)
- [goose](https://spiral.ai/integrations/goose/gpt-image-2-edit)
- [Grok](https://spiral.ai/integrations/grok/gpt-image-2-edit)
- [Grok Build](https://spiral.ai/integrations/grok-build/gpt-image-2-edit)
- [Hermes](https://spiral.ai/integrations/hermes/gpt-image-2-edit)
- [Instinct](https://spiral.ai/integrations/instinct/gpt-image-2-edit)
- [Manus](https://spiral.ai/integrations/manus/gpt-image-2-edit)
- [Muse](https://spiral.ai/integrations/muse/gpt-image-2-edit)
- [Muse Code](https://spiral.ai/integrations/muse-code/gpt-image-2-edit)
- [n8n](https://spiral.ai/integrations/n8n/gpt-image-2-edit)
- [Notion](https://spiral.ai/integrations/notion/gpt-image-2-edit)
- [OpenClaw](https://spiral.ai/integrations/openclaw/gpt-image-2-edit)
- [opencode](https://spiral.ai/integrations/opencode/gpt-image-2-edit)
- [Perplexity](https://spiral.ai/integrations/perplexity/gpt-image-2-edit)
- [Raycast](https://spiral.ai/integrations/raycast/gpt-image-2-edit)
- [VS Code](https://spiral.ai/integrations/vscode/gpt-image-2-edit)
- [Windsurf](https://spiral.ai/integrations/windsurf/gpt-image-2-edit)
- [Zapier](https://spiral.ai/integrations/zapier/gpt-image-2-edit)

## More Gemini guides

- [GPT Image 2](https://spiral.ai/integrations/gemini/gpt-image-2)
- [GPT Image 2.5 Flare](https://spiral.ai/integrations/gemini/gpt-image-2-5-flare)
- [GPT Image 1.5 Edit](https://spiral.ai/integrations/gemini/gpt-image-1-5-edit)
- [GPT Image 2.5 Flare Edit](https://spiral.ai/integrations/gemini/gpt-image-2-5-flare-edit)
- [GPT Image 1.5](https://spiral.ai/integrations/gemini/gpt-image-1-5)
- [GPT Image 2.5 Flare Text to Image](https://spiral.ai/integrations/gemini/gpt-image-2-5-flare-text-to-image)

## Questions about GPT Image 2 Edit in Gemini

**Can Gemini use GPT Image 2 Edit?**

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

**How much does GPT Image 2 Edit cost in Gemini?**

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

**Do I need a fal account to use GPT Image 2 Edit in Gemini?**

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 Gemini?**

About two minutes: open Connected Apps, then add Spiral as a custom app, then sign in to Spiral and approve.

**Which provider runs GPT Image 2 Edit?**

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

**Does Gemini wait while GPT Image 2 Edit runs?**

GPT Image 2 Edit runs in the background. Gemini 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.

