nokai.studio
nokai.studio is a prepaid AI media generation API. You POST /api/v1/jobs/createTask, get a taskId back immediately, then poll GET /api/v1/jobs/recordInfo?taskId=... (or wait for a webhook) until the job reaches success. The result is a URL pointing to your generated image or video.
Every model uses the same two calls — /createTask and /recordInfo — against https://nokai.studio.
Where to start
- Quickstart — curl to first generation in under 5 minutes.
- Authentication — API keys, Bearer header, scoping.
- Jobs & async generation — the
waiting → queuing → generating → success | faillifecycle, polling vs. webhooks. - API reference — Jobs — every endpoint, every field.
API base URL
https://nokai.studio
All endpoints require Authorization: Bearer zpk_... except the liveness probes.
Key concepts
| Concept | One line |
|---|---|
| Task / Job | An async generation request. Identified by taskId. |
| Model | The generation model name (e.g. wan-i2v-480p). |
| Credits | Prepaid currency. 1 credit = $0.02. Deducted on completion. |
| Webhook | An HTTPS endpoint you register to receive signed job events. |
| API key | A zpk_… bearer token that authenticates every request. |
Response envelope
Job endpoints (createTask, recordInfo) use a Standard response envelope:
{ "code": 200, "msg": "success", "data": { ... } }Non-job endpoints (billing, webhooks, account) return flat responses with HTTP status codes.
Error responses always include:
{ "code": 401, "msg": "Missing or invalid API key", "data": null, "request_id": "req_..." }Match on code, not msg. Include request_id in support requests — it is the trace key.