playVideo

Generate Video

post

Generates videos from text prompts or images. Supports 18+ models from Google, OpenAI, Kling AI, Runway, and others. Asynchronous generation - poll /getVideoResponse with taskId to retrieve results.

Authorizations
AuthorizationstringRequired

FastRouter API Key. Get yours at https://fastrouter.ai

Format: Authorization: Bearer YOUR_API_KEY

Body
modelstring · enumRequired

Video generation model in provider/model format. See documentation for full list of supported models.

Example: google/veo2Possible values:
promptstringRequired

Natural language description of the video scene to generate

Example: A casual street interview on a busy Bengaluru IT park sidewalk in the afternoon
imagestring · uriOptional

URL of an input image for image-to-video generation. Only URLs supported (no base64). Formats: JPG, PNG, JPEG. Aspect ratio must be 1:4 to 4:1. Required for some models.

Example: https://example.com/image.jpg
lengthinteger · enumOptional

Duration of the video in seconds. Supported values vary by model: 4, 5, 6, 8, 10, or 12.

Example: 8Possible values:
secondsinteger · enumOptional

Duration in seconds (used by Sora models). Supported: 4, 8, or 12.

Example: 8Possible values:
resolutionstring · enumOptional

Output video resolution

Example: 1080pPossible values:
aspectRatiostring · enumOptional

Width-to-height ratio of the video frame

Example: 16:9Possible values:
sizestring · enumOptional

Video dimensions (used by Sora models)

Example: 1280x720Possible values:
modestring · enumOptional

Generation style/mode (if supported by model)

Example: stdPossible values:
seedintegerOptional

Random seed for deterministic output (optional; useful for reproducibility)

Example: 42
generateAudiobooleanOptional

Generate audio track for the video (supported by some models)

Example: true
Responses
post
/videos

Retrieve Video Results

post

Retrieves asynchronous video generation results. Poll with taskId from /videos request until status is succeed/completed, then download from provided URL.

Authorizations
AuthorizationstringRequired

FastRouter API Key. Get yours at https://fastrouter.ai

Format: Authorization: Bearer YOUR_API_KEY

Body
taskIdstringRequired

The taskId or id returned from the initial /videos request

Example: taskabc123
modelstringRequired

The model used for video generation (must match original request)

Example: google/veo2
Responses
post
/getVideoResponse

Last updated