API Endpoint URL
Base URL for all API requests to this endpoint.
https://modelslab.com/api/v7/video-fusion/text-to-video
API Authentication
Authentication requires a valid API key included in the request. Generate and manage your API keys from your developer dashboard. Include the key in the key parameter for all API requests.
Integration Examples
Production-ready code samples for API integration
{"prompt": "Ultra-cinematic aerial chase between two futuristic fighter jets from rival nations, high above the clouds at sunset. One jet is dark stealth black, the other silver with blue accents. They perform extreme maneuvers, leaving vapor trails across the sky. Camera begins with a wide aerial shot of the glowing horizon, then smoothly transitions to a close-up tracking shot behind the black jet’s engines. Missiles are fired, narrowly missing as explosions illuminate the clouds in slow motion. The camera shifts to the cockpit view, showing the pilot’s intense eyes and HUD interface. Dramatic orchestral music tone, golden sunlight reflecting on metal surfaces, high realism, smooth transitions, 4K film quality, dynamic motion, intense dogfight atmosphere.","aspect_ratio": "16:9","model_id": "sora-2","duration": "4","key": "YOUR_API_KEY"}
SDKs
Official SDKs
Production-ready SDKs and client libraries for all major programming languages
API Parameters
Technical specifications for API request parameters.
| Field Name | Parameter | Technical Description |
|---|---|---|
| Prompt | prompt | Text description of the image you want to generate |
| Aspect Ratio | aspect_ratio | The aspect ratio of the generated video — 16:9 is wide |
| Model | model_id | Model to use for generation |
| Duration | duration | Sora-2 accept 4,8 & 12 sec duration |
