🔥 Black Friday AI API deals are live· 🎬 Seedance 2.5 — 20% off, up to 42% below market, until Nov 30Ends in--d --:--:--See deals →

Kling 4.0 Text to Image: AI Image Generator

Generate images from text with the Kling 4.0 Text to Image API. Series mode, 2K to 8K output and nine aspect ratios. Pay per generation, no subscription.

Interactive model controls

Kling 4.0 Text to Image generates images from a text prompt, with series mode for coherent sets, 2K, 4K or 8K output and nine aspect ratios.

📝

Overview

About this model

Kling 4.0 Text to Image turns a prompt into images at 2K, 4K or 8K in nine aspect ratios. series mode produces a coherent set such as the same character from morning to night, and text you put in quotation marks is rendered in the image. To edit or compose from reference images see Kling 4.0 Image Edit; for long product pages and web page layouts see Kling 4.0 Long Image.

1Character Consistency: Keep one character or product identical across a set of scenes with elements and series mode.
2Storyboards and Campaigns: Generate a coherent sequence of frames in one request.
3Poster and Text Rendering: Render quoted text inside the image for posters and ads.
💰

Pricing & Value

Cost analysis

muapiappFrom $0.063 per image (2K)

Pay per generation, no subscription.

Fal.aiNot available

Kling 4.0 Text to Image is not listed.

ReplicateNot available

Kling 4.0 Text to Image is not listed.

** Competitor pricing is estimated based on similar model architectures and usage tiers.

⚙️

Technical Details

Configuration schema

Promptstring

Text prompt (max 20000 characters). Put text to render inside quotation marks.

Default ValueA red apple on a white table, studio lighting, photorealistic
ModeEnum (2 options)

default: standard generation (count 1-9). series: a coherent set of images (count 2-10).

Default Valuedefault
ResolutionEnum (3 options)

Output resolution. 2k/4k usually return PNG, 8k returns JPEG.

Default Value2k
Aspect RatioEnum (9 options)

Output aspect ratio. auto lets the model choose from the prompt and references.

Default Valueauto
Number of Imagesinteger

Number of images to generate (1-9 in default mode, 2-10 in series mode).

Default Value1
📖

Implementation Guide

Developer documentation

How to Use the Kling 4.0 Text to Image API

  1. Write the prompt (up to 20,000 characters). Put any text you want rendered inside quotation marks.

  2. Pick mode, resolution, aspect_ratio and count: default mode returns 1-9 images, series mode returns 2-10 coherent images. Resolution is 2k, 4k or 8k.

  3. Submit and poll the returned request_id, or pass a webhook URL.

curl -X POST https://api.muapi.ai/api/v1/kling-4.0-text-to-image \
  -H "x-api-key: $MUAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"prompt": "A red apple on a white table, studio lighting, photorealistic", "resolution": "2k", "aspect_ratio": "1:1", "count": 1}'
❓

Common Questions

Frequently asked

What is Kling 4.0 Text to Image?

Kling 4.0 Text to Image is Kling's image generation model. It turns a prompt into one image or a coherent series at 2K, 4K or 8K.

How much does the Kling 4.0 Text to Image API cost?

Each output image costs $0.063 at 2K, $0.094 at 4K and $0.157 at 8K. Total price is the number of images times the resolution rate, for example 1 image at 2K is $0.063, 4 images at 4K is $0.376 and 9 images at 8K is $1.413.

What is series mode?

Set `mode` to `series` and `count` to 2-10 to generate a coherent set of images, such as the same character across a day. In `default` mode `count` can be 1-9.

What resolutions and aspect ratios are supported?

Resolutions are 2k, 4k and 8k (2k and 4k usually return PNG, 8k returns JPEG). Aspect ratios are auto, 9:16, 2:3, 3:4, 1:1, 4:3, 3:2, 16:9 and 21:9.

How do I get the result?

Requests are asynchronous: submit a job, then poll the returned `request_id` or pass a `webhook` URL to be notified on completion.

Is there a sandbox for testing?

Yes. Sandbox API keys return mock results instantly with no credits deducted.