Quick Start

CQT AI offers AI generation across images, video, music, and chat. You can start calling the APIs in three steps: register & top up → create an APIKey → send your first request.

Onboarding flow

  1. Register and top up — After creating an account, head to the How to Top Up page to purchase credits.
  2. Create an APIKey — Create a key in APIKey Management, in the form sk-cqt-xxxx.
  3. Pick a model and call it — Choose an image / video / music / chat model from the left sidebar by use case, then copy the sample code and swap in your APIKey.

🔑 Don't have a key yet? Go straight to APIKey Management to create one.

Common conventions

  • Submit a task: POST /api/cqt/generator/{model}
  • Query the result: GET /api/cqt/info/{model}?id={taskId}
  • Auth header: Authorization: Bearer {API_KEY}
  • Responses are uniformly { "code":200, "msg":"success", "data": ... }; on a successful submission, data is the taskId.

Your first request

curl -X POST https://api.cqtai.com/api/cqt/generator/nano \
  -H "Authorization: Bearer sk-cqt-xxxx" \
  -H "Content-Type: application/json" \
  -d '{ "model": "nano-banana", "prompt": "a cute cat" }'
# → { "code":200, "data":"<taskId>" }

Async tasks return a taskId. Poll for the result by taskId until status = succeeded / failed.