输入图片
上传 1-9 张图片(每张最大 10MB)。
Click to upload or drag and drop
Supported formats: JPG, JPEG, PNG, WEBP
Maximum file size: 10MB; Maximum files: 9
输入视频
最多上传 3 个参考视频。
Click to upload or drag and drop
Supported formats: MP4, MOV, WEBM
Maximum file size: 100MB; Maximum files: 3
输入音频
最多上传 3 个音频参考文件。
Click to upload or drag and drop
Supported formats: MP3, WAV, M4A, AAC, OGG, FLAC
Maximum file size: 50MB; Maximum files: 3
Any integer from 4s to 15s.
Video output resolution.
Video aspect ratio.
美元估算 $0.76-$1.52:最高充值套餐按 $1 = 2,000 积分计算;入门套餐按 $1 = 1,000 积分计算。
历史记录
保存在此浏览器本地
0 个运行中 · 0 个已完成
计费规则
鉴权
每个请求都需要在 Authorization 头中携带 Bearer 令牌。请在控制台创建 API Key。
Authorization: Bearer YOUR_API_KEYhttps://apiany.ai/v1/videos/generations请求参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
model | 字符串 | 必填 | 要调用的模型标识,使用该模型的 ID。 |
prompt | 字符串 | 必填 | 描述你想生成内容的文本提示词。 |
duration | 数字 | 可选 | Any integer from 4s to 15s. · 范围: 4–15 · 默认: 4 |
quality | 字符串 | 可选 | Video output resolution. · 可选值: 768p, 2k · 默认: 768p |
aspect_ratio | 字符串 | 可选 | Video aspect ratio. · 可选值: 16:9, 9:16, 1:1, 4:3, 3:4, 21:9 · 默认: 16:9 |
callback_url | 字符串 | 可选 | 可选的回调地址,异步任务完成后会被调用。 |
请求示例
curl "https://apiany.ai/v1/videos/generations" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "minimax-h3-reference-to-video",
"prompt": "Generate a short cinematic clip guided by the reference images, consistent character and lighting",
"duration": 4,
"quality": "768p",
"aspect_ratio": "16:9"
}'响应示例
{
"task_id": "task_abc123",
"status": "pending",
"poll_url": "/v1/tasks/task_abc123",
"request_id": "req_abc123",
"credits": {
"reserved": 1000
}
}该端点为异步调用:请求后会立即返回 task_id。请轮询任务状态查询端点,直到 status 变为 succeeded 后再读取 result。生成的媒体链接有效期为 24 小时。