Skip to content

Image to Video

Animate static images into dynamic video sequences using the Siraya AI Image to Video API. This endpoint supports high-fidelity animation using leading video models.

How to Generate Videos from Images

To generate a video from an image, provide the image URL along with a prompt describing the desired motion or context.

API Specification

curl https://video.siraya.pro/v1/videos/generations \
  -H "Content-Type: application/json" \
  -H "Authorization: <API_KEY>" \
  -d '{
    "model": "sora-2-pro-image-to-video",
    "prompt": "A cute baby sea otter swimming happily",
    "image_url": "https://resource.siraya.pro/image/input.png",
    "output_format": "url"
  }'
import requests

url = "https://video.siraya.pro/v1/videos/generations"
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <API_KEY>"
}
data = {
    "model": "sora-2-pro-image-to-video",
    "prompt": "A cute baby sea otter swimming happily",
    "image_url": "https://resource.siraya.pro/image/input.png",
    "output_format": "url"
}

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

Request Parameters

Parameter Type Default Description
model string - The ID of the model (e.g., sora-2-pro-image-to-video).
prompt string - Text description of the desired animation or context.
image_url string - The URL of the input image to use as the first frame.
output_format string url The output format (defaults to url).

Example Response

{
    "data": [
        {
            "url": "https://resource.siraya.pro/video/generated%2Fsiraya_vid.mp4",
            "revised_prompt": "",
            "video_id": "video_abc123"
        }
    ],
    "created": 1761381533
}

Visit the Models Directory to find more supported image-to-video models.