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

Codex · Image

How to Use Kling O1 Image in Codex

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 Codex

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

Kling O1 ImageCodex
Try asking
  • 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 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 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: Codex 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.

falImage
Kling O1 Image
fal-ai/kling-image/o1

Settings you can ask for

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

SettingAllowed valuesDefaultDescription
Resolution1K or 2K1K

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

Number of images1 to 91

Number of images to generate (1-9).

Aspect ratioauto, 16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3 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 O1 Image is on its tool page: open its card above.

What can you do with Kling O1 Image in Codex?

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.

Questions about Kling O1 Image in Codex

Can Codex use Kling O1 Image?

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

How much does Kling O1 Image cost in Codex?

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

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

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

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

Does Codex wait while Kling O1 Image runs?

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

Get started

Start using Kling O1 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