How to Use Kling O1 Image in Gemini CLI
Kling O1 Image edits and combines reference images while preserving recognizable subjects and visual style. Use it for product scenes, character artwork, and targeted changes to existing images, with output up to 2K.
Prompts to try with Kling O1 Image in Gemini CLI
Copy an example into Gemini CLI, or ask in your own words.
Use Kling O1 Image with the product photo in this project to create a 2K landscape image of the same bottle on a stone shelf. Preserve its shape and label design, and save the result with the campaign assets.
Use Kling O1 Image with our character reference to create a side view for the storyboard. Keep the costume, colors, and facial features consistent.
Use Kling O1 Image to restyle the project's onboarding illustration using the supplied watercolor reference. Preserve the subject arrangement and save the result for design review.
Use Kling O1 Image to edit the room image in this project. Replace the wooden tabletop with glass while keeping the furniture positions, camera angle, and background unchanged.
Use Kling O1 Image with the project's portrait reference to create a head-and-shoulders image against a blue studio background. Preserve the person's facial features and use soft side lighting.
How to set up Kling O1 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 Kling O1 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/kling-image/o1", "input": { "prompt": "Put @Image1 to the back seat of the car in @Image2, put @Element1 on to the @Image1", "image_urls": [ "<image_urls>" ] } }'
Then paste one of the prompts above: Gemini CLI finds Kling O1 Image on Spiral, shows the price and runs it.
Kling O1 Image providers and prices
Spiral runs Kling O1 Image through fal. Open a card for today's price, with every fee included.
resolution: 1K (default) $0.0364, 2K $0.0364 per image. Billed on num_images, default 1.
Settings you can ask for
Kling O1 Image works from your prompt and image URLs. Ask Gemini CLI for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Resolution | 1K or 2K | 1K | Image generation resolution. 1K: standard, 2K: high-res. |
| Number of images | 1 to 9 | 1 | Number of images to generate (1-9). |
| Aspect ratio | auto, 16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3 and 1 more | auto | Aspect ratio of generated images. 'auto' intelligently determines based on input content. |
| Output format | jpeg, png, or webp | png | The format of the generated image. |
Every API field of Kling O1 Image is on its tool page: open its card above.
What can you do with Kling O1 Image in Gemini CLI?
Turn project artwork into product scenes, style studies, and character views. A coding agent can use the project's reference assets and save the results beside the designs they support.
Product scene concepts
Place a reference product into a new setting for a campaign concept.
Character views
Create alternate views of a reference character for a storyboard.
Portrait edits
Change a portrait's background, clothing, or expression.
Style studies
Apply a reference style to existing artwork.
Clothing concepts
Combine a person reference with a clothing reference.
Material studies
Explore glass, wood, or fabric treatments on a reference object.
More on Kling O1 Image and Gemini CLI
Overview
Kling O1 Image in other agents
Questions about Kling O1 Image in Gemini CLI
Can Gemini CLI use Kling O1 Image?
Yes. Add Spiral to Gemini CLI as an MCP server, and Gemini CLI can find and run Kling O1 Image like any built-in tool.
How much does Kling O1 Image cost in Gemini CLI?
`resolution`: 1K (default) $0.0364, 2K $0.0364 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 Kling O1 Image in Gemini CLI?
No. Spiral runs Kling O1 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 Kling O1 Image in Gemini CLI?
About two minutes: add the server, then sign in, then check it.
Does Gemini CLI wait while Kling O1 Image runs?
Kling O1 Image runs in the background. Gemini CLI starts the run, checks on it and gives you the image when it's ready.
What is Kling O1 Image good at?
Reference-guided composition and editing: product scenes, character artwork, and changes to specific objects or details.
Can Kling O1 Image transfer a visual style?
Yes. Give it a content reference and a style reference, then specify which image supplies each.
How should I prompt a targeted edit?
Identify the object and the exact change. State which features should stay unchanged, and keep the prompt under 2,500 characters.
What can make Kling O1 Image miss an instruction?
Ambiguous directions can cause incorrect output. Describe the final position or orientation explicitly.
How large are Kling O1 Image outputs?
Outputs reach 2K resolution. Use 2K when you need a larger image for the intended placement.
Start using Kling O1 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


