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/generations is the base URL

  • <API_KEY> is your API Key generated in API page.

  • model is the model name, such as veo3-fast, available model list can be access in Model page.

  • prompt is the prompt.

  • output_format indicate the output format, default value is url.

    • url


Example response

{
    "data": [
        {
            "url": "https://resource.trustai.sg/video/generated%2Fonerouter_1f529cbd-f675-40a6-89aa-00b16de35cfe.mp4",
            "revised_prompt": ""
        }
    ],
    "created": 1760347750
}

Last updated