How to Use Kling O3 Image to Image in opencode
Kling O3 Image to Image turns reference images into revised scenes, product visuals, and connected storyboards. Unlike Kling O3 Text to Image, it starts with existing images so you can specify what to preserve and what to change.
Prompts to try with Kling O3 Image to Image in opencode
Copy an example into opencode, or ask in your own words.
Use Kling O3 Image to Image with the product reference in the project to create a three-image campaign series at 2K. Keep the product shape and material consistent across a studio view, a tabletop scene, and a close-up.
Use Kling O3 Image to Image with the character and location references in the project to create a three-image scene sequence. Assign each reference a clear role and use wide, medium, and close-up framing.
Generate a product photo with Kling O3 Image 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 Kling O3 Image to Image.
Create a 16:9 hero image of a quiet mountain cabin at dusk with Kling O3 Image to Image.
How to set up Kling O3 Image to Image in opencode
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the server
Leave out --global to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
- Sign in
Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, /mcps starts the same sign-in.
opencode mcp auth spiral
- Check it
Spiral shows as connected.
opencode mcp list
Use the Spiral skill
- Send opencode 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 O3 Image 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/kling-image/o3/image-to-image", "input": { "prompt": "Transform into photorealistic 3D render, add proper lighting and shadows, realistic materials and textures, maintain exact proportions and design from sketch,…", "image_urls": [ "<image_urls>" ] } }'
Then paste one of the prompts above: opencode finds Kling O3 Image to Image on Spiral, shows the price and runs it.
Kling O3 Image to Image providers and prices
Spiral runs Kling O3 Image to Image through fal. Open a card for today's price, with every fee included.
resolution: 1K (default) $0.0364, 2K $0.0364, 4K $0.0728 per image. Billed on num_images, default 1.
Settings you can ask for
Kling O3 Image to Image works from your prompt and image URLs. Ask opencode for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Resolution | 1K, 2K, or 4K | 1K | Image generation resolution. 1K: standard, 2K: high-res, 4K: ultra high-res. |
| Result type | single or series | single | Result type. 'single' for one image, 'series' for a series of related images. |
| Number of images | 1 to 9 | 1 | Number of images to generate (1-9). Only used when result_type is 'single'. |
| Series amount | 2 to 9 | Number of images in series (2-9). Only used when result_type is 'series'. | |
| Aspect ratio | 16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3, 21:9 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 Image · Edit is on its tool page: open its card above.
What can you do with Kling O3 Image to Image in opencode?
Turn project briefs into scene concepts, campaign images, and storyboard sequences with Kling Image O3. A coding agent can use the project's written requirements to draft shot descriptions and keep the visual direction consistent.
Film storyboard planning
Map a scene into establishing views, character interactions, and close-ups with a shared lighting direction.
Product campaign concepts
Develop a connected set of product scenes with consistent materials, color treatment, and atmosphere.
Set and environment visualization
Explore locations, surface materials, and lighting before committing to a physical set or detailed 3D scene.
Character concept development
Explore a character's appearance, clothing, pose, and place within a scene through coordinated concept images.
Comic scene planning
Plan a short visual sequence with distinct framing for each story beat and a consistent overall style.
Product material studies
Examine how glass, fabric, metal, or other surfaces could appear under a specified lighting treatment.
Reference-led scene revisions
Use an existing scene as the starting point and describe which details to preserve while revising its visual direction.
Combining visual references
Assign separate images to the character, setting, and style, then bring those directions into one scene.
More on Kling O3 Image to Image and opencode
Overview
Kling O3 Image to Image in other agents
Questions about Kling O3 Image to Image in opencode
Can opencode use Kling O3 Image to Image?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Kling O3 Image to Image like any built-in tool.
How much does Kling O3 Image to Image cost in opencode?
`resolution`: 1K (default) $0.0364, 2K $0.0364, 4K $0.0728 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 opencode plan is separate.
Do I need a fal account to use Kling O3 Image to Image in opencode?
No. Spiral runs Kling O3 Image 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 Kling O3 Image to Image in opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while Kling O3 Image to Image runs?
Kling O3 Image to Image runs in the background. opencode starts the run, checks on it and gives you the image when it's ready.
What is Kling Image O3 good at?
Kling Image O3 suits cinematic stills, concept art, storyboards, and scene visualization. Describe the framing, lighting, materials, and focal subject to give it a clear visual target.
Can Kling Image O3 create a connected image sequence?
Yes. Image Series Mode creates two to nine related images, making it useful for storyboards and coordinated campaigns. Specify the sequence in order and describe the visual details that should remain consistent.
Does Kling Image O3 generate native 4K images?
Yes, it supports native 2K and 4K output. Use 4K when fine material detail matters, such as product texture studies or scene designs.
How should I prompt Kling Image O3?
Describe the subject and setting, then specify composition, camera angle, lighting, focus, and color treatment. For a sequence, give each image a clear role, such as establishing view, interaction, and detail.
How long can a Kling Image O3 prompt be?
Keep the prompt within 2,500 characters. For a storyboard, spend that space on the shot order and details that must carry across the images.
Start using Kling O3 Image to Image in opencode
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into opencode:
set up https://spiral.ai/SKILL.md


