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

Claude Code · ImageReleased 2026-10-06

How to Use Nano Banana 2.1 Text to Image in Claude Code

Create posters, diagrams, and illustrated concepts from a written brief. Unlike Nano Banana 2.1 Edit, Nano Banana 2.1 Text to Image starts from text rather than reference images.

Prompts to try with Nano Banana 2.1 Text to Image in Claude Code

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

Read the project's landing-page copy and design tokens. Use Nano Banana 2.1 Text to Image to create a 16:9, 2K editorial illustration of a bicycle repair bench, leaving the left third clear for the page headline.

Nano Banana 2.1 Text to ImageClaude Code
Try asking
  • Read the onboarding documentation and extract three verified steps. Use Nano Banana 2.1 Text to Image at 4K with high thinking to illustrate them in a horizontal diagram with short labels; check each label against the documentation.

  • Read the campaign brief and use Nano Banana 2.1 Text to Image to create an 8:1, 4K landscape banner. Place the subject in the right third and leave the center clear for the approved headline.

  • Generate a product photo with Nano Banana 2.1 Text to Image: a matte black water bottle on wet slate, soft morning light, 1:1. Tell me the price first. Save the result in ./assets.

  • Make four logo concepts for a coffee brand called "Northline" with Nano Banana 2.1 Text to Image.

How to set up Nano Banana 2.1 Text to Image in Claude Code

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

Use Spiral's MCP server

  1. Add the hosted server

    This adds Spiral to the current project. Add --scope user to use it in every project.

    claude mcp add --transport http spiral https://api.spiral.ai/mcp
  2. Sign in

    Start claude, type /mcp, choose spiral and Authenticate. Sign in to Spiral in the browser and click Authorize. No API key.

Use the Spiral skill

  1. Send Claude 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 Nano Banana 2.1 Text to Image

    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",
        "input": {
          "prompt": "An action shot of a black lab swimming in an inground suburban swimming pool. The camera is placed meticulously on the water line, dividing the image in half,…"
        }
      }'

Then paste one of the prompts above: Claude Code finds Nano Banana 2.1 Text to Image on Spiral, shows the price and runs it.

Nano Banana 2.1 Text to Image providers and prices

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

falImage
Nano Banana 2.1 · Text to Image
google/nano-banana-2.1

Settings you can ask for

Nano Banana 2.1 Text to Image works from your prompt and system prompt. Ask Claude Code 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. Use "auto" to let the model decide based on the prompt.

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

What can you do with Nano Banana 2.1 Text to Image in Claude Code?

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.

Questions about Nano Banana 2.1 Text to Image in Claude Code

Can Claude Code use Nano Banana 2.1 Text to Image?

Yes. Add Spiral to Claude Code as an MCP server, and Claude Code can find and run Nano Banana 2.1 Text to Image like any built-in tool.

How much does Nano Banana 2.1 Text to Image cost in Claude Code?

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

Do I need a fal account to use Nano Banana 2.1 Text to Image in Claude Code?

No. Spiral runs Nano Banana 2.1 Text to Image 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 Text to Image in Claude Code?

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

Does Claude Code wait while Nano Banana 2.1 Text to Image runs?

Nano Banana 2.1 Text to Image runs in the background. Claude Code 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 Text to Image in Claude Code

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

Paste this into Claude Code:

Set up Claude Code

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