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.
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
- 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
- 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
- Send Claude Code this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- 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
- Create an API key
In the console, under API keys.
- 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.
$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.
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.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Number of images | 1 to 4 | 1 | The number of images to generate. |
| Seed | a whole number | The seed for the random number generator. | |
| Aspect ratio | auto, 21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5 and 7 more | auto | 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 format | jpeg, png, or webp | png | The format of the generated image. |
| Safety tolerance | 1 to 6 | 4 | The safety tolerance level for content moderation. 1 is the most strict (blocks most content), 6 is the least strict. |
| Resolution | 1K, 2K, or 4K | 1K | The resolution of the image to generate. |
| Limit generations | on or off | on | Experimental parameter to limit the number of generations from each round of prompting to 1. Set to |
| Enable web search | on or off | off | 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 level | minimal, medium, or high | medium | 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.
More on Nano Banana 2.1 Text to Image and Claude Code
Overview
Nano Banana 2.1 Text to Image in other agents
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.
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 https://spiral.ai/SKILL.md


