上传图片或粘贴图片 URL 以控制画面帧。
Start Frame
上传 1 张图片或粘贴一个图片 URL。
Click to upload or drag and drop
Supported formats: JPG, JPEG, PNG, WEBP
Maximum file size: 10MB; Maximum files: 1
End Frame
上传 1 张图片或粘贴一个图片 URL。
Click to upload or drag and drop
Supported formats: JPG, JPEG, PNG, WEBP
Maximum file size: 10MB; Maximum files: 1
Any integer from 4s to 15s.
Video output resolution.
Video aspect ratio.
美元估算 $0.38-$0.76:最高充值套餐按 $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-image-to-video",
"prompt": "Animate the reference image into a smooth cinematic shot with subtle camera movement",
"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 小时。