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

Codex · Image

How to Use Kling O3 Image to Image in Codex

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 Codex

Copy an example into Codex, 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.

Kling O3 Image to ImageCodex
Try asking
  • 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 Codex

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. Add the hosted server
    codex mcp add spiral --url https://api.spiral.ai/mcp
  2. Sign in

    Codex opens the browser: sign in to Spiral and click Authorize. No API key. codex mcp list then shows Spiral.

    codex mcp login spiral

Use the Spiral skill

  1. Send Codex 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 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: Codex 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.

falImage
Kling Image · Edit
fal-ai/kling-image/o3/image-to-image

Settings you can ask for

Kling O3 Image to Image works from your prompt and image URLs. Ask Codex for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Resolution1K, 2K, or 4K1K

Image generation resolution. 1K: standard, 2K: high-res, 4K: ultra high-res.

Result typesingle or seriessingle

Result type. 'single' for one image, 'series' for a series of related images.

Number of images1 to 91

Number of images to generate (1-9). Only used when result_type is 'single'.

Series amount2 to 9

Number of images in series (2-9). Only used when result_type is 'series'.

Aspect ratio16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3, 21:9 and 1 moreauto

Aspect ratio of generated images. 'auto' intelligently determines based on input content.

Output formatjpeg, png, or webppng

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 Codex?

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.

Questions about Kling O3 Image to Image in Codex

Can Codex use Kling O3 Image to Image?

Yes. Add Spiral to Codex as an MCP server, and Codex can find and run Kling O3 Image to Image like any built-in tool.

How much does Kling O3 Image to Image cost in Codex?

`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 Codex plan is separate.

Do I need a fal account to use Kling O3 Image to Image in Codex?

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 Codex?

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

Does Codex wait while Kling O3 Image to Image runs?

Kling O3 Image to Image runs in the background. Codex 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.

Get started

Start using Kling O3 Image to Image in Codex

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

Paste this into Codex:

Set up Codex

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