How to Use FLUX Kontext LoRA Text to Image in Gemini CLI
FLUX Kontext LoRA Text to Image creates new images from written briefs, with LoRAs for a learned style, identity, or product. Unlike FLUX Kontext LoRA Image to Image, it starts from text rather than an existing picture.
Prompts to try with FLUX Kontext LoRA Text to Image in Gemini CLI
Copy an example into Gemini CLI, or ask in your own words.
Read the article about urban gardening in this project. Use FLUX Kontext LoRA Text to Image to create a 1280 by 720 illustration of a rooftop vegetable garden at sunrise, with the planting beds on the right and open sky on the left for the article title.
Inspect this project's empty-state component and color tokens. Use FLUX Kontext LoRA Text to Image to create a square illustration of an open sketchbook beside a pencil, using the project's colors. Add the chosen image to the component and keep its message as HTML.
Read the game's environment brief. Use FLUX Kontext LoRA Text to Image to draft a landscape scene of a coastal trading town built around a stone lighthouse, viewed from the harbor at dusk. Save it with the concept art.
Use FLUX Kontext LoRA Text to Image with the compatible style LoRA specified in the project's art brief. Generate a landscape illustration of a cyclist crossing a wooden bridge beside a river, and place it in the onboarding screen with the heading rendered separately.
Use FLUX Kontext LoRA Text to Image to compare the compatible LoRA in our art configuration at strengths of 0.6 and 1.0. Keep the prompt identical: a ceramic teapot on a wooden table beside a sunlit window. Save both images for design review.
How to set up FLUX Kontext LoRA Text to Image in Gemini CLI
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the server
Or add it to ~/.gemini/settings.json yourself:
gemini mcp add --scope user --transport http spiral https://api.spiral.ai/mcp
- Sign in
Start gemini and run:
/mcp auth spiral
- Check it
In Gemini CLI, run /mcp. From your shell:
gemini mcp list
Use the Spiral skill
- Send Gemini CLI 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 FLUX Kontext LoRA 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": "fal-ai/flux-kontext-lora/text-to-image", "input": { "prompt": "Mount Fuji with cherry blossoms in the foreground, clear sky, peaceful spring day, soft natural light, realistic landscape." } }'
Then paste one of the prompts above: Gemini CLI finds FLUX Kontext LoRA Text to Image on Spiral, shows the price and runs it.
FLUX Kontext LoRA Text to Image providers and prices
Spiral runs FLUX Kontext LoRA Text to Image through fal. Open a card for today's price, with every fee included.
$0.0455 per megapixel. image_size presets count as 1 MP; custom sizes round up to whole megapixels. Billed on num_images, default 1.
Settings you can ask for
FLUX Kontext LoRA Text to Image works from your prompt. Ask Gemini CLI for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Number of inference steps | 10 to 50 | 30 | The number of inference steps to perform. |
| Seed | a whole number | The same seed and the same prompt given to the same version of the model will output the same image every time. | |
| Guidance scale (CFG) | 0 to 20 | 2.5 | The CFG (Classifier Free Guidance) scale is a measure of how close you want the model to stick to your prompt when looking for a related image to show you. |
| Number of images | 1 to 4 | 1 | The number of images to generate. |
| Output format | jpeg or png | png | The format of the generated image. |
| Acceleration | none, regular, or high | none | The speed of the generation. The higher the speed, the faster the generation. |
Every API field of Flux Kontext Lora · Text to Image is on its tool page: open its card above.
What can you do with FLUX Kontext LoRA Text to Image in Gemini CLI?
Create illustrations from the project's written content and design requirements with FLUX Kontext LoRA. A coding agent can place the chosen artwork in the interface and keep labels editable in code.
Editorial illustrations
Turn an article brief into an illustration. Describe the central idea as a concrete scene, then compare compositions.
Brand artwork
Use a compatible brand style LoRA to draft campaign artwork. Review the results against the brand brief before choosing a direction.
Product scene concepts
Explore settings for a product represented by a compatible LoRA. Treat the images as concepts and check product details before publication.
Presentation artwork
Generate landscape illustrations at 1280 by 720 pixels, with open space reserved for slide titles added later.
Game environment studies
Draft locations from written scene descriptions. Use a compatible style LoRA when exploring a particular visual treatment.
Website illustrations
Create artwork for an article header or empty state from a written design brief. Add interface labels separately.
Style comparisons
Generate the same scene with different compatible LoRAs or adapter strengths to compare art directions.
More on FLUX Kontext LoRA Text to Image and Gemini CLI
Overview
FLUX Kontext LoRA Text to Image in other agents
Questions about FLUX Kontext LoRA Text to Image in Gemini CLI
Can Gemini CLI use FLUX Kontext LoRA Text to Image?
Yes. Add Spiral to Gemini CLI as an MCP server, and Gemini CLI can find and run FLUX Kontext LoRA Text to Image like any built-in tool.
How much does FLUX Kontext LoRA Text to Image cost in Gemini CLI?
$0.0455 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 Kontext LoRA Text to Image in Gemini CLI?
No. Spiral runs FLUX Kontext LoRA 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 FLUX Kontext LoRA Text to Image in Gemini CLI?
About two minutes: add the server, then sign in, then check it.
Does Gemini CLI wait while FLUX Kontext LoRA Text to Image runs?
FLUX Kontext LoRA 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 FLUX Kontext LoRA good for?
Use it for personalized illustrations, visual style studies, and product concepts. A compatible LoRA can apply a learned style, identity, or product to new generations.
Does FLUX Kontext LoRA Text to Image edit an existing picture?
It generates a new picture from a written description. For changes to an existing picture, use FLUX Kontext LoRA Image to Image.
How should I write a prompt?
Write a short paragraph describing the picture you want, rather than a string of keywords. State desired details positively, such as an empty tabletop, instead of relying on negative prompts.
What does LoRA strength change?
It changes the adapter weight applied before merging with the base model. Compare two strengths with the same brief to judge how the learned treatment affects the result.
Can I request an exact output size?
The documentation supports custom width and height and gives 1280 by 720 pixels as an example. Use that landscape size when drafting artwork for a presentation or video thumbnail.
Start using FLUX Kontext LoRA Text to Image 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 https://spiral.ai/SKILL.md


