Sora 2

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