Kling Image 4.0 Text to Image overview
Kling Image 4.0 Text to Image by Kling AI
Kling AI built Kling Image 4.0 to turn creative intent into professional visuals with greater accuracy and efficiency. This endpoint takes a text prompt and renders at 2K, 4K or 8K.
Kling Image 4.0 Text to Image specs
- Model ID
klingai/image-v4-text-to-image- Developer
- Kling AI
- Input
- Image, Text
- Output
- Image
- Endpoint
POST https://api.aimlapi.com/v1/images/generations
Realism and long text in one frame
Kling AI says the model supports native 8K image generation with camera-grade realism, including natural light, lifelike skin and detailed materials.
Kling AI also says it can render up to 2,000 characters in a single image using complex layouts and more than 70 preset fonts. If your prompt includes on-image text, check the rendered wording letter by letter before you ship the result.
Pick the result type first
Result type decides how the images relate. Single returns independent images, and the number of images option sets how many, from 1 to 9. Series returns a coherent set of related images, and the series amount option sets the count, from 2 to 10. Choose series when the images must belong together, such as frames of one campaign.
Resolution sets the output size. A 1:1 image is 2048 px a side at 2K, 4096 at 4K and 8192 at 8K. Start at 2K while you refine the prompt, then rerun the best prompt at a higher setting. Set aspect ratio to auto to let the model choose it, or fix a value when you need a known shape.
Use cases
Generate a batch of independent concept images from one prompt to compare directions.
Produce a coherent series of related images for a campaign or a storyboard.
Create 8K product or portrait images where light, skin and materials matter.
Render posters or banners that carry a long block of on-image text in a fixed aspect ratio.
Kling Image 4.0 Text to Image API pricing
| Usage | Price | Unit |
|---|---|---|
| Image generation | $0.063 | per generation |
The final price depends on request parameters such as resolution or duration.
Prices from the AI/ML API price list, checked on Nov 17, 2026.
Kling Image 4.0 Text to Image vs other image models: prices
AI/ML API rates for 5 models, per generation.
| Model | Per generation |
|---|---|
| $0.063 | |
| $0.028 | |
| $0.06 | |
| $0.075 | |
| $0.075 |
How to use the Kling Image 4.0 Text to Image API
View docsBuild with your agent
Give your agent the model details, code and documentation.
1Get your API key
Create API keyexport AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"2Make your first request
curl 'https://api.aimlapi.com/v1/images/generations' \
-H "Authorization: Bearer $AIMLAPI_KEY" \
-H 'Content-Type: application/json' \
-d '{
"model": "klingai/image-v4-text-to-image",
"prompt": "A ginger cat asleep on a stack of exactly three hardcover books in a rainy bookshop window at dusk. Gold lettering on the glass reads OPEN LATE. Warm lamp light inside, raindrops and blurred neon reflections outside, 35mm film photo."
}'import os
import requests
headers = {
"Authorization": f"Bearer {os.environ['AIMLAPI_KEY']}",
"Content-Type": "application/json",
}
payload = {
"model": "klingai/image-v4-text-to-image",
"prompt": "A ginger cat asleep on a stack of exactly three hardcover books in a rainy bookshop window at dusk. Gold lettering on the glass reads OPEN LATE. Warm lamp light inside, raindrops and blurred neon reflections outside, 35mm film photo."
}
response = requests.post("https://api.aimlapi.com/v1/images/generations", headers=headers, json=payload, timeout=120)
response.raise_for_status()
print(response.json())const response = await fetch("https://api.aimlapi.com/v1/images/generations", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.AIMLAPI_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"model": "klingai/image-v4-text-to-image",
"prompt": "A ginger cat asleep on a stack of exactly three hardcover books in a rainy bookshop window at dusk. Gold lettering on the glass reads OPEN LATE. Warm lamp light inside, raindrops and blurred neon reflections outside, 35mm film photo."
}),
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());Related articles
Kling Image 4.0 Text to Image FAQ
How much does Kling Image 4.0 Text to Image cost?
Kling Image 4.0 Text to Image costs $0.063 / gen (variable) on AI/ML API.
What is the difference between single and series?
Single returns independent images, and the number of images option sets the count from 1 to 9. Series returns a coherent set of related images, and the series amount option sets the count from 2 to 10.
Which options does this endpoint take besides the prompt?
It takes result type, number of images, series amount, resolution and aspect ratio. Number of images applies only to single, and series amount applies only to series.
What does the auto aspect ratio do?
Auto lets the model pick the aspect ratio from the prompt and the references. Set a fixed value instead to control the shape yourself.
How large is an 8K image?
A 1:1 image at 8K is 8192 px a side. At 2K it is 2048 px and at 4K it is 4096 px.
What is the Kling Image 4.0 Text to Image model ID?
Use klingai/image-v4-text-to-image as the model parameter. Requests go to https://api.aimlapi.com/v1/images/generations with your AI/ML API key.


.webp)