Sora2

OpenAI推出的视频生成模型Sora 2

功能特性
  • 文本到视频生成
  • 图像到视频动画
  • 多种时长
  • 可选水印去除
定价
DurationWatermarkNo Watermark
10 frames8 (~$0.09)10 (~$0.11)
15 frames10 (~$0.11)12 (~$0.13)

Sora2 standard version

Sora2-pro version

DurationStandardHigh
10 frames125 (~$1.39)275 (~$3.06)
15 frames225 (~$2.50)475 (~$5.28)
端点
POST/api/v1/videos/generate
参数
参数类型必需描述
modelstring必需"sora2" or "sora2-pro"
typestring可选"text-to-video" or "image-to-video"
promptstring必需Text description of the video
n_framesstring可选"10" or "15"
remove_watermarkboolean可选Remove watermark (sora2 only)
sizestring可选"standard" or "high" (sora2-pro only)
aspect_ratiostring可选"landscape", "portrait", or "square"
input_imagestring可选URL for image-to-video
请求示例
{
  "model": "sora2",
  "type": "text-to-video",
  "prompt": "A cat walking on the beach",
  "n_frames": "10",
  "remove_watermark": true,
  "aspect_ratio": "landscape"
}
响应示例
{
  "success": true,
  "data": {
    "task_id": "task_sora123",
    "credits_used": 10,
    "remaining_credits": 490,
    "model": "sora2"
  }
}
代码示例
curl -X POST https://gateway.nanobananapro.site/api/v1/videos/generate \
  -H "Authorization: Bearer sk-your-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "sora2",
    "type": "text-to-video",
    "prompt": "A cat walking on the beach",
    "n_frames": "10",
    "remove_watermark": true
  }'
Nano Banana Pro API