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

Gemini CLI · Image

How to Use FLUX.2 Klein 9B Base LoRA in Gemini CLI

FLUX.2 Klein 9B Base LoRA generates images from text with custom style adapters. It adds LoRA adaptation to FLUX.2 Klein 9B Base, making it useful when a project calls for a trained visual style.

Prompts to try with FLUX.2 Klein 9B Base LoRA in Gemini CLI

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

Read the project's campaign brief and use FLUX.2 Klein 9B Base LoRA with the compatible style adapter already specified there. Generate a 1024 by 1024 illustration of a commuter cycling beside a river at sunrise, with room above for a headline.

FLUX.2 Klein 9B Base LoRAGemini CLI
Try asking
  • Generate a product photo with FLUX.2 Klein 9B Base LoRA: 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 FLUX.2 Klein 9B Base LoRA.

  • Create a 16:9 hero image of a quiet mountain cabin at dusk with FLUX.2 Klein 9B Base LoRA.

  • Generate a 9:16 poster with FLUX.2 Klein 9B Base LoRA for a jazz night called "Blue Hour", deep navy and brass tones.

How to set up FLUX.2 Klein 9B Base LoRA 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:

    gemini mcp add --scope user --transport http spiral https://api.spiral.ai/mcp
  2. Sign in

    Start gemini and run:

    /mcp auth spiral
  3. Check it

    In Gemini CLI, run /mcp. From your shell:

    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.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run FLUX.2 Klein 9B Base LoRA

    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": "fal-ai/flux-2/klein/9b/base/lora",
        "input": {
          "prompt": "A serene Japanese garden with cherry blossoms, koi pond, and traditional wooden bridge at golden hour"
        }
      }'

Then paste one of the prompts above: Gemini CLI finds FLUX.2 Klein 9B Base LoRA on Spiral, shows the price and runs it.

FLUX.2 Klein 9B Base LoRA providers and prices

Spiral runs FLUX.2 Klein 9B Base LoRA through fal. Open a card for today's price, with every fee included.

falImage
FLUX.2 [klein] 9B Base LoRA · Text to Image
fal-ai/flux-2/klein/9b/base/lora

Settings you can ask for

FLUX.2 Klein 9B Base LoRA works from your prompt. Ask Gemini CLI for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Negative promptwhat to leave out, in words

Negative prompt for classifier-free guidance. Describes what to avoid in the image.

Guidance scale0 to 205

Guidance scale for classifier-free guidance.

Seeda whole number

The seed to use for the generation. If not provided, a random seed will be used.

Number of inference steps4 to 5028

The number of inference steps to perform.

Number of images1 to 41

The number of images to generate.

Accelerationnone, regular, or highregular

The acceleration level to use for image generation.

Output formatjpeg, png, or webppng

The format of the generated image.

Every API field of FLUX.2 [klein] 9B Base LoRA · Text to Image is on its tool page: open its card above.

What can you do with FLUX.2 Klein 9B Base LoRA in Gemini CLI?

Create original artwork from a project's written content and design requirements. A coding agent can turn those requirements into detailed scene prompts and place the selected images in the project.

Website artwork from a written brief

Generate a photographic or illustrated scene with the subject placed away from the area reserved for a headline. Explore several compositions before choosing artwork for the page.

Product concept images

Describe a proposed product's shape, materials, color, and studio lighting. Use the images to discuss a design direction before arranging a real shoot.

Editorial illustrations

Turn an article's central idea into a specific visual scene. Name the medium, focal subject, and mood so the image serves the story.

Photography mood boards

Explore a planned shoot through descriptions of lenses, lighting, framing, and textures. Compare close-ups, environmental scenes, and different lighting directions.

Poster concepts

Draft a poster around one short headline and a clearly described illustration. Specify where the lettering belongs, then proofread the generated text.

Color direction studies

Compare product or scene concepts by assigning hex colors to named surfaces. Review the rendered colors before approving a direction.

Campaign concept exploration

Generate alternative scenes from the same campaign brief, changing the setting or composition. Use the results to select a visual direction for further production.

Questions about FLUX.2 Klein 9B Base LoRA in Gemini CLI

Can Gemini CLI use FLUX.2 Klein 9B Base LoRA?

Yes. Add Spiral to Gemini CLI as an MCP server, and Gemini CLI can find and run FLUX.2 Klein 9B Base LoRA like any built-in tool.

How much does FLUX.2 Klein 9B Base LoRA cost in Gemini CLI?

$0.02054 per megapixel. `image_size` presets count as 1 MP; custom sizes round up to whole megapixels. 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 FLUX.2 Klein 9B Base LoRA in Gemini CLI?

No. Spiral runs FLUX.2 Klein 9B Base LoRA on its own fal account. You sign in to Spiral once and never paste a key.

How long does it take to set up FLUX.2 Klein 9B Base LoRA in Gemini CLI?

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

Does Gemini CLI wait while FLUX.2 Klein 9B Base LoRA runs?

FLUX.2 Klein 9B Base LoRA runs in the background. Gemini CLI starts the run, checks on it and gives you the image when it's ready.

What is FLUX.2 Klein 9B Base good at?

Use it to explore different visual directions from a written brief, including photographic scenes and illustrated concepts. Black Forest Labs reports greater output diversity than with distilled Klein models.

How is Base different from distilled Klein?

Base keeps the undistilled model for creative exploration and customization. Distilled Klein is the speed-focused choice; Base favors flexibility and visual diversity.

How should I write a prompt?

Write a short scene description that names the subject, setting, composition, and lighting. Klein does not automatically expand a vague prompt, so include the details that should appear in the image.

Can I trust text inside the image?

Check every word before using it. Lettering can be inaccurate or distorted, so treat text-heavy output as a draft that needs review.

What resolution and settings should I test first?

A useful starting experiment is the maker's example: 1024 by 1024 pixels, 50 inference steps, and guidance of 4.0. Treat that as a baseline to compare with your results, rather than a guarantee of the best image.

Get started

Start using FLUX.2 Klein 9B Base LoRA in Gemini CLI

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

Paste this into Gemini CLI:

Set up Gemini CLI

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