[Integrations](https://spiral.ai/integrations) › [Gemini CLI](https://spiral.ai/integrations/gemini-cli) › [Gemini 2.5 Flash Image](https://spiral.ai/integrations/gemini-cli/gemini-2-5-flash-image)

# How to Use Gemini 2.5 Flash Image in Gemini CLI

Gemini 2.5 Flash Image creates illustrations, product concepts, and scenes from written descriptions. Unlike Gemini 2.5 Flash Image Edit, it starts from text alone, making it useful when you have a brief but no reference image.

|  |  |
| --- | --- |
| Model | Gemini 2.5 Flash Image |
| Available through | fal |
| Category | Image |
| Price | $0.05174 per image. Billed on `num_images`, default 1. |
| Returns | image |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Gemini 2.5 Flash Image in Gemini CLI

- Read the homepage copy and use Gemini 2.5 Flash Image to create a 16:9 illustration of a bicycle repair bench in morning light. Place the tools on the right and leave the left side open for the headline.
- Read the gardening article in the project and use Gemini 2.5 Flash Image to create a 4:3 ink illustration of its central idea. Use dark green lines on cream paper and leave lettering out.
- Read the character description in the game's design document. Use Gemini 2.5 Flash Image to create a 3:4 concept illustration of the courier in a raincoat beside a delivery bicycle, with the face and clothing details clearly visible.
- Generate a product photo with Gemini 2.5 Flash 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 Gemini 2.5 Flash Image.

## How to set up Gemini 2.5 Flash 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 Gemini 2.5 Flash 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": "fal-ai/gemini-25-flash-image",
    "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 Gemini 2.5 Flash Image on Spiral, shows the price and runs it.

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

## Gemini 2.5 Flash Image tools and prices

- [Gemini 2.5 Flash Image · Text to Image](https://spiral.ai/tools/fal/fal-ai/gemini-25-flash-image) (fal): $0.05174 per image. Billed on `num_images`, default 1.

## 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 | 21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16 | 1:1 | The aspect ratio of the generated image. |
| 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. |
| limit_generations |  | true | 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. |

## What can you do with Gemini 2.5 Flash Image in Gemini CLI?

Create artwork that matches your project's content and intended placement. A coding agent can turn repository copy and design requirements into a concrete visual brief for Gemini 2.5 Flash Image.

### Article illustrations

Illustrate an article's main idea from a written brief, or adapt an existing illustration with Gemini 2.5 Flash Image Edit. Leave space for the headline to be added separately.

### Product scene concepts

Explore a product scene from a description. Use Gemini 2.5 Flash Image Edit when the concept needs to start with an actual product photo, then inspect identifying details.

### Social post artwork

Create a scene for a portrait or square post, or revise existing artwork with Gemini 2.5 Flash Image Edit. Keep the caption outside the generated picture when exact wording matters.

### Packaging concepts

Explore package shapes, materials, and visual treatments before production design. Start from a description or use Gemini 2.5 Flash Image Edit to revise a photographed mockup.

### Story scene development

Develop illustrated scenes with explicit character and style descriptions. Use Gemini 2.5 Flash Image Edit when a previous picture should guide the character's appearance.

### Website artwork

Create landscape artwork for an article header or landing page, or revise an existing asset with Gemini 2.5 Flash Image Edit. Describe where the subject should sit relative to the page's text.

## Overview

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

## Gemini 2.5 Flash Image in other agents

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

## More Gemini CLI guides

- [GPT Image 2.6 Sunburst Text to Image](https://spiral.ai/integrations/gemini-cli/gpt-image-2-6-sunburst-text-to-image)
- [Gemini 2.5 Flash Image Edit](https://spiral.ai/integrations/gemini-cli/gemini-2-5-flash-image-edit)
- [GPT Image 2.6 Sunburst Edit](https://spiral.ai/integrations/gemini-cli/gpt-image-2-6-sunburst-edit)
- [Google Virtual Try-On](https://spiral.ai/integrations/gemini-cli/google-virtual-try-on)
- [GPT Image 2.6 Sunburst](https://spiral.ai/integrations/gemini-cli/gpt-image-2-6-sunburst)
- [Grok Imagine Image](https://spiral.ai/integrations/gemini-cli/grok-imagine-image)

## Questions about Gemini 2.5 Flash Image in Gemini CLI

**Can Gemini CLI use Gemini 2.5 Flash Image?**

Yes. Add Spiral to Gemini CLI as an MCP server, and Gemini CLI can find and run Gemini 2.5 Flash Image like any built-in tool.

**How much does Gemini 2.5 Flash Image cost in Gemini CLI?**

$0.05174 per image. Billed on `num_images`, default 1. 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 Gemini 2.5 Flash Image in Gemini CLI?**

No. Spiral runs Gemini 2.5 Flash 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 Gemini 2.5 Flash Image in Gemini CLI?**

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

**Does Gemini CLI wait while Gemini 2.5 Flash Image runs?**

Gemini 2.5 Flash Image runs in the background. Gemini CLI starts the run, checks on it and gives you the image when it's ready.

**What is Gemini 2.5 Flash Image useful for?**

Use it for illustrations, product concepts, editorial scenes, and related visual assets. Describe the subject, setting, and intended appearance in a clear brief.

**How should I write a Gemini 2.5 Flash Image prompt?**

Describe one coherent scene in sentences: who or what appears, where it sits, and how it should look. For example, describe a ceramic mug beside a window in soft morning light instead of listing unrelated style words.

**Can I rely on text inside the image?**

Proofread it before use, especially when it contains several sentences or small lettering. Google lists long-form text rendering as a known weakness; for text-heavy designs, consider adding the final copy in a design editor.

**What dimensions does Gemini 2.5 Flash Image produce?**

Google documents 1344 × 768 pixels for a 16:9 landscape image, 768 × 1344 for a 9:16 portrait image, and 1536 × 672 for a 21:9 image. Choose the composition around its final placement.

**Should I check small details before publishing?**

Yes. Google identifies factual representation of fine details as a limitation, so inspect any detail that carries meaning, such as a product feature or a diagram label.

