Skip to content

Video generation API

Create an asynchronous video task, poll its status and retrieve the completed video through CHUA ONE.

POST /v1/videos/generations

  • Authorization: Bearer $CHUA_API_KEY — project API key
  • Content-Type: application/json
  • Idempotency-Key — a unique value for every new request; reuse it only when retrying the same request
curl -i 'https://chuaone.si/v1/videos/generations' \
  -H "Authorization: Bearer $CHUA_API_KEY" \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: YOUR_UNIQUE_REQUEST_ID' \
  -d '{"model":"happyhorse-1.1-t2v","prompt":"A paper boat floating on a quiet pond","duration":3,"resolution":"720p"}'

A valid request returns HTTP 202. Use the CHUA ONE request id to poll for the result. reserved_micros shows the temporary hold. The final charge appears after settlement. The amounts below illustrate the response format.

{
  "id": "00000000-0000-0000-0000-000000000000",
  "model": "happyhorse-1.1-t2v",
  "status": "queued",
  "reserved_micros": 123456,
  "currency": "CNY"
}

Supported request shapes

happyhorse-1.1-t2v
Text to video. prompt is required. duration is 3 and resolution is 720p.
happyhorse-1.1-i2v / happyhorse-1.1-r2v
Image to video or reference image to video. Add image_url containing a public HTTPS image URL. duration is 3 and resolution is 720p.
wan3.0-video / wan3.0-video-prime
Text to video. prompt is required. duration is 5 and resolution is 480p.
dreamina-seedance-2-0-260128 / dreamina-seedance-2-0-fast-260128 / dreamina-seedance-2-0-mini-260615
Text to video. prompt is required. duration is 4, resolution is 480p, ratio is 16:9, and generate_audio is false.

prompt accepts 1 to 800 characters. The project key must allow the selected published model.

GET /v1/videos/:id

Poll every 20 seconds with the same project key while the status is queued or running. Stop polling when it changes to succeeded, failed, or review.

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

A succeeded task includes content and usage. The response below uses illustrative values. See the model page for the current rate.

{
  "id": "00000000-0000-0000-0000-000000000000",
  "model": "happyhorse-1.1-t2v",
  "status": "succeeded",
  "charged_micros": 123456,
  "currency": "CNY",
  "content": { "video_url": "https://supplier.example/video.mp4" },
  "usage": { "output_seconds": 3 },
  "delivery_note": "Time-limited supplier URL; save the video promptly."
}

Delivery and billing

  • HappyHorse tasks settle by 3 output seconds. Wan tasks settle by 5 output seconds. The succeeded response reports usage.output_seconds.
  • Dreamina Seedance tasks settle by verified completion tokens. The succeeded response reports usage.completion_tokens.
  • charged_micros is the finalized charge in the response currency. A confirmed failure releases the hold. A review status means the outcome or charge still requires reconciliation.
  • The video_url is time-limited. Download the completed MP4 promptly. CHUA ONE returns content only after both delivery validation and billing success.

Compare current model prices · Check service status

Common errors

KEY_INVALID
The key is invalid, expired or revoked.
MODEL_UNAVAILABLE / MODEL_NOT_ALLOWED
The model is not published, ready, or allowed for this key.
RATE_LIMIT
The key reached its request limit. Follow retryAfterSeconds when returned.
CUSTOMER_INFERENCE_DISABLED
Requests are temporarily unavailable. Check the service status before retrying.

Troubleshoot and decide when to retry · Check usage and charges