Submit HappyHorse Video Task
Submit a video generation or video edit task using the HappyHorse native request format.
POST /happyhorse/api/generate uses the HappyHorse native request structure. It is suitable for clients that want to call with HappyHorse-style fields directly.
Authorization
BearerAuth AuthorizationBearer <token>
使用 Bearer Token 认证。
格式: Authorization: Bearer sk-xxxxxx
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/happyhorse/api/generate" \ -H "Content-Type: application/json" \ -d '{ "model": "happyhorse-1.0-t2v", "input": { "prompt": "A white horse runs slowly on a grassland, cinematic shot" } }'{
"code": 0,
"message": "success",
"data": {
"task_id": "task_xxx",
"status": "pending"
}
}How is this guide?