Skip to content

Text to Video

Siraya Model Router simplifies video generation by providing a unified API for various state-of-the-art video models. Generate high-quality video content from simple text descriptions.

POST https://llm.siraya.ai/v1/videos/generations
Authorization string Required
Your API Key (e.g., Bearer <API_KEY>).

Body

model string Required
The ID of the video model (e.g., veo3-fast, sora-2).
prompt string Required
A descriptive text prompt for the video content.
seconds integer
The duration of the video in seconds (model-specific).
negative_prompt string
Negative prompt describing content to exclude.
seed integer
Random seed for reproducibility. The same seed produces the same video.
size string
The size of the generated video (e.g., 16:9, 9:16).
extra_body object
Model-specific parameters passed directly to the provider.
curl https://llm.siraya.ai/v1/videos/generations \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <API_KEY>" \
  -d '{
    "model": "veo3.1",
    "prompt": "A cute baby sea otter playing in the water"
  }'
import requests

url = "https://llm.siraya.ai/v1/videos/generations"
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <API_KEY>"
}
data = {
    "model": "veo3.1",
    "prompt": "A cute baby sea otter playing in the water",
}

response = requests.post(url, headers=headers, json=data)
print(response.json())

Example Response

{
    "data": [
        {
            "url": "https://resource.siraya.ai/video/generated%2Fsiraya_123.mp4",
            "revised_prompt": ""
        }
    ],
    "created": 1760347750
}

Check our Available Models List for all supported text-to-video engines.