[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Kling O3 Text to Image](https://spiral.ai/integrations/opencode/kling-o3-text-to-image)

# How to Use Kling O3 Text to Image in opencode

Kling O3 Text to Image creates cinematic stills, concept art, and connected image sequences from written descriptions. Unlike Kling O3 Image to Image, it lets you develop a scene without a starting image.

|  |  |
| --- | --- |
| Model | Kling O3 Text to Image |
| Available through | fal |
| Category | Image |
| Price | `resolution`: 1K (default) $0.0364, 2K $0.0364, 4K $0.0728 per image. Billed on `num_images`, default 1. |
| Returns | image |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Kling O3 Text to Image in opencode

- Read the project's creative brief and use Kling O3 Text to Image to create a four-image storyboard at 2K in 16:9. Give each image a distinct story beat and keep the location, clothing, and lighting consistent.
- Read the environment brief and use Kling O3 Text to Image to create a 4K concept of the main location. Specify the camera position, surface materials, light direction, and focal point.
- Read the project's art direction and use Kling O3 Text to Image to create a three-image comic scene at 2K. Keep the same character description and color treatment while changing the framing for each story beat.
- Generate a product photo with Kling O3 Text 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 Text to Image.

## How to set up Kling O3 Text to Image in opencode

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

### Use Spiral's MCP server

1. **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.

```bash
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
```

2. **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.

```bash
opencode mcp auth spiral
```

3. **Check it**: Spiral shows as connected.

```bash
opencode mcp list
```

### Use the Spiral skill

1. **Send opencode 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.

```bash
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 Text to Image**: One request; the result comes back by polling or a webhook.

```bash
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/text-to-image",
    "input": {
      "prompt": "A poster design says '\''Kling Omni 3 Image is available on fal'\'' with a cool font in the background as several rows and big font size. Big gap between the rows.…"
    }
  }'
```

Then paste one of the prompts above: opencode finds Kling O3 Text to Image on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/opencode

## Kling O3 Text to Image tools and prices

- [Kling Image · Text to Image](https://spiral.ai/tools/fal/fal-ai/kling-image/o3/text-to-image) (fal): `resolution`: 1K (default) $0.0364, 2K $0.0364, 4K $0.0728 per image. Billed on `num_images`, default 1.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| elements |  | — | Optional: Elements (characters/objects) for face control. Reference in prompt as @Element1, @Element2, etc. |
| resolution | 1K, 2K, 4K | 1K | Image generation resolution. 1K: standard, 2K: high-res, 4K: ultra high-res. |
| result_type | single, series | single | Result type. 'single' for one image, 'series' for a series of related images. |
| num_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 | 16:9 | Aspect ratio of generated images. |

## What can you do with Kling O3 Text 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.

## Overview

- [fal](https://spiral.ai/providers/fal)
- [All opencode guides](https://spiral.ai/integrations/opencode)

## Kling O3 Text to Image in other agents

- [Amp](https://spiral.ai/integrations/amp/kling-o3-text-to-image)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/kling-o3-text-to-image)
- [Claude](https://spiral.ai/integrations/claude-desktop/kling-o3-text-to-image)
- [Claude Code](https://spiral.ai/integrations/claude-code/kling-o3-text-to-image)
- [Cline](https://spiral.ai/integrations/cline/kling-o3-text-to-image)
- [Codex](https://spiral.ai/integrations/codex/kling-o3-text-to-image)
- [Cursor](https://spiral.ai/integrations/cursor/kling-o3-text-to-image)
- [Devin](https://spiral.ai/integrations/devin/kling-o3-text-to-image)
- [dots](https://spiral.ai/integrations/dots/kling-o3-text-to-image)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/kling-o3-text-to-image)
- [Gemini](https://spiral.ai/integrations/gemini/kling-o3-text-to-image)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/kling-o3-text-to-image)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/kling-o3-text-to-image)
- [goose](https://spiral.ai/integrations/goose/kling-o3-text-to-image)
- [Grok](https://spiral.ai/integrations/grok/kling-o3-text-to-image)
- [Grok Build](https://spiral.ai/integrations/grok-build/kling-o3-text-to-image)
- [Hermes](https://spiral.ai/integrations/hermes/kling-o3-text-to-image)
- [Instinct](https://spiral.ai/integrations/instinct/kling-o3-text-to-image)
- [Manus](https://spiral.ai/integrations/manus/kling-o3-text-to-image)
- [Muse](https://spiral.ai/integrations/muse/kling-o3-text-to-image)
- [Muse Code](https://spiral.ai/integrations/muse-code/kling-o3-text-to-image)
- [n8n](https://spiral.ai/integrations/n8n/kling-o3-text-to-image)
- [Notion](https://spiral.ai/integrations/notion/kling-o3-text-to-image)
- [OpenClaw](https://spiral.ai/integrations/openclaw/kling-o3-text-to-image)
- [Perplexity](https://spiral.ai/integrations/perplexity/kling-o3-text-to-image)
- [Raycast](https://spiral.ai/integrations/raycast/kling-o3-text-to-image)
- [VS Code](https://spiral.ai/integrations/vscode/kling-o3-text-to-image)
- [Windsurf](https://spiral.ai/integrations/windsurf/kling-o3-text-to-image)
- [Zapier](https://spiral.ai/integrations/zapier/kling-o3-text-to-image)

## More opencode guides

- [Kling O3 Image to Image](https://spiral.ai/integrations/opencode/kling-o3-image-to-image)
- [Krea 2 Large](https://spiral.ai/integrations/opencode/krea-2-large)
- [Kling O1 Image](https://spiral.ai/integrations/opencode/kling-o1-image)
- [Krea 2 Medium](https://spiral.ai/integrations/opencode/krea-2-medium)
- [Kling Image 4.0 Text to Image](https://spiral.ai/integrations/opencode/kling-image-4-0-text-to-image)
- [Krea 2 Medium Turbo](https://spiral.ai/integrations/opencode/krea-2-medium-turbo)

## Questions about Kling O3 Text to Image in opencode

**Can opencode use Kling O3 Text to Image?**

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

**How much does Kling O3 Text 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 Text to Image in opencode?**

No. Spiral runs Kling O3 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 Kling O3 Text to Image in opencode?**

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

**Does opencode wait while Kling O3 Text to Image runs?**

Kling O3 Text 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.

