建立視頻生成任務

提交視頻生成任務,支援文生視頻和圖生視頻。

返回任務 ID,可通過 GET 介面查詢任務狀態。

POST
/v1/video/generations

提交视频生成任务,支持文生视频和图生视频。

返回任务 ID,可通过 GET 接口查询任务状态。

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

application/json

curl -X POST "https://example.com/v1/video/generations" \  -H "Content-Type: application/json" \  -d '{}'
{  "task_id": "abcd1234efgh",  "status": "queued"}
{  "error": {    "message": "string",    "type": "string",    "param": "string",    "code": "string"  }}