GRGlobalRouter Docs
Console

Videos / POST

Create video

Create an OpenRouter video task.

endpoint list

Mobile view shows the endpoint list. Use desktop view for parameters and examples.

MethodEndpointDescription
POST/api/v1/videosCreate an OpenRouter video task.
GET/api/v1/videos/modelsList models available for OpenRouter video generation.
GET/api/v1/videos/{jobId}Query OpenRouter video task status.
GET/api/v1/videos/{jobId}/contentRead artifact content from a completed OpenRouter video task.
POST/api/v1/videos

Create an asynchronous video task and return a job ID. For final billing, read upstream usage.cost or generation metadata after task completion.

Back to Videos endpoint list

Request parameters

FieldTypeRequiredDescription
modelstringYesSee the OpenAPI schema for field details.
promptstringYesSee the OpenAPI schema for field details.
aspect_ratiostringNoSee the OpenAPI schema for field details.
durationintegerNoSee the OpenAPI schema for field details.
resolutionstringNoSee the OpenAPI schema for field details.
callback_urlstringNoFormat: uri.
providerGrProviderConfigNoGR provider config object used by image/video task calls.
provider.provider_idstringNoSee the OpenAPI schema for field details.
provider.optionsobjectNoSee the OpenAPI schema for field details.
srobjectNoSee the OpenAPI schema for field details.
sr.resolutionstringNoSee the OpenAPI schema for field details.

Response fields

FieldTypeRequiredDescription
idstringNoSee the OpenAPI schema for field details.
generation_idstringNoSee the OpenAPI schema for field details.
statusstringNoAllowed values: pending, running, completed, failed, canceled, timeout.
polling_urlstringNoSee the OpenAPI schema for field details.
unsigned_urlsstring[]NoSee the OpenAPI schema for field details.
usageUsageNousage.cost is the upstream cost fact when present, including 0. GR billing may apply local discounts when writing final cost.
usage.prompt_tokensintegerNoSee the OpenAPI schema for field details.
usage.completion_tokensintegerNoSee the OpenAPI schema for field details.
usage.total_tokensintegerNoSee the OpenAPI schema for field details.
usage.costnumberNousage.cost
usage.is_byokbooleanNoSee the OpenAPI schema for field details.
usage.cost_detailsobjectNoSee the OpenAPI schema for field details.
usage.prompt_tokens_detailsobjectNoSee the OpenAPI schema for field details.
usage.completion_tokens_detailsobjectNoSee the OpenAPI schema for field details.
usage.server_tool_useobjectNoSee the OpenAPI schema for field details.

Errors

401UNAUTHORIZED

Missing or invalid Authorization Bearer token.

403FORBIDDEN

The current API key is not authorized for this scope, model, or management capability.

422VALIDATION_ERROR

The request body, path parameters, or query parameters do not match the endpoint schema.

Notes

  • Use a GlobalRouter API key; upstream OpenRouter API keys are never exposed to tenants.