Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.anyfast.ai/llms.txt

Use this file to discover all available pages before exploring further.

HappyHorse 1.0 T2V is the text-to-video variant of Alibaba’s HappyHorse video generation series. It uses the async task API — submit a task, then poll until ready.

Key capabilities

  • Text-to-video — Generate videos purely from text prompts
  • Resolution — 720P / 1080P
  • Aspect ratios — 16:9, 9:16, 1:1, 4:3, 3:4
  • Duration — 3–15 seconds
  • Watermark control — Optionally disable the bottom-right “Happy Horse” watermark

Workflow

1. POST /v1/video/generations  →  task_id
2. GET  /v1/video/generations/{task_id}  →  poll until SUCCESS / FAILURE
3. Read data.result_url  (valid 24 hours)

Quick example

# Step 1 — create task
curl -X POST https://www.anyfast.ai/v1/video/generations \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "happyhorse-1.0-t2v",
    "prompt": "A cat running on grass",
    "parameters": {
      "resolution": "720P",
      "ratio": "16:9",
      "duration": 5,
      "watermark": false
    }
  }'

# Step 2 — poll until done
curl https://www.anyfast.ai/v1/video/generations/asyntask_xxx \
  -H 'Authorization: Bearer YOUR_API_KEY'

Parameters

Optional parameters can sit at the top level or inside a parameters object — both forms are equivalent.
ParameterTypeRequiredDescription
modelstringYesMust be happyhorse-1.0-t2v
promptstringYesText description of the video
resolutionstringNo720P / 1080P. Default: 1080P
ratiostringNo16:9, 9:16, 1:1, 4:3, 3:4. Default: 16:9
durationintegerNoSeconds, 3–15. Default: 5
watermarkbooleanNoDefault true. Set false to remove watermark
seedintegerNoRandom seed [0, 2147483647] for reproducibility

Billing

Charged by resolution tier × user-requested duration. Pre-deducted amount equals the final amount:
  • duration: 5 → billed for 5 seconds (even if upstream actually generated 6)
  • Failed tasks → automatically refunded

API Reference

Interactive playground for HappyHorse 1.0 T2V.

Task Query

Poll task status and retrieve the final video URL.