[Integrations](https://spiral.ai/integrations) › [Gemini CLI](https://spiral.ai/integrations/gemini-cli) › [Nano Banana 2.1 Text to Image](https://spiral.ai/integrations/gemini-cli/nano-banana-2-1-text-to-image)

# How to Use Nano Banana 2.1 Text to Image in Gemini CLI

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.

|  |  |
| --- | --- |
| Model | Nano Banana 2.1 Text to Image |
| Available through | fal |
| Category | Image |
| Price | $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. |
| Returns | image |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Nano Banana 2.1 Text to Image in Gemini CLI

- 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 Gemini CLI

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

### Use Spiral's MCP server

1. **Add the server**: Or add it to `~/.gemini/settings.json` yourself:

```bash
gemini mcp add --scope user --transport http spiral https://api.spiral.ai/mcp
```

2. **Sign in**: Start `gemini` and run:

```text
/mcp auth spiral
```

3. **Check it**: In Gemini CLI, run `/mcp`. From your shell:

```bash
gemini mcp list
```

### Use the Spiral skill

1. **Send Gemini CLI 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.1 Text to Image**: 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": "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: Gemini CLI finds Nano Banana 2.1 Text to Image on Spiral, shows the price and runs it.

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

## Nano Banana 2.1 Text to Image tools and prices

- [Nano Banana 2.1 · Text to Image](https://spiral.ai/tools/fal/google/nano-banana-2.1) (fal): $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

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| num_images | 1 to 4 | 1 | The number of images to generate. |
| seed |  | — | The seed for the random number generator. |
| aspect_ratio | auto, 21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16, 4:1, 1:4, 8:1, 1:8 | 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, webp | png | The format of the generated image. |
| safety_tolerance | 1, 2, 3, 4, 5, 6 | 4 | The safety tolerance level for content moderation. 1 is the most strict (blocks most content), 6 is the least strict. |
| system_prompt |  |  | Optional system instruction that steers the model's persona and output style across the request. Leave blank to omit; when provided, it is sent as the system instruction to Gemini (or as a system message on OpenAI-compatible providers). |

## What can you do with Nano Banana 2.1 Text to Image in Gemini CLI?

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.

## Overview

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

## Nano Banana 2.1 Text to Image in other agents

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

## More Gemini CLI guides

- [Nano Banana 2.1 Edit](https://spiral.ai/integrations/gemini-cli/nano-banana-2-1-edit)
- [Nano Banana Edit](https://spiral.ai/integrations/gemini-cli/nano-banana-edit)
- [Nano Banana 2.1](https://spiral.ai/integrations/gemini-cli/nano-banana-2-1)
- [Nano Banana Pro](https://spiral.ai/integrations/gemini-cli/nano-banana-pro)
- [Nano Banana 2 Text to Image fal](https://spiral.ai/integrations/gemini-cli/nano-banana-2-text-to-image-fal)
- [Nano Banana Pro Edit](https://spiral.ai/integrations/gemini-cli/nano-banana-pro-edit)

## Questions about Nano Banana 2.1 Text to Image in Gemini CLI

**Can Gemini CLI use Nano Banana 2.1 Text to Image?**

Yes. Add Spiral to Gemini CLI as an MCP server, and Gemini CLI 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 Gemini CLI?**

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

**Do I need a fal account to use Nano Banana 2.1 Text to Image in Gemini CLI?**

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

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

**Does Gemini CLI wait while Nano Banana 2.1 Text to Image runs?**

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

