Skip to content

HappyHorse 1.1 API

1080p text-to-video from Alibaba's HappyHorse line

happyhorse-1-1Async taskvideoLive price on TokPort: $0.31 per second

Fields marked * are required. The same definitions are published as OpenAPI 3.0 (https://tokport.io/api/openapi?model=happyhorse-1-1), ready for code generators and agents.

Text to video

POST /v1/videos

Input

FieldTypeDescription
model*stringModel id. Always "happyhorse-1-1".
prompt*stringWhat should happen in the clip: subject, motion, camera move and mood.
secondsstring (enum)Clip length in seconds. Billed per second of output.4568101215default: 5
ratiostring (enum)Frame aspect ratio.16:99:16default: 16:9

Output

Asynchronous. The submit response returns a task `id` with status `queued`. Poll `GET /v1/videos/{id}` until `status` is `completed` (progress 0–100), then download bytes from `GET /v1/videos/{id}/content`. Failed tasks are refunded.

{
  "id": "task_gz9n3dcAaaJ942r9iXjyLzvW7CU9W9eG",
  "object": "video",
  "model": "seedance-2-0",
  "status": "queued",
  "progress": 0,
  "created_at": 1791535189
}

Runnable example: API tab.