Video
Generates videos from text prompts or images. Supports 18+ models from Google, OpenAI, Kling AI, Runway, Pollo, and others. Asynchronous generation — poll POST /api/v1/getAsyncResponse with taskId to retrieve results. The same request body (model, prompt, image, length, resolution) can also be sent to POST /api/v1/chat/completions when using a video model.
Tip: Supported parameters and their accepted values differ from one model to another. Call GET /api/v1/models and inspect each model's
supported_parametersandsupported_params_detailsto see exactly which fields it accepts and the allowed values, ranges, or enums.
FastRouter API Key. Get yours at https://fastrouter.ai
Format: Authorization: Bearer YOUR_API_KEY
Video generation model in provider/model format. The supported model list changes over time — call GET /api/v1/models for the authoritative, up-to-date set.
google/veo2Possible values: Natural language description of the video scene to generate
A casual street interview on a busy Bengaluru IT park sidewalk in the afternoonURL 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.
https://example.com/image.jpgDuration of the video in seconds. Supported values vary by model: 4, 5, 6, 8, 10, or 12.
8Possible values: Duration in seconds (used by Sora models). Supported: 4, 8, or 12.
8Possible values: Output video resolution
1080pPossible values: Width-to-height ratio of the video frame
16:9Possible values: Video dimensions (used by Sora models)
1280x720Possible values: Generation style/mode (if supported by model)
stdPossible values: Random seed for deterministic output (optional; useful for reproducibility)
42Generate audio track for the video (supported by some models)
trueVideo generation task queued successfully
Bad Request - Invalid parameters or model
Invalid Credentials - Your API key is invalid, missing, or disabled. Check your credentials.
Note: the 401 error body uses code, message, param, and type (there is no status field), and type is invalid_request_error.
Rate Limited - You have exceeded your request limits (TPM/RPM). Slow down or increase your limits.
Internal Server Error
POST /api/v1/videos HTTP/1.1
Host: api.fastrouter.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 108
{
"model": "google/veo2",
"length": 8,
"prompt": "A casual street interview on a busy sidewalk in the afternoon."
}{
"chat_id": "fr_123",
"model": "google/veo2",
"code": "SUCCESS",
"message": "success",
"data": {
"taskId": "taskabc123",
"status": "waiting"
},
"usage": {
"chat_id": "fr_123",
"prompt_tokens": 0,
"completion_tokens": 0,
"total_tokens": 0,
"user_key_credits_used": 6,
"credits_used": 6,
"provider": "google"
}
}Note: FastRouter supports both GET (recommended) and POST endpoints for retrieving generated videos.
Retrieves the status and result of an asynchronous video generation by its task_id (returned from POST /api/v1/videos).
Poll this endpoint until generation completes. Response shape varies by provider:
Pollo — per-generation fields (
id,createdDate,updatedDate,status,url,mediaType).Kling — top-level
data.statusiscompleted; each generation hasdurationandurl.Veo (Google) — top-level
data.statusiscompleted; each generation hasbytesBase64Encoded(base64 video). Usefastrouter_assets.urlsfor the hosted download URL.
When complete, download from generations[].url or fastrouter_assets.urls.
FastRouter API Key. Get yours at https://fastrouter.ai
Format: Authorization: Bearer YOUR_API_KEY
The task ID returned from POST /api/v1/videos.
fr_01KVQPTPABZE4X65NXTW485BVDVideo generation status / result
FastRouter transaction ID for this generation.
Response code.
successVideo generation completedInvalid Credentials - Your API key is invalid, missing, or disabled. Check your credentials.
Note: the 401 error body uses code, message, param, and type (there is no status field), and type is invalid_request_error.
Task not found or expired
Rate Limited - You have exceeded your request limits (TPM/RPM). Slow down or increase your limits.
Internal Server Error
GET /api/v1/videos/{task_id} HTTP/1.1
Host: api.fastrouter.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"chat_id": "fr_2b42c6fa-b557-43ec-8bb2-d2e9c796ce17",
"code": "SUCCESS",
"message": "success",
"data": {
"taskId": "fr_01KVQPTPABZE4X65NXTW485BVD",
"generations": [
{
"id": "cmqp879vq02n27b7a4tg0p46r",
"createdDate": "2026-06-22T13:03:02.000Z",
"updatedDate": "2026-06-22T13:04:47.000Z",
"status": "succeed",
"failMsg": "",
"url": "https://videocdn.pollo.ai/web-cdn/pollo/production/cmclloj8c02fsdxsks89w7818/ori/1782133476836-4684a28d-168b-4830-abf1-a8adbc0d52d7.mp4",
"mediaType": "video"
}
]
},
"fastrouter_assets": {
"status": "ready",
"urls": [
"https://api.fastrouter.ai/videos-content/fr_01KVQPTPABZE4X65NXTW485BVD"
],
"expires_at": 1784725528,
"cached_at": 1782133528
},
"usage": {
"user_key_credits_used": 0.504,
"api_key_credits_used": 0,
"credits_used": 0.504,
"provider": "pollo"
}
}Polls for asynchronous video generation results. Poll with the taskId returned from POST /api/v1/videos until status is succeed or completed, then download from the provided URL.
taskId and model rules:
If
taskIdincludes a provider prefix (e.g.pol_for Pollo), then model is optional.If
taskIdhas no provider prefix, then model is required and must match the model used in the original /videos request.
Response shape varies by provider:
Pollo — per-generation
id,createdDate,status,url, etc.Kling —
data.status: completed; generations havedurationandurl.Veo (Google) —
data.status: completed; generations havebytesBase64Encoded. Usefastrouter_assets.urlsfor download.Sora — OpenAI-style response with
progress,status, etc.
FastRouter API Key. Get yours at https://fastrouter.ai
Format: Authorization: Bearer YOUR_API_KEY
The taskId returned from POST /api/v1/videos. When it includes a provider prefix (e.g. pol_ for Pollo), model can be omitted.
pol_cmm22zlht0bqsc5uw50j8aw5qThe video model used in the original /videos request. Required when taskId has no provider prefix; optional when taskId has a provider prefix (e.g. pol_).
google/veo2Video generation status or completed video
Bad Request - Invalid taskId or model
Invalid Credentials - Your API key is invalid, missing, or disabled. Check your credentials.
Note: the 401 error body uses code, message, param, and type (there is no status field), and type is invalid_request_error.
Not Found - Invalid taskId or expired result
Rate Limited - You have exceeded your request limits (TPM/RPM). Slow down or increase your limits.
Internal Server Error
POST /api/v1/getAsyncResponse HTTP/1.1
Host: api.fastrouter.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 42
{
"taskId": "pol_cmm22zlht0bqsc5uw50j8aw5q"
}{
"chat_id": "fr_2b42c6fa-b557-43ec-8bb2-d2e9c796ce17",
"code": "SUCCESS",
"message": "success",
"data": {
"taskId": "fr_01KVQPTPABZE4X65NXTW485BVD",
"generations": [
{
"id": "cmqp879vq02n27b7a4tg0p46r",
"createdDate": "2026-06-22T13:03:02.000Z",
"updatedDate": "2026-06-22T13:04:47.000Z",
"status": "succeed",
"failMsg": "",
"url": "https://videocdn.pollo.ai/web-cdn/pollo/production/cmclloj8c02fsdxsks89w7818/ori/1782133476836-4684a28d-168b-4830-abf1-a8adbc0d52d7.mp4",
"mediaType": "video"
}
]
},
"fastrouter_assets": {
"status": "ready",
"urls": [
"https://api.fastrouter.ai/videos-content/fr_01KVQPTPABZE4X65NXTW485BVD"
],
"expires_at": 1784725528,
"cached_at": 1782133528
},
"usage": {
"user_key_credits_used": 0.504,
"api_key_credits_used": 0,
"credits_used": 0.504,
"provider": "pollo"
}
}Last updated
