Skip to main content

Overview

The Sora 2 Async API uses a standard asynchronous processing mechanism, ideal for scenarios requiring fine-grained control over the video generation workflow. Unlike the synchronous streaming API, the async API separates video generation into three independent steps, allowing more flexible task management and download timing.
The Async API is particularly suitable for batch processing, background tasks, and scenarios requiring long wait times. If you need real-time progress feedback, we recommend using the Synchronous Streaming API.

Key Features

Independent Task Management

Get task ID after submission, query status anytime

Flexible Polling Strategy

Customize polling intervals to avoid unnecessary requests

Reliable Video Download

Independent download after completion, supports resume

Batch Processing Support

Submit multiple tasks simultaneously for efficient concurrent processing

Complete Workflow

The Async API follows a 3-step workflow:
Typical generation time: 3-5 minutes. Recommended polling interval: 30 seconds, maximum wait time: 10 minutes.

Model Pricing

  • Async call recommended - various errors won’t incur charges;
  • Synchronous call supports streaming output to view progress;
  • Video storage valid for 1 day, download promptly;
  • Sora 2 standard versions actually output 704 px (not 720 px), this is the official behavior;

API Endpoint

Step 1: Submit Video Generation Request

Request Parameters

Text-to-Video Examples

Image-to-Video Examples

Upload a reference image to generate video based on the image.

Response Format

Step 2: Poll Video Generation Status

After submitting the request, regularly poll to check video generation status.

Request Method

Query Examples

Status Descriptions

In-Progress Response Example

Completed Response Example

Step 3: Download Generated Video

After video generation is complete (status is completed), you can download the video file.

Request Method

Download Examples

Video files may expire after a certain period. It’s recommended to download immediately after generation and save locally.

Best Practices

Prompt Writing Tips

A good prompt should include: scene description, subject action, camera style, artistic style.
Good Example:
Poor Example:

Reference Image Recommendations

  • Resolution: Recommended 1280x720 or higher
  • Format: PNG or JPG
  • File Size: < 10MB
  • Content: Clear, well-defined subject, good lighting
  • Relevance: Image content should relate to prompt description

Polling Strategy Recommendations

Recommended Settings

  • Polling interval: 30 seconds
  • Maximum wait: 10 minutes (600 seconds)
  • Typical duration: 3-5 minutes

Avoid Settings

  • Polling interval: < 30 seconds (may trigger rate limiting)
  • Maximum wait: < 5 minutes (may give up too early)

Error Retry Strategy

Quotas and Limits

Error Handling

Common Error Codes

FAQ

Typically 3-5 minutes, depending on server load and video complexity. Recommended polling interval: 30 seconds, maximum wait time: 10 minutes.
  • Async API: 3-step workflow (submit→poll→download), suitable for batch processing and background tasks, requires managing polling logic
  • Sync API: Streaming output, real-time progress, suitable for scenarios needing immediate feedback
See: Synchronous Streaming API Documentation
Yes, up to 5 concurrent tasks are supported. You can submit multiple requests simultaneously and poll their status separately. Be careful not to exceed the request rate limit (10 requests/minute).
It’s recommended to download videos immediately after generation to avoid file expiration. Contact technical support for specific storage duration.
Check the error message in the response. Common causes:
  • Content policy violation (modify prompt or change image)
  • Insufficient quota (recharge or upgrade plan)
  • Invalid parameters (check parameter format and values)
  • Server overload (retry later)
Control via the size parameter:
  • 1280x720: Landscape
  • 720x1280: Portrait

Synchronous Streaming API

Real-time progress feedback for interactive applications

API Basics Manual

Learn about API authentication, request formats, etc.

FAQ

View more frequently asked questions