[Integrations](https://spiral.ai/integrations) › [Claude Code](https://spiral.ai/integrations/claude-code) › [Kling Image 4.0 Text to Image](https://spiral.ai/integrations/claude-code/kling-image-4-0-text-to-image)

# How to Use Kling Image 4.0 Text to Image in Claude Code

Use Kling Image 4.0 Text to Image for photographic concepts, posters, and coordinated storyboards from a written brief. Unlike Kling Image 4.0 Image to Image, it starts without a reference image.

|  |  |
| --- | --- |
| Model | Kling Image 4.0 Text to Image |
| Available through | fal |
| Category | Image |
| Price | Up to $0.0819 per run at the default inputs. `result_type`: single (default) $0.0819, series $0.3276. $0.0819 per unit of `num_images`. |
| Returns | image |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Kling Image 4.0 Text to Image in Claude Code

- Read the project's homepage brief and use Kling Image 4.0 Text to Image to create one 4K landscape hero image. Follow the documented palette, leave the left third clear for HTML copy, and describe the subject, materials, and light before generating.
- Read the launch storyboard in the project and use Kling Image 4.0 Text to Image to generate six coordinated 2K landscape frames. Follow the shot order and keep the character's clothing and the lighting consistent.
- Read the project's campaign brief and use Kling Image 4.0 Text to Image to generate four coordinated square images at 2K. Give each image one message, use the approved wording exactly, and keep the palette and lettering consistent.
- Generate a product photo with Kling Image 4.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 4.0 Text to Image.

## How to set up Kling Image 4.0 Text to Image in Claude Code

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

### Use Spiral's MCP server

1. **Add the hosted server**: This adds Spiral to the current project. Add `--scope user` to use it in every project.

```bash
claude mcp add --transport http spiral https://api.spiral.ai/mcp
```

2. **Sign in**: Start `claude`, type `/mcp`, choose spiral and Authenticate. Sign in to Spiral in the browser and click Authorize. No API key.

### Use the Spiral skill

1. **Send Claude Code 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 4.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": "kling/v4/text-to-image",
    "input": {
      "prompt": "High fashion model wearing a dress made of living moss, standing in an abandoned greenhouse, shafts of light, editorial photography."
    }
  }'
```

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

Setup guide in the docs: https://spiral.ai/docs/quickstarts/claude-code

## Kling Image 4.0 Text to Image tools and prices

- [Kling Image 4.0 · Text to Image](https://spiral.ai/tools/fal/kling/v4/text-to-image) (fal): Up to $0.0819 per run at the default inputs. `result_type`: single (default) $0.0819, series $0.3276.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| result_type | single, series | single | 'single' returns independent images; 'series' returns a coherent set of related images. |
| num_images | 1 to 9 | 1 | Number of independent images to generate (1-9). Only used when result_type is 'single'. |
| series_amount |  | 4 | Number of images in the series (2-10), or 'auto' to let the model choose. Only used when result_type is 'series'. |
| resolution | 2K, 4K, 8K | 2K | Output resolution. |
| aspect_ratio | auto, 16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3, 21:9 | auto | Aspect ratio of generated images. 'auto' picks one from the input content. |

## What can you do with Kling Image 4.0 Text to Image in Claude Code?

Turn project briefs into product imagery, campaign artwork, and storyboard drafts with Kling Image 4.0. Use the project's approved copy and visual direction to make the output specific to the work.

### Product campaign images

Develop coordinated product scenes with a shared palette, material treatment, and lighting direction. Give each image a different purpose, such as a hero composition, detail view, or lifestyle scene.

### Film storyboards

Plan a scene as an ordered visual sequence. Specify the action and camera framing for each image, plus the character details that should carry through.

### Event posters

Combine a main visual with an exact headline, date, and venue. Describe the text hierarchy and placement, then proofread the rendered details.

### Presentation graphics

Develop a coordinated set of slide images with consistent colors and typography. Provide the approved message and visual purpose of each slide.

### Portrait concepts

Explore a photographic direction through clothing, expression, pose, setting, and light. Describe skin and fabric textures along with the mood.

### Multilingual campaign artwork

Develop posters or promotional graphics using approved copy in Kling's documented languages. Keep the composition consistent and check every rendered translation against the supplied wording.

## Overview

- [fal](https://spiral.ai/providers/fal)
- [All Claude Code guides](https://spiral.ai/integrations/claude-code)

## Kling Image 4.0 Text to Image in other agents

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

## More Claude Code guides

- [Kling Image 4.0 Long Image](https://spiral.ai/integrations/claude-code/kling-image-4-0-long-image)
- [Kling O1 Image](https://spiral.ai/integrations/claude-code/kling-o1-image)
- [Kling Image 4.0 Image to Image](https://spiral.ai/integrations/claude-code/kling-image-4-0-image-to-image)
- [Kling O3 Image to Image](https://spiral.ai/integrations/claude-code/kling-o3-image-to-image)
- [Kling Image 3.0 Text to Image](https://spiral.ai/integrations/claude-code/kling-image-3-0-text-to-image)
- [Kling O3 Text to Image](https://spiral.ai/integrations/claude-code/kling-o3-text-to-image)

## Questions about Kling Image 4.0 Text to Image in Claude Code

**Can Claude Code use Kling Image 4.0 Text to Image?**

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

**How much does Kling Image 4.0 Text to Image cost in Claude Code?**

Up to $0.0819 per run at the default inputs. `result_type`: single (default) $0.0819, series $0.3276. $0.0819 per unit of `num_images`. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Claude Code plan is separate.

**Do I need a fal account to use Kling Image 4.0 Text to Image in Claude Code?**

No. Spiral runs Kling Image 4.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 4.0 Text to Image in Claude Code?**

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

**Does Claude Code wait while Kling Image 4.0 Text to Image runs?**

Kling Image 4.0 Text to Image runs in the background. Claude Code starts the run, checks on it and gives you the image when it's ready.

**What is Kling Image 4.0 good at?**

Its documented strengths are photographic lighting and textures, text within designed images, and coordinated visual sequences. Useful projects include product imagery, posters, storyboards, and presentation graphics.

**Can I trust the text in a generated image?**

Kling specifies up to 2,000 characters per image, but quality varies with language, font, text density, and layout. Proofread names, numbers, punctuation, and small print before publishing.

**Which languages can appear in the images?**

Kling documents English, Simplified Chinese, Traditional Chinese, Japanese, Korean, Spanish, and Portuguese. Put the exact wording you want in quotation marks.

**How do I keep a storyboard visually consistent?**

Request a coordinated series and describe what each image should show. Repeat the character description, clothing, palette, and visual style as requirements for the entire sequence.

**When is 8K useful?**

Consider 8K when you need room to crop or inspect fine textures in a large image. Kling describes native 8K as preserving details such as hair, skin, and leather grain.

