Image to Video
How to Generate videos using the OneRouter API
curl https://video.onerouter.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",
"image_url": "https://resource.onerouter.pro/image/generated%2Fonerouter_fe4771ae-d67c-41bb-a366-b07f1411ae06.png"
"output_format": "url"
}'https://image.onerouter.pro/v1/images/generationsis the base URL<API_KEY>is your API Key generated in API page.modelis the model name, such assora-2-pro-image-to-video, available model list can be access in Model page.promptis the text prompt describing the video you want to generatep.image_urlis the URL of the image to use as the first frameoutput_formatindicate the output format, default value isurl.url
You can find more models and their descriptions in the Model page.
Example response
Last updated