CQTAI
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

UsageMethodPath
Submit taskPOST/api/cqt/generator/kling
Query ResultGET/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.

modelUsageMaterialsImagesTier price (credits)
kling-image-3.03.0; 1 reference image; 1K / 2KNone (text only)1~91K=20 / 2K=20
kling-image-3.0-omni3.0 Omni; ≤10 reference images; up to 4KNone (text only)1~91K=20 / 2K=20 / 4K=40
kling-image-o1O1; ≤10 reference images; up to 4KNone (text only)1~91K=20 / 2K=20 / 4K=40
kling-image-2.12.1; cheaper; single / multi-reference priced separatelyNone (text only)1~91K=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

ParamTypeRequiredDescription
modelstringRequiredSub-model: kling-image-3.0 / kling-image-3.0-omni / kling-image-o1 / kling-image-2.1
promptstringRequiredImage description
resolutionstring—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)
aspectRatiostring—Aspect ratio, e.g. 1:1 / 16:9 / 9:16
numImagesinteger—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 / enhancePromptstring / 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

FieldTypeDescription
codenumber200 means success
data.idstringTask ID (taskId)
data.statusstringqueued / running / succeeded / failed
data.resultUrlstringResult URL(s) on our CDN (long-lived); multiple results are comma-separated; null until done or on failure
data.errorMsgstring | nullFailure reason; null on success