sora-video
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSora Video Generation
Sora视频生成
Generate AI videos through AceDataCloud's OpenAI Sora API.
Setup: See authentication for token setup.
通过AceDataCloud的OpenAI Sora API生成AI视频。
设置: 请查看身份验证了解令牌设置方法。
Quick Start
快速开始
bash
curl -X POST https://api.acedata.cloud/sora/videos \
-H "Authorization: Bearer $ACEDATACLOUD_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"prompt": "a golden retriever running on a beach at sunset", "model": "sora-2", "callback_url": "https://api.acedata.cloud/health"}'Async: See async task polling. Poll viawithPOST /sora/tasks.{"id": "..."}
bash
curl -X POST https://api.acedata.cloud/sora/videos \
-H "Authorization: Bearer $ACEDATACLOUD_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"prompt": "a golden retriever running on a beach at sunset", "model": "sora-2", "callback_url": "https://api.acedata.cloud/health"}'异步处理: 请查看异步任务轮询。通过接口传入POST /sora/tasks进行轮询。{"id": "..."}
Models
模型
| Model | Duration | Quality | Best For |
|---|---|---|---|
| 10–15s | Standard | Most tasks (default) |
| 10–25s | Higher | Premium quality, longer videos |
| 模型 | 时长 | 画质 | 适用场景 |
|---|---|---|---|
| 10–15秒 | 标准 | 大多数任务(默认选项) |
| 10–25秒 | 更高 | 高品质、长时长视频 |
Workflows
工作流
1. Text-to-Video
1. 文本转视频
json
POST /sora/videos
{
"prompt": "a busy Tokyo street at night with neon signs reflecting in rain puddles",
"model": "sora-2",
"size": "small",
"duration": 10,
"orientation": "landscape"
}json
POST /sora/videos
{
"prompt": "a busy Tokyo street at night with neon signs reflecting in rain puddles",
"model": "sora-2",
"size": "small",
"duration": 10,
"orientation": "landscape"
}2. Image-to-Video
2. 图像转视频
Use reference images to guide generation.
json
POST /sora/videos
{
"prompt": "the scene gradually comes alive with gentle motion",
"image_urls": ["https://example.com/scene.jpg"],
"model": "sora-2",
"orientation": "landscape"
}使用参考图像引导视频生成。
json
POST /sora/videos
{
"prompt": "the scene gradually comes alive with gentle motion",
"image_urls": ["https://example.com/scene.jpg"],
"model": "sora-2",
"orientation": "landscape"
}3. Character-Driven Video
3. 角色驱动视频
Extract a character from an existing video and use them in a new scene.
json
POST /sora/videos
{
"prompt": "the character walks through a futuristic city",
"character_url": "https://example.com/source-video.mp4",
"character_start": 2.0,
"character_end": 5.0,
"model": "sora-2-pro"
}从现有视频中提取角色,并将其应用到新场景中。
json
POST /sora/videos
{
"prompt": "the character walks through a futuristic city",
"character_url": "https://example.com/source-video.mp4",
"character_start": 2.0,
"character_end": 5.0,
"model": "sora-2-pro"
}Parameters
参数说明
| Parameter | Values | Description |
|---|---|---|
| | Model to use (required) |
| | Video resolution |
| | Duration in seconds (25 only with sora-2-pro) |
| | Video orientation |
| | API version — version |
| 参数 | 可选值 | 描述 |
|---|---|---|
| | 使用的模型(必填) |
| | 视频分辨率 |
| | 视频时长(单位:秒,仅 |
| | 视频方向 |
| | API版本 — 版本 |
Gotchas
注意事项
- Duration of 25 seconds is only available with model
sora-2-pro - produces higher resolution but costs more and takes longer
size: "large" - Character-driven generation requires and
character_starttimestamps (in seconds) from the source videocharacter_end - sets the aspect ratio — use
orientationfor mobile-first content"portrait" - Task states use (not "completed") — check for this value when polling
"succeeded"
MCP:| Hosted:pip install mcp-sora| See all MCP servershttps://sora.mcp.acedata.cloud/mcp
- 25秒时长仅适用于模型
sora-2-pro - 会生成更高分辨率视频,但成本更高且耗时更长
size: "large" - 角色驱动生成需要提供源视频中和
character_start的时间戳(单位:秒)character_end - 用于设置宽高比 — 面向移动设备的内容请使用
orientation"portrait" - 任务状态使用(而非"completed") — 轮询时请检查该状态值
"succeeded"
MCP:| 托管地址:pip install mcp-sora| 查看所有MCP服务器https://sora.mcp.acedata.cloud/mcp