[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Nano Banana 2 Image Editing fal](https://spiral.ai/integrations/opencode/nano-banana-2-image-editing-fal)

# How to Use Nano Banana 2 Image Editing fal in opencode

Nano Banana 2 Image Editing changes photos, combines references, and transfers styles with written instructions. Unlike Nano Banana 2 Text to Image, it centers the work on existing visuals.

|  |  |
| --- | --- |
| Model | Nano Banana 2 Image Editing fal |
| Available through | fal |
| Category | Image |
| Price | $0.104 per image at 1K ($0.078 at 0.5K, $0.156 at 2K, $0.208 at 4K). Web search: $0.0195 per request. High thinking: $0.0026 per request. |
| Returns | image |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Nano Banana 2 Image Editing fal in opencode

- Use Nano Banana 2 Image Editing to restage the product photo in public/images on a wooden desk with soft window light. Preserve the product's shape and label.
- Use Nano Banana 2 Image Editing to turn the onboarding diagram in docs/assets into a hand-drawn illustration. Keep its approved labels and connections.
- Remove the background from the photo I attach with Nano Banana 2 Image Editing fal and give me a transparent PNG. Save the result in ./assets.
- Use Nano Banana 2 Image Editing fal to clean up these product shots so they sit on pure white.
- Edit this image with Nano Banana 2 Image Editing fal: keep the subject, swap the background for a sunlit studio.

## How to set up Nano Banana 2 Image Editing fal 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.

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

```bash
opencode mcp auth spiral
```

3. **Check it**: Spiral shows as connected.

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

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Nano Banana 2 Image Editing fal**: 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": "fal-ai/nano-banana-2/edit",
    "input": {
      "prompt": "make a photo of the man driving the car down the california coastline",
      "image_urls": [
        "<image_urls>"
      ]
    }
  }'
```

Then paste one of the prompts above: opencode finds Nano Banana 2 Image Editing fal on Spiral, shows the price and runs it.

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

## Nano Banana 2 Image Editing fal tools and prices

- [Nano Banana 2 · Image Editing](https://spiral.ai/tools/fal/fal-ai/nano-banana-2/edit) (fal): $0.104 per image at 1K ($0.078 at 0.5K, $0.156 at 2K, $0.208 at 4K). Web search: $0.0195 per request. High thinking: $0.0026 per request.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| image_urls |  | — | The URLs of the images to use for image-to-image generation or image editing. Optional when at least one of `video_url`, `audio_url`, or `pdf_url` is provided. |
| history |  | — | Previous native Gemini turns, including original parts and thought signatures from conversations. The current prompt starts a new user turn. |
| context |  | — | Ordered text, image, PDF, UTF-8 text-file or video parts appended to the current prompt. Original media bytes are preserved; images count toward the total 14-reference limit. |
| return_history |  | false | Return reusable native conversations with original image parts and provider thought signatures. Uses a native provider. Each generated conversation is independent; send its messages as history for the next turn. |
| thinking_level | minimal, high | — | Controls thinking effort ('minimal' or 'high') and requests thought summaries. Omit to use the provider default ('minimal'); thinking cannot be disabled. |
| image_passthrough |  | false | Send reference images and return provider images without resizing or re-encoding, preserving transparency and metadata. Uses direct Google or Vertex APIs; the returned image format may differ from output_format. |

## What can you do with Nano Banana 2 Image Editing fal in opencode?

Turn project briefs into campaign art, product concepts, and illustrated documentation with Nano Banana 2. A coding agent can use repository content to prepare detailed visual instructions and place the resulting assets in the project.

### Campaign graphics

Create a campaign concept from a brief or adapt an approved design with new wording and imagery.

### Product presentations

Visualize a product concept or restage an existing product photo for a presentation.

### Illustrated explainers

Turn a written explanation into a labeled illustration or revise an existing diagram.

### Posters and greeting cards

Build a design around exact quoted wording, with specified lettering and composition.

### Storyboard development

Explore scenes from a written treatment or use character references to guide successive frames.

### Localized artwork

Replace the text in an existing campaign image with approved translated copy.

### Style exploration

Reinterpret an existing scene as a watercolor, cartoon, or photographic composition.

## Overview

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

## Nano Banana 2 Image Editing fal in other agents

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

## More opencode guides

- [Nano Banana 2 Image Editing](https://spiral.ai/integrations/opencode/nano-banana-2-image-editing)
- [Nano Banana 2 Lite](https://spiral.ai/integrations/opencode/nano-banana-2-lite)
- [Nano Banana 2](https://spiral.ai/integrations/opencode/nano-banana-2)
- [Nano Banana 2 Text to Image](https://spiral.ai/integrations/opencode/nano-banana-2-text-to-image)
- [Nano Banana](https://spiral.ai/integrations/opencode/nano-banana)
- [Nano Banana 2 Text to Image fal](https://spiral.ai/integrations/opencode/nano-banana-2-text-to-image-fal)

## Questions about Nano Banana 2 Image Editing fal in opencode

**Can opencode use Nano Banana 2 Image Editing fal?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Nano Banana 2 Image Editing fal like any built-in tool.

**How much does Nano Banana 2 Image Editing fal cost in opencode?**

$0.104 per image at 1K ($0.078 at 0.5K, $0.156 at 2K, $0.208 at 4K). Web search: $0.0195 per request. High thinking: $0.0026 per request. 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 Nano Banana 2 Image Editing fal in opencode?**

No. Spiral runs Nano Banana 2 Image Editing fal on its own fal account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Nano Banana 2 Image Editing fal in opencode?**

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

**Does opencode wait while Nano Banana 2 Image Editing fal runs?**

Nano Banana 2 Image Editing fal runs in the background. opencode starts the run, checks on it and gives you the image when it's ready.

**What is Nano Banana 2 good at?**

Use it for marketing graphics, product concepts, illustrated explainers, and text inside images. It also suits storyboards and repeated visual exploration.

**How large can Nano Banana 2 images be?**

Nano Banana 2 supports output tiers from 0.5K through 4K, with 1K as the default. Start with a smaller draft to settle the composition before requesting a larger result.

**Can Nano Banana 2 put readable words in an image?**

Yes. Put the exact wording in quotes and specify the typography, such as bold sans-serif lettering.

**Can Nano Banana 2 make visuals in other languages?**

Yes. It can generate and translate text within images, making it useful for localized posters, cards, and campaign graphics.

**When does higher thinking effort help?**

Use it for a composition with several constraints, such as specific object placement, labels, and visual relationships. Google says reasoning before rendering can improve complex prompt adherence.

