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

Codex · ImageReleased 2026-10-06

How to Use Nano Banana 2.1 Edit in Codex

Rework product photos, combine references, or turn a sketch into a finished image. Unlike Nano Banana 2.1 Text to Image, Nano Banana 2.1 Edit uses existing visual material to guide the result.

Prompts to try with Nano Banana 2.1 Edit in Codex

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

Use Nano Banana 2.1 Edit to rework the product photo in the project's assets into a 4:5, 2K winter scene. Preserve the product shape and label, and compare the output with the original.

Nano Banana 2.1 EditCodex
Try asking
  • Use Nano Banana 2.1 Edit on the project's room sketch to create a 16:9, 2K concept render. Preserve the window and furniture positions; use pale oak, white plaster, and afternoon window light.

  • Remove the background from the photo I attach with Nano Banana 2.1 Edit and give me a transparent PNG. Save the result in ./assets.

  • Use Nano Banana 2.1 Edit to clean up these product shots so they sit on pure white.

  • Edit this image with Nano Banana 2.1 Edit: keep the subject, swap the background for a sunlit studio.

How to set up Nano Banana 2.1 Edit in Codex

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

Use Spiral's MCP server

  1. Add the hosted server
    codex mcp add spiral --url https://api.spiral.ai/mcp
  2. Sign in

    Codex opens the browser: sign in to Spiral and click Authorize. No API key. codex mcp list then shows Spiral.

    codex mcp login spiral

Use the Spiral skill

  1. Send Codex 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 Nano Banana 2.1 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": "google/nano-banana-2.1/edit",
        "input": {
          "prompt": "make a photo of the man driving the car down the california coastline"
        }
      }'

Then paste one of the prompts above: Codex finds Nano Banana 2.1 Edit on Spiral, shows the price and runs it.

Nano Banana 2.1 Edit providers and prices

Spiral runs Nano Banana 2.1 Edit through fal. Open a card for today's price, with every fee included.

falImage
Nano Banana 2.1 Edit
google/nano-banana-2.1/edit

Settings you can ask for

Nano Banana 2.1 Edit works from your prompt, image URLs, system prompt, video URL, and PDF URL. Ask Codex for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Number of images1 to 41

The number of images to generate.

Seeda whole number

The seed for the random number generator.

Aspect ratioauto, 21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5 and 7 moreauto

The aspect ratio of the generated image. Supports extreme ratios: 4:1, 1:4, 8:1, 1:8.

Output formatjpeg, png, or webppng

The format of the generated image.

Safety tolerance1 to 64

The safety tolerance level for content moderation. 1 is the most strict (blocks most content), 6 is the least strict.

Resolution1K, 2K, or 4K1K

The resolution of the image to generate.

Limit generationson or offon

Experimental parameter to limit the number of generations from each round of prompting to 1. Set to True to to disregard any instructions in the prompt regarding the number of images to generate and ignore any intermediate images generated by the model. This may affect generation quality.

Enable web searchon or offoff

Enable web search for the image generation task. This will allow the model to use the latest information from the web to generate the image.

Thinking levelminimal, medium, or highmedium

How much the model reasons before generating. Higher levels can improve complex compositions and use more thinking tokens.

Every API field of Nano Banana 2.1 Edit is on its tool page: open its card above.

What can you do with Nano Banana 2.1 Edit in Codex?

Turn project briefs into diagrams, campaign images, and illustrated concepts with Nano Banana 2.1. A coding agent can use the project's copy and design guidance to write specific visual instructions and save the results alongside the work.

Event posters

Create a poster from an event brief or revise existing artwork. Supply the final headline, date, and location, then check every rendered word.

Illustrated explanations

Turn a written process into a labeled diagram, or revise an existing diagram. Provide verified facts and check arrows, labels, and spatial relationships.

Campaign banners

Develop a banner from a written concept or adapt existing campaign art. Specify the placement and keep important text away from the edges.

Storyboard planning

Visualize a short scene sequence from a script, or develop it from reference artwork. Describe each panel separately and check continuity.

Product scenes

Place an existing product photo in a seasonal setting. Request that its shape and label stay consistent, then compare the result with the source.

Sketch development

Turn a rough sketch into a finished architectural, product, or set concept. Explain the intended materials and lighting while identifying the layout to preserve.

Targeted image corrections

Mark the region that needs changing and describe its replacement. Ask for the marks to disappear and inspect the surrounding image for unintended changes.

Photo restyling

Rework a photograph as watercolor, clay, or another specified medium. State which pose, composition, and colors should remain recognizable.

Nano Banana 2.1 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
87.3%
Fastest median run time
28.1s
Runs, last 24 hours
79
ToolSuccessMedian timeRuns
Nano Banana 2.1 Edit87.3%28.1s79

Questions about Nano Banana 2.1 Edit in Codex

Can Codex use Nano Banana 2.1 Edit?

Yes. Add Spiral to Codex as an MCP server, and Codex can find and run Nano Banana 2.1 Edit like any built-in tool.

How much does Nano Banana 2.1 Edit cost in Codex?

$0.0514 per 1K image ($0.0771 at 2K, $0.173 at 4K). Prompt: $2.29 per 1M tokens. Reasoning: $11.47 per 1M tokens. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Codex plan is separate.

Do I need a fal account to use Nano Banana 2.1 Edit in Codex?

No. Spiral runs Nano Banana 2.1 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 Nano Banana 2.1 Edit in Codex?

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

Does Codex wait while Nano Banana 2.1 Edit runs?

Nano Banana 2.1 Edit runs in the background. Codex starts the run, checks on it and gives you the image when it's ready.

What is Nano Banana 2.1 useful for?

Use it for visual briefs with a clear composition: posters, illustrated explanations, campaign imagery, and storyboards. Give it the intended placement, exact wording, and positions of the main elements.

Which resolution should I choose?

Use 2K or 4K when small lettering matters. Small text can blur at 1K, so inspect the actual output before using it.

Can Nano Banana 2.1 make wide banners?

Yes, it supports shapes as wide as 8:1 and as tall as 1:8. Specify where the subject and wording belong so the composition fits the placement.

How should I prompt Nano Banana 2.1?

Describe the purpose, subject, visual style, lighting, and composition. Put the exact on-image wording in quotes and state where it should appear.

Can I trust its diagrams and spatial layouts?

Check facts, labels, and positions before using the image. Google lists factuality and 3D reasoning as limitations and notes occasional confusion between left and right.

Get started

Start using Nano Banana 2.1 Edit in Codex

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

Paste this into Codex:

Set up Codex

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