Call it from your code
Submit a task to get its ID. Poll for the result, or pass a webhook URL to receive the finished task.
curl 'https://api.kerox.ai/v1/tasks' \
-H "Authorization: Bearer $KEROX_API_KEY" \
-H 'Content-Type: application/json' \
--data-binary '{
"model": "kuaishou/kling-image-4.0",
"input": {
"prompt": "editorial portrait of a ceramicist in morning sunlight, 35mm film",
"resolution": "2K"
}
}'Example response
{
"id": "task_01JD8X9B4Q2M7T8N3K5P6R1S0V",
"object": "task",
"model": "kuaishou/kling-image-4.0",
"status": "processing"
}What you can send
Every parameter uses the unified names, the same across models.
| Parameter | Type | Required | Default | Values | What it does |
|---|---|---|---|---|---|
prompt | string | Required | — | — | Prompt |
images | string | string[] | — | — | — | Reference images |
aspect_ratio | string | — | — | 1:1, 3:2, 2:3, 3:4, 4:3, 9:16, 16:9, 21:9 | Aspect ratio |
resolution | string | — | "2K" | 2K, 4K, 8K | Resolution |
output_format | string | — | "png" | png, jpeg, webp | Output format |
n | integer | — | 1 | 1 | Number of outputs |
Not supported yet: watermark
Pricing
1 image · 2K
$0.0567
$0.063010% below official price1 image · 4K
$0.0846
$0.094010% below official price1 image · 8K
$0.1413
$0.157010% below official price
Common usage
| Output | Official price | Kerox | You save |
|---|---|---|---|
| 1 image · 2K | $0.0567 | 10% | |
| 1 image · 4K | $0.0846 | 10% | |
| 1 image · 8K | $0.1413 | 10% | |
| $10 gets you | 176 2K images | ||
| Tier | Official price | Kerox |
|---|---|---|
| 2K | $0.0567 | |
| 4K | $0.0846 | |
| 8K | $0.1413 |
Use POST /v1/estimate for a quote before submitting a task.
Made with Kling Image 4.0

A single red paper sailboat glides across a shallow midnight-blue reflecting pool, ripples catching warm lantern light. Macro cinematography, handmade paper texture, soft shadows, no lettering.

Overhead still life of a folded blue paper heron on copper foil, side lighting, fine creases and soft reflected gold.
About Kling Image 4.0
Generate one 2K, 4K or 8K image from a prompt and up to 10 reference images.
FAQ
How much does Kling Image 4.0 cost?
Kling Image 4.0 on Kerox starts from $0.0567 / image, 10% below the official price. You pay per generation, and failed generations are not charged. The price table on this page lists every option.
Does Kling Image 4.0 have an API?
Yes. Submit a task to the Kerox API with the model ID kuaishou/kling-image-4.0, then poll the task or receive a webhook when it finishes. The API docs for Kling Image 4.0 list every parameter with code examples.
Can I use Kling Image 4.0 online without writing code?
Yes. Choose your settings in the generation panel on this page to see the price. Sign in to generate. Try it
Do I need a subscription to use Kling Image 4.0?
No. There are no plans and no monthly fees. Top up from $5 and pay only for what you generate.
