Call HappyHorse Through Generic Video API
Submit HappyHorse video tasks through /v1/video/generations.
POST /v1/video/generations is the 枭毅API generic video task endpoint. When the request model is a HappyHorse model, 枭毅API converts the request to the HappyHorse upstream format.
Authorization
BearerAuth
AuthorizationBearer <token>
使用 Bearer Token 认证。
格式: Authorization: Bearer sk-xxxxxx
In: header
Request Body
application/json
model*string
HappyHorse 模型名。
Value in
"happyhorse-1.0-t2v" | "happyhorse-1.0-i2v" | "happyhorse-1.0-r2v" | "happyhorse-1.0-video-edit"prompt*string
视频生成或编辑提示词。
image?string
I2V 使用的单张首帧图片 URL 或 data URL。
images?array<string>
R2V 使用的 1 到 9 张参考图片。
metadata?
Response Body
application/json
curl -X POST "https://open.ospreyai.cn/v1/video/generations" \ -H "Content-Type: application/json" \ -d '{ "model": "happyhorse-1.0-t2v", "prompt": "string" }'{
"id": "task_xxx",
"task_id": "task_xxx",
"object": "video",
"model": "happyhorse-1.0-t2v",
"status": "queued",
"progress": 0
}