Skip to main content
Archived page: the Sora 2 video API has been retired. LaoZhang API stopped serving Sora 2 on July 1, 2026, and OpenAI removed the Videos API, sora-2, and sora-2-pro from its API on September 24, 2026. This page keeps the legacy route documentation for existing integrations, and its examples no longer work.For video generation, use Wan 2.7 or Seedance 2.0. To migrate, see Sora 2 API retired: move to Wan or Seedance.

Basic Information

  • Endpoint: https://api.laozhang.ai/v1/chat/completions
  • With Watermark Endpoint: https://api.laozhang.ai/v1/chat/completions?watermark=true
  • Method: POST
  • Authentication: Bearer Token (API Key)
  • Content Type: application/json
From 10/18, a watermark option was available: by default, watermarking followed the model output; to get videos with the native Sora watermark, add ?watermark=true to the URL.

Authentication

Include your API key in the request header:

Request Format

Basic Structure

Request Parameters

Messages Array

Each message object contains:

Content Array

Supports two types of content:

Text Content

Image Content (Optional)

Image Restrictions
  • Maximum 1 image
  • Supports URL or Base64 format
  • Recommended resolution not exceeding 2048×2048
  • Real person photos not supported

Supported Models

The prices below are historical per-call prices from before the legacy route was retired. Price update (10/20): 15-second models moved to $0.15/call, the same price as 10-second models.
HD ModelHD model sora-2-pro (HD 1080P, $0.8/call) was only available via the Async API due to its longer generation time (~10 minutes).View Async API Documentation

Response Format

Non-streaming Response

Response Field Description

Streaming Response (SSE)

When "stream": true is enabled, returns Server-Sent Events format:

Streaming Response Fields

Complete Examples

Text-to-Video

Image-to-Video (URL)

Image-to-Video (Base64)

Streaming Output

Error Codes

Error Response Format

Rate Limits

The legacy route had no strict rate limits, but these practices were recommended:
  • Control concurrency when batch generating (recommended 2-3)
  • Avoid large number of requests in short time
  • Set reasonable retry intervals

Best Practices

Video generation takes 2-4 minutes, recommend setting timeout to 5-10 minutes.
Add retry logic to handle temporary errors:
Download immediately after generation (valid for 1 day):
Use streaming output to view progress in real-time:

SDK Support

Official SDK

  • Python: openai >= 1.0.0
  • Node.js: openai >= 4.0.0

Third-party SDK

Any SDK compatible with OpenAI API format can be used, just modify base_url.

Technical Specifications

Next Steps

Quick Start

View quick start guide

Usage Examples

View more code examples

Model Pricing

Learn about model comparison and pricing

FAQ

View frequently asked questions