Skip to content

Videos API

Create an asynchronous video task, poll the same task, and read the final delivery and settled usage.

POST /v1/videos/generations

Authorization
Bearer $CHUA_API_KEY
Content-Type
application/json for request bodies
Idempotency-Key
1–160 characters from A-Z a-z 0-9 . _ : -; required for generation requests.
X-CHUA-Request-ID
Save this response header as the request receipt when returned.
{"model":"YOUR_VIDEO_MODEL","prompt":"A paper boat on a quiet pond"}

The exact duration, resolution, ratio, audio, and image_url contract is model-specific. Use the model page or generated model example.

Accepted task

HTTP 202 returns id, model, status, reserved_micros, and currency. Save the id and poll the task.

curl 'https://chuaone.si/v1/videos/YOUR_REQUEST_ID' \
  -H "Authorization: Bearer $CHUA_API_KEY"

Task states

queued / running
Continue polling the same id.
succeeded
Read content.video_url, usage, and charged_micros. The supplier URL is time-limited.
failed
The confirmed failure releases the reservation.
review
Delivery or billing still requires reconciliation. Check the same request before creating another task.