影片生成總覽
在 APIMaster.ai 上使用 Sora 2 生成影片。提交非同步任務、輪詢狀態,並透過 APIMaster 網址下載 MP4。
影片生成總覽
APIMaster 在 https://apimaster.ai/v1(https://apimaster.ai/v1)提供 Sora 2,包括文字轉影片與圖片轉影片功能。
| 模型 | 說明 | 文件 |
|---|---|---|
sora-2 |
標準版,720p | Sora 2 |
sora-2-pro |
專業版,720p / 1024p / 1080p | Sora 2 |
sora |
sora-2 的別名 |
同上 |
kling-v3-motion-control |
Kling 動態控制(參考圖片 + 參考影片) | Kling 動態控制 |
MiniMax-H3 |
MiniMax 文字轉影片,768P / 2K,4–15 秒 | MiniMax-H3 影片生成 |
慣例
- 認證:
Authorization: Bearer YOUR_API_KEY(取得金鑰) - 非同步:提交後回傳
task_id;輪詢直到completed - 下載:
https://apimaster.ai/v1/videos/{task_id}/content - 即時儲存:完成後立即下載並儲存 MP4 檔案
建議流程
- 提交(任選其一)
- 原生方式:
POST https://apimaster.ai/v1/videos/generations(duration/resolution/aspect_ratio) - OpenAI 相容:
POST https://apimaster.ai/v1/videos(seconds/size/images)
- 原生方式:
- 輪詢:
GET https://apimaster.ai/v1/videos/{task_id} - 下載:
GET https://apimaster.ai/v1/videos/{task_id}/content
提交的回應格式有所不同——請參閱 Sora 2。