Tencent Hunyuan Image · 3D · 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/hunyuan |
| Query Result | GET | /api/cqt/info/hunyuan?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) |
|---|---|---|---|---|
| hunyuan-image-3.5-preview | 3.5 Preview; default output 1344x1792 | None (text only) | 1 | 2K=15 (default output) |
| hunyuan-image-3.0 | 3.0; default output 1024x1024 | None (text only) | 1 | 1K=20 (default output) |
⚠ hunyuan-image-3.5-preview: 1 image per call; hunyuan-image-3.0: 1 image per call
Request Parameters
| Param | Type | Required | Description |
|---|---|---|---|
| model | string | Required | Sub-model: hunyuan-image-3.5-preview / hunyuan-image-3.0 |
| prompt | string | Required | Image description |
| aspectRatio | string | — | Aspect ratio, e.g. 1:1 / 16:9 / 9:16 |
| 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/hunyuan \
-H 'Authorization: Bearer <API_KEY>' \
-H 'Content-Type: application/json' \
-d '{
"model": "hunyuan-image-3.5-preview",
"prompt": "a cozy wooden cabin in a snowy forest at dusk, warm window light, cinematic",
"aspectRatio": "16:9"
}'
# -> { "code":200, "data":"<taskId>" }Response Example
{
"code": 200,
"msg": "success",
"data": {
"id": "fce800b4f11d4476b3731bdace33c56d",
"resultUrl": "https://cdn.novapi.ai/hunyuan/1791950034457_6fa0aff22e714db0a95002314ab88219.png",
"status": "succeeded",
"errorMsg": null,
"createTime": "2026-10-14 11:53:25",
"completeTime": "2026-10-14 11:53:55"
}
}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 |