跳转到主要内容
厂商: OpenAI Model ID: sora-2-pro 能力: 1080p · 最长 20s · 文本 + image init · 通过 tasks API 异步 价格: 按秒计费,pro 级 (实时费率) Sora 2 Pro 是视频本身就是交付物时用的。比 Sora 2 更高的基础保真度、 更长的最大时长(20s vs 10s)、更完整的 1080p 细节。代价是延迟 —— 5s 片段的端到端典型耗时 90–180 秒。迭代 / draft 阶段先用 Sora 2; 把 Pro 预算花在最终成品上。

Submit

curl https://llm.bytespike.ai/v1/tasks/submit \
  -H "x-api-key: $BYTESPIKE_API_KEY" \
  -H "content-type: application/json" \
  -d '{
    "model": "sora-2-pro",
    "prompt": "A cinematic dolly shot through a misty pine forest at dawn, golden light filtering through.",
    "duration_seconds": 8,
    "resolution": "1080p"
  }'

Body 参数

FieldTypeRequiredDefaultNotes
modelstringyessora-2-pro
promptstringyes针对英文调优。
duration_secondsintegeryes1–20。
resolutionstringno1080p支持:720p1080p
aspect_ratiostringno16:916:9 / 9:16 / 1:1
seedintegerno可复现性。
image_initstringnoinit image 的 URL,用于图生视频。
style_presetstringno可选:cinematicanimedocumentarynone

Submit 响应

{
  "task_id": "task_…",
  "status": "queued",
  "estimated_credits": 1.85,
  "submitted_at": "2026-05-08T13:00:00Z"
}
queued 期间取消可以免费撤销。进入 running 之后,会按已渲染的 部分秒数计费。

Poll 等待完成

curl "https://llm.bytespike.ai/v1/tasks/query?task_id=task_…" \
  -H "x-api-key: $BYTESPIKE_API_KEY"
推荐节奏:前 90 秒每 2 秒,之后每 5 秒,最长到 240 秒。
{
  "task_id": "task_…",
  "status": "completed",
  "result": {
    "video_url": "https://cdn.bytespike.ai/vid/...",
    "duration_seconds": 8,
    "resolution": "1080p",
    "aspect_ratio": "16:9"
  },
  "credits": 1.85,
  "completed_at": "2026-05-08T13:02:14Z"
}
URL 预签名,24h 有效。

代码示例

# Submit
curl https://llm.bytespike.ai/v1/tasks/submit \
  -H "x-api-key: $BYTESPIKE_API_KEY" \
  -H "content-type: application/json" \
  -d '{"model": "sora-2-pro", "prompt": "Dolly shot through pine forest at dawn", "duration_seconds": 8, "resolution": "1080p"}'

# Poll
curl "https://llm.bytespike.ai/v1/tasks/query?task_id=task_…" \
  -H "x-api-key: $BYTESPIKE_API_KEY"

错误

Code触发条件计费?
400Body 校验(duration > 20、resolution 不支持)不计费
401 / 402 / 403鉴权 / 钱包 / scope不计费
451prompt 被上游安全过滤拦截不计费
5xx上游问题不计费(自动重试)
取消 running 中的任务会按已渲染秒数部分计费。

何时选用

  • 主视觉 / 终稿级片段 —— 1080p 和时长要紧。
  • 从写实 init 帧出发的图生视频。
  • draft / 迭代阶段,先用 Sora 2
  • 30s 周转的快速变体,见 Veo 3.1 Fast
  • 更低成本,见 Seedance 2.0 Pro

限制

限制
最长时长20s
最短时长1s
分辨率720p、1080p
长宽比16:9、9:16、1:1
支持 image init
8s 片段典型延迟120-180s
通过 tasks API 异步