Kling Image · Image
Text to ImageNEW
📌 What is this:Generate images from a text description.
💡 When to use:Use to turn a text idea straight into images; omit imageUrls for text-to-image.
Endpoints
| Usage | Method | Path |
|---|---|---|
| Submit task | POST | /api/cqt/generator/kling |
| Query Result | GET | /api/cqt/info/kling?id={taskId} |
⏱ Recommended polling interval:Poll every 5-10s until status = succeeded / failed.
Sub-models
The tier price column is credits/image (credits/call for per-call models); (default output) = default output only, resolution not accepted; ≥N refs → = multi-reference tier.
| model | Usage | Materials | Images | Tier price (credits) |
|---|---|---|---|---|
| kling-image-3.0 | 3.0; 1 reference image; 1K / 2K | None (text only) | 1~9 | 1K=20 / 2K=20 |
| kling-image-3.0-omni | 3.0 Omni; ≤10 reference images; up to 4K | None (text only) | 1~9 | 1K=20 / 2K=20 / 4K=40 |
| kling-image-o1 | O1; ≤10 reference images; up to 4K | None (text only) | 1~9 | 1K=20 / 2K=20 / 4K=40 |
| kling-image-2.1 | 2.1; cheaper; single / multi-reference priced separately | None (text only) | 1~9 | 1K=10 / 2K=10 |
⚠ kling-image-3.0: numImages 1-9, billed per image; kling-image-3.0-omni: numImages 1-9, billed per image; kling-image-o1: numImages 1-9, billed per image; kling-image-2.1: numImages 1-9, billed per image
Request Parameters
| Param | Type | Required | Description |
|---|---|---|---|
| model | string | Required | Sub-model: kling-image-3.0 / kling-image-3.0-omni / kling-image-o1 / kling-image-2.1 |
| prompt | string | Required | Image description |
| resolution | string | — | 1K / 2K / 4K, only tiers priced in the table, default = lowest tier; accepted only by kling-image-3.0 / kling-image-3.0-omni / kling-image-o1 / kling-image-2.1 (others use the default output and reject it) |
| aspectRatio | string | — | Aspect ratio, e.g. 1:1 / 16:9 / 9:16 |
| numImages | integer | — | Number of images 1-9, billed per image, default 1 (only kling-image-3.0 / kling-image-3.0-omni / kling-image-o1 / kling-image-2.1) |
| negativePrompt / seed / enhancePrompt | string / integer / boolean | — | Negative prompt / random seed / auto-enhance prompt (optional) |
Request Example
curl -X POST https://api.cqtai.com/api/cqt/generator/kling \
-H 'Authorization: Bearer <API_KEY>' \
-H 'Content-Type: application/json' \
-d '{
"model": "kling-image-3.0",
"prompt": "a young woman in a red raincoat standing on a rainy city street at night, neon reflections, cinematic",
"resolution": "1K",
"aspectRatio": "16:9"
}'
# -> { "code":200, "data":"<taskId>" }Response Example
{
"code": 200,
"msg": "success",
"data": {
"id": "0cb124c29d394d2c83763ae92304855a",
"resultUrl": "https://cdn.novapi.ai/kling/1791949942892_d18ee23dfa3048e097c58c9c3e32a754.png",
"status": "succeeded",
"errorMsg": null,
"createTime": "2026-10-14 11:51:36",
"completeTime": "2026-10-14 11:52:23"
}
}Response Fields
| Field | Type | Description |
|---|---|---|
| code | number | 200 means success |
| data.id | string | Task ID (taskId) |
| data.status | string | queued / running / succeeded / failed |
| data.resultUrl | string | Result URL(s) on our CDN (long-lived); multiple results are comma-separated; null until done or on failure |
| data.errorMsg | string | null | Failure reason; null on success |