Base URL:
https://platform.runblob.ioPOST /v1/sora/generate
Creates a video generation task from text description using Sora 2 AI model.Text description of the video (1-4000 characters)
Video orientation:
"9:16" (portrait) or "16:9" (landscape)Duration:
10 or 15 secondsWebhook URL for completion notifications (must be valid HTTPS URL)
Base64-encoded image for Image-to-Video (max 10MB, JPEG/PNG/WEBP)
URL of image for Image-to-Video (alternative to
image_base64)Response
UUID of the generation task for status checking
Initial status, always
"pending"Amount charged in USD
Video generation typically takes 5-15 minutes. Use the
generation_id to check status or set up webhooks for notifications.Generation Modes
The API supports 2 generation modes:1. Text-to-Video
Generate video from text prompt only (no images).2. Image-to-Video
Animate a single image with text prompt usingimage_base64 or image_url parameter.
- Formats: JPEG, PNG, WEBP
- Max size: 10 MB
- Either
image_base64ORimage_url(not both)
Orientation Options
9:16 - Portrait (Default)
9:16 - Portrait (Default)
Best for:
- Mobile/vertical content
- Instagram Reels, TikTok, YouTube Shorts
- Social media stories
16:9 - Landscape
16:9 - Landscape
Best for:
- Desktop/horizontal content
- YouTube videos
- Traditional video platforms
- Cinematic content
Duration Options
| Duration | Use Case | Price Factor |
|---|---|---|
| 10 seconds | Quick clips, social media | Standard |
| 15 seconds | Extended content, storytelling | Higher |
Longer durations take more time to generate and cost more credits.