Sora 2 Pro

Sora 2 Pro generates cinematic-quality videos from text and images with unmatched realism and detail.


API

If you're looking for an API, you can choose from your desired programming language.

POST
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 import requests import base64 # Use this function to convert an image file from the filesystem to base64 def image_file_to_base64(image_path): with open(image_path, 'rb') as f: image_data = f.read() return base64.b64encode(image_data).decode('utf-8') # Use this function to fetch an image from a URL and convert it to base64 def image_url_to_base64(image_url): response = requests.get(image_url) image_data = response.content return base64.b64encode(image_data).decode('utf-8') # Use this function to convert a list of image URLs to base64 def image_urls_to_base64(image_urls): return [image_url_to_base64(url) for url in image_urls] api_key = "YOUR_API_KEY" url = "https://api.segmind.com/v1/sora-2-pro" # Request payload data = { "prompt": "A druid whispering to ancient trees under a golden sunset.", "duration": 8, "size": "1280x720" } headers = {'x-api-key': api_key} response = requests.post(url, json=data, headers=headers) print(response.content) # The response is the generated image
RESPONSE
video/mp4
HTTP Response Codes
200 - OKImage Generated
401 - UnauthorizedUser authentication failed
404 - Not FoundThe requested URL does not exist
405 - Method Not AllowedThe requested HTTP method is not allowed
406 - Not AcceptableNot enough credits
500 - Server ErrorServer had some issue with processing

Attributes


promptstr *

Describe the scene vividly; choose action for dynamic tones or peace for calm ambiances. Example: A sorceress summoning a gentle breeze in a tranquil forest.


input_referencestr ( default: 1 )

Add an image URL for added visual guidance. Useful for inspiration or aligning with specific imagery.


durationenum:str ( default: 8 )

Choose video length; 4s for brief intros, 12s for detailed scenes. Select based on video intent.

Allowed values:


sizeenum:str ( default: 1280x720 )

Adjust video dimensions; portrait suits mobile, landscape suits presentations. Choose based on target platform.

Allowed values:

To keep track of your credit usage, you can inspect the response headers of each API call. The x-remaining-credits property will indicate the number of remaining credits in your account. Ensure you monitor this value to avoid any disruptions in your API usage.

Resources to get you started

Everything you need to know to get the most out of Sora 2 Pro

# Sora 2 Pro

Sora 2 Pro is OpenAI’s advanced AI video generation model, turning text descriptions and image references into cinematic-quality video clips. Use this guide to optimize prompts, tailor parameters for different scenarios, and unlock the full potential of Sora 2 Pro.

## 1. Crafting Effective Prompts
• Be descriptive and concise: include key elements (characters, setting, mood).  
• Specify motion dynamics: “gentle breeze” vs. “roaring waterfall.”  
• Mention camera angles or movements: “slow pan from left to right,” “bird’s-eye view.”  
• Define lighting and color tone: “warm sunset glow,” “cool, misty morning.”  

Example prompt:  
“A steampunk airship soaring above a neon-lit city at dusk, camera tilting upward as golden lanterns glow.”

## 2. Choosing Video Duration
• 4 seconds: quick intros, logo reveals, social media teasers.  
• 8 seconds: standard ads, short narrative scenes, product highlights.  
• 12 seconds: detailed storytelling, complex choreography, multi-shot sequences.  

## 3. Selecting Output Size
• Portrait (720×1280, 1024×1792): optimal for mobile stories, TikTok, Instagram Reels.  
• Landscape (1280×720, 1792×1024): ideal for YouTube, websites, presentations.  
• Match resolution to platform and distribution channel to avoid cropping or pillarboxing.

## 4. Adding Image References
• Provide an image URL to align visual style, color palette, or design motifs.  
• Use reference for product demos, brand assets, character consistency.  
• Combine with a detailed prompt to guide composition and mood.

## 5. Sample Parameter Sets
**Marketing Campaign**  
• Duration: 8 s • Size: 1792×1024 (landscape)  
• Prompt: “A futuristic product reveal on a sleek stage, dynamic lighting reveals the device in 3D rotation.”

**Social Media Teaser**  
• Duration: 4 s • Size: 720×1280 (portrait)  
• Prompt: “Vibrant smoothie pouring into a glass, slow-motion splash, bright afternoon kitchen.”

**Educational Explainer**  
• Duration: 12 s • Size: 1280×720 (landscape)  
• Prompt: “Layered diagram of the water cycle, animated clouds forming rain over mountains, smooth camera zoom.”

## 6. Pro Tips
• Use simple drafts, then iterate by adding detail or adjusting style.  
• Align duration to narrative complexity: avoid cramming too much into 4 s.  
• Test different resolutions to ensure clarity on target devices.  
• Combine physics simulations (e.g., particles, fluids) in prompts: “sparks raining down” or “rippling water.”  

Leverage Sora 2 Pro’s advanced rendering, audio sync, and dynamic simulation to produce polished, engaging videos tailored to your creative vision.

Other Popular Models

Discover other models you might be interested in.

Cookie settings

We use cookies to enhance your browsing experience, analyze site traffic, and personalize content. By clicking "Accept all", you consent to our use of cookies.