Developer API
Generate Sora2 Videos via API
Integrate AI video generation into your applications. Text-to-video and image-to-video capabilities, powered by Sora2.
sora-2: 2 credits/video
sora-2-pro: 20 credits/video
Requires Pro or Max plan
API Capabilities
Text to Video
Generate videos from text prompts
Image to Video
Animate images into videos
Async Processing
Submit tasks and poll for results
Credits Billing
Pay per video with your credits
Quick Start
cURL Example
curl -X POST https://shortra.com/api/v1/videos/generations \
-H "Authorization: Bearer sk_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"model": "sora-2",
"prompt": "A cat dancing in the rain",
"duration": 10,
"aspect_ratio": "16:9"
}'