Midjourney · 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/mj |
| Query Result | GET | /api/cqt/info/mj?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) |
|---|---|---|---|---|
| mj-v8.2 | v8.2 latest | None (text only) | 4 | 30 |
| mj-v8.1 | v8.1 | None (text only) | 4 | 30 |
| mj-v7 | v7 | None (text only) | 4 | 30 |
| mj-niji7 | niji 7 anime style | None (text only) | 4 | 30 |
⚠ mj-v8.2: 4 images per call, billed per call; mj-v8.1: 4 images per call, billed per call; mj-v7: 4 images per call, billed per call; mj-niji7: 4 images per call, billed per call
Request Parameters
| Param | Type | Required | Description |
|---|---|---|---|
| model | string | Required | Sub-model: mj-v8.2 / mj-v8.1 / mj-v7 / mj-niji7 |
| 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/mj \
-H 'Authorization: Bearer <API_KEY>' \
-H 'Content-Type: application/json' \
-d '{
"model": "mj-v8.2",
"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": "c243dd5a4c944c5e8b3535c40001e678",
"resultUrl": "https://cdn.novapi.ai/mj/1791950107895_4e9166ef7ba44a459fcd1837f7ce636a.png,https://cdn.novapi.ai/mj/1791950108968_481e2a5ca0d647b38a5cc7cacfac275c.png,https://cdn.novapi.ai/mj/1791950109978_037744e16d6d4f79aeed3997d15ecec5.png,https://cdn.novapi.ai/mj/1791950110959_55a1181b89a143a2b6298c619c54f53a.png",
"status": "succeeded",
"errorMsg": null,
"createTime": "2026-10-14 11:53:27",
"completeTime": "2026-10-14 11:55:11"
}
}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 |