Model ID
Put this value in the request body's `model` field — not the display name above.
by Tongyi · Wanxiang-family Happyhorse 1.0 video editing (async task): a reference video plus up to 5 reference images rewrite the picture; duration follows the source video.
POST /v1/videos/generationshttps://usapi.dflop.top/v1curl https://usapi.dflop.top/v1/videos/generations \
-H "Authorization: Bearer sk-gpushare-xxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"model": "happyhorse-1.0-video-edit",
"content": [
{"type": "text", "text": "把背景换成雪山"},
{"type": "video_url", "video_url": {"url": "https://example.com/source.mp4"}}
]
}'
# 返回 {"id": "...", "status": "queued"}
# ⚠️ 参考**视频**是必填的(视频编辑):缺 video_url 会被上游 400 拒绝
# 成片时长随源视频,不吃 duration
# ⚠️ 外部 key 按 30 秒预扣地板(与你传的 duration 取大者)curl https://usapi.dflop.top/v1/videos/generations/$TASK_ID \
-H "Authorization: Bearer sk-gpushare-xxxxxxxx"
# status: queued -> running -> succeeded / failed / expired / cancelled
# 建议 5-10 秒轮询一次。轮询免费。This is an async task: submit for a task ID, then poll until it settles. Polling itself is free.
Billed per second of delivered video; tiered SKUs use the rate for the resolution actually delivered.
Sign in and any personal discount on your account will show up here. Sign in
Models like this bill for real per image / per second / per call and are mostly async tasks, so there is no one-click test here. Use the sample code above, or generate in the matching workbench (which has a parameter panel and a cost estimate).
Open the workbench404 model_not_foundYou passed the display name instead of the model ID.✗ Happyhorse 1.0 Video Edit→✓ happyhorse-1.0-video-edit
→ Copy the Model ID at the top of this page
402 quota_exceededInsufficient account balance. All your API keys share one balance.
401 / 403The API key is invalid, or it has a model allowlist that doesn't include this ID.
→ Check the key's status and allowed models
400 invalid_request`resolution` is required on Lite (`-lite`) SKUs and only accepts 720p / 1080p; anything else also returns 400.
→ Check your request body against the sample code above
本页的 Markdown 版本:/models/happyhorse-1.0-video-edit.md