LogoDocumentación de SoraVideo
API Reference

API Overview

Getting started with the Sora 2 Video API

Introduction

The Sora 2 Video API allows you to integrate AI video generation capabilities into your applications. With our API, you can programmatically create videos from text prompts or images, remove watermarks, and generate storyboards.

Text to Video

Generate videos from text descriptions using state-of-the-art AI models.

Image to Video

Transform static images into dynamic video content.

Pro Features

Access enhanced generation with longer durations and higher quality.

Storyboard

Create multi-shot video sequences from structured prompts.

Quick Start

1. Get Your API Key

Navigate to Settings → API Keys in your dashboard to create an API key.

Keep Your Key Safe

Your API key is shown only once when created. Store it securely and never expose it in client-side code.

2. Make Your First Request

Generate a video
curl -X POST https://soravideo.art/api/v1/sora2/text-to-video \
  -H "Authorization: Bearer sk_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A golden retriever playing in a sunny park"
  }'

3. Check Task Status

Get task status
curl https://soravideo.art/api/v1/tasks/task_abc123 \
  -H "Authorization: Bearer sk_your_api_key"

API Endpoints

EndpointDescriptionCredits
POST /api/v1/sora2/text-to-videoGenerate video from text100
POST /api/v1/sora2/image-to-videoGenerate video from image100
POST /api/v1/sora2-pro/text-to-videoPro text to video200
POST /api/v1/sora2-pro/image-to-videoPro image to video200
POST /api/v1/sora2/watermark-removeRemove watermark50
POST /api/v1/sora2-pro/storyboardGenerate storyboard65-162*
GET /api/v1/tasks/{taskId}Get task status0
POST /api/v1/uploadUpload image0
GET /api/v1/creditsGet credit balance0

*Storyboard credits vary by duration: 10s = 65, 15s = 98, 25s = 162

Response Format

All API responses follow a consistent JSON structure:

Success Response
{
  "code": 200,
  "msg": "success",
  "data": {
    "task_id": "task_abc123",
    "status": "pending"
  }
}
Error Response
{
  "code": 401,
  "error": "Invalid API key"
}

Credit System

Each API call consumes credits based on the endpoint:

  • Standard endpoints: 50-100 credits per request
  • Pro endpoints: 200-300 credits per request
  • Utility endpoints (tasks, upload, credits): Free

Purchase credit packages from the API Keys page:

PackageCreditsPrice
Basic100$9.9
Standard200$14.9
Premium500$39.9
Enterprise1,000$69.9

Next Steps