PopNow API docs
Generate images, video and audio from your own code
One API key, one REST endpoint, the same models and credits as popnow.ai. Send a task, get the file back.
Your first image in three steps
Create a key
Sign in at popnow.ai and create a key in the API console. It starts with sk-popnow- and uses the credits already in your account.
Send one request
Paste this into a terminal. It asks Z-Image for one image, which costs 2 credits ($0.02), and waits up to 60 seconds for the result.
POST /api/v1/jobs/createTask?wait=60 export POPNOW_API_KEY="sk-popnow-..." # your key from the API console curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask?wait=60" \ -H "Authorization: Bearer $POPNOW_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "model": "alibaba/z-image-turbo/text-to-image", "input": { "prompt": "A small red fox curled up in a teacup, soft morning light, studio photo" } }'Open the result
The response contains a signed link to the image in output.assets[0].url. Longer jobs such as video return a taskId instead; read it later with recordInfo or get a webhook.
200 OK { "code": 200, "msg": "success", "data": { "taskId": "job_01JH8Z4Q5W2N7R3K9M6P1C0VXD", "model": "alibaba/z-image-turbo/text-to-image", "state": "succeeded", "output": { "assets": [ { "url": "https://…signed-link…", "expiresAt": "2026-10-16T09:20:00Z", "mime": "image/png", "width": 1024, "height": 1024 } ] }, "credits": 2, "cost": "0.02", "settled": true }, "request_id": "req_…" }