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

# How to Use Kling Image 3.0 Text to Image in opencode

Kling Image 3.0 Text to Image creates portraits, product scenes, and illustrations from written descriptions. Unlike Kling Image 3.0 Edit, it can start without a source picture.

|  |  |
| --- | --- |
| Model | Kling Image 3.0 Text to Image |
| Available through | fal |
| Category | Image |
| Price | `resolution`: 1K (default) $0.0364, 2K $0.0364 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 Image 3.0 Text to Image in opencode

- Read the homepage copy and use Kling Image 3.0 Text to Image to create a 2K landscape illustration of a ceramic workshop, with afternoon window light and open space on the left.
- Read the game's character brief and use Kling Image 3.0 Text to Image to create a watercolor portrait of its lighthouse keeper, wearing a weathered yellow coat.
- Use Kling Image 3.0 Text to Image to create a 2K cinematic concept for the game's harbor scene: eye-level framing, fishing boats, dawn fog, and muted green water.
- Generate a product photo with Kling Image 3.0 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 Image 3.0 Text to Image.

## How to set up Kling Image 3.0 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 Image 3.0 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/v3/text-to-image",
    "input": {
      "prompt": "Extremely realistic image of a scholar'\''s study filled with maps and curiosities, roaring fireplace, rain against round windows, stacks of handwritten journals,…"
    }
  }'
```

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

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

## Kling Image 3.0 Text to Image tools and prices

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

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| negative_prompt |  | — | Negative text prompt. It is recommended to supplement negative prompt information through negative sentences directly within positive prompts. |
| elements |  | — | Optional: Elements (characters/objects) to include in the image for face control. Each element can have a frontal image and optionally reference images. |
| resolution | 1K, 2K | 1K | Image generation resolution. 1K: standard, 2K: high-res. |
| num_images | 1 to 9 | 1 | Number of images to generate (1-9). |
| 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. |
| output_format | jpeg, png, webp | png | The format of the generated image. |

## What can you do with Kling Image 3.0 Text to Image in opencode?

Create artwork for a project's pages or revise existing visual assets with Kling Image 3.0. Use the project's content and design direction to write specific image briefs.

### Product scene concepts

Explore a product's setting, lighting, and composition before planning a shoot.

### Character concept art

Develop a character's clothing, appearance, and surroundings for an illustrated story.

### Campaign art direction

Compare visual approaches by changing the palette, materials, framing, or lighting.

### Film scene concepts

Explore a scene's camera angle, atmosphere, and composition before production.

### Editorial artwork from a brief

Create an illustration from a written article concept, with a defined subject, mood, and composition.

### Portrait concepts from text

Describe a fictional subject, wardrobe, setting, and lighting to explore a portrait without a source photo.

## Overview

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

## Kling Image 3.0 Text to Image in other agents

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

## More opencode guides

- [Kling Image 3.0 Edit](https://spiral.ai/integrations/opencode/kling-image-3-0-edit)
- [Kling Image 4.0 Image to Image](https://spiral.ai/integrations/opencode/kling-image-4-0-image-to-image)
- [Juggernaut Flux Pro Image to Image](https://spiral.ai/integrations/opencode/juggernaut-flux-pro-image-to-image)
- [Kling Image 4.0 Long Image](https://spiral.ai/integrations/opencode/kling-image-4-0-long-image)
- [Juggernaut Flux Pro](https://spiral.ai/integrations/opencode/juggernaut-flux-pro)
- [Kling Image 4.0 Text to Image](https://spiral.ai/integrations/opencode/kling-image-4-0-text-to-image)

## Questions about Kling Image 3.0 Text to Image in opencode

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

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

**How much does Kling Image 3.0 Text to Image cost in opencode?**

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

**Do I need a fal account to use Kling Image 3.0 Text to Image in opencode?**

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

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

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

Kling Image 3.0 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 3.0 good for?**

Use it for portraits, product scenes, cinematic concepts, and illustrations. Give each image a clear subject and visual direction.

**How should I write a Kling Image 3.0 prompt?**

Describe the subject, setting, composition, lighting, and style. Prioritize the details that matter most and remove conflicting instructions.

**What is the maximum output resolution?**

Kling Image 3.0 Text to Image and Kling Image 3.0 Edit support output up to 2K.

**How long can a prompt be?**

Both Kling Image 3.0 Text to Image and Kling Image 3.0 Edit accept up to 2,500 characters. Use that space for concrete visual details.

**Where does Kling Image 3.0 need extra review?**

Busy scenes can lose important objects or actions. Check their positions and relationships, then simplify the request around the most important subject.

