CQTAI
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

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

modelUsageMaterialsImagesTier price (credits)
mj-v8.2v8.2 latestNone (text only)430
mj-v8.1v8.1None (text only)430
mj-v7v7None (text only)430
mj-niji7niji 7 anime styleNone (text only)430
⚠ 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

ParamTypeRequiredDescription
modelstringRequiredSub-model: mj-v8.2 / mj-v8.1 / mj-v7 / mj-niji7
promptstringRequiredImage description
aspectRatiostring—Aspect ratio, e.g. 1:1 / 16:9 / 9:16
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/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

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