TenZenTenzen AI
API ReferenceAI Model APIVideos

Create Video Generation Task

Submit a video generation task, supporting text-to-video and image-to-video.

Returns the task ID. The task status can be queried via the GET API.

POST/v1/video/generations

以下为根据 OpenAPI Schema 自动生成的模拟请求参数,用于对照下方参数说明与右侧示例;不会发起真实请求。

{
  "method": "POST",
  "url": "https://api.tenzen.ai/v1/video/generations",
  "headers": {
    "Content-Type": "application/json"
  },
  "body": {}
}

Authorization

BearerAuth

AuthorizationBearer <token>

使用 Bearer Token 认证。 格式: Authorization: Bearer sk-xxxxxx

In: header

Request Body

application/json

model?string

模型/风格 ID

prompt?string

文本描述提示词

image?string

图片输入 (URL 或 Base64)

duration?number

视频时长(秒)

width?integer

视频宽度

height?integer

视频高度

fps?integer

视频帧率

seed?integer

随机种子

n?integer

生成视频数量

response_format?string

响应格式

user?string

用户标识

metadata?

扩展参数 (如 negative_prompt, style, quality_level 等)

Response Body

application/json

application/json

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