Text to Video
API Overview
To simplify the integration of different video generation models, OneRouter provides a unified videos API.
API Specification
curl https://video.onerouter.pro/v1/videos/generations \
-H "Content-Type: application/json" \
-H "Authorization: <API_KEY>" \
-d '{
"model": "veo3-fast",
"prompt": "A cute baby sea otter",
"output_format": "url"
}'https://video.onerouter.pro/v1/videos/generationsis the base URL<API_KEY>is your API Key generated in API page.modelis the model name, such asveo3-fast, available model list can be access in Model page.promptis the prompt.output_formatindicate the output format, default value isurl.url
Example response
{
"data": [
{
"url": "https://resource.trustai.sg/video/generated%2Fonerouter_1f529cbd-f675-40a6-89aa-00b16de35cfe.mp4",
"revised_prompt": ""
}
],
"created": 1760347750
}{
"error": {
"message": "error msg.",
"type": "error type (such as content_policy_violation)",
"param": "",
"code": 422
}
}Last updated