Get video status
Read an OpenRouter-compatible video generation job.
GET /api/v1/videos/{jobId}
Requires a Bearer API key with tasks scope. The jobId path parameter must be at least 1 character. Query parameters are not accepted for this compatibility endpoint.
Back to Videos endpoint listRequest parameters
| Field | Type | Required | Description |
|---|---|---|---|
Authorization | header | yes | Bearer API key with tasks scope. |
jobId | path | yes | Video generation job ID, at least 1 character. |
Request examples
curl "https://api.globalrouter.com/api/v1/videos/job_123" \ -H "Authorization: Bearer $GR_API_KEY"
Response fields
| Field | Type | Required | Description |
|---|---|---|---|
id | string | yes | GlobalRouter video generation job ID. |
polling_url | string | yes | Relative URL for polling the job. |
status | string | yes | pending, in_progress, completed, failed, cancelled, or expired. |
error | string | no | Failure message when available. |
generation_id | string | no | Upstream provider generation ID when available. |
unsigned_urls | string[] | no | GlobalRouter artifact URLs for completed jobs. |
usage | object | no | Usage summary with cost and optional BYOK status. |
usage.prompt_tokens | integer | no | Provider input token usage when available. |
usage.completion_tokens | integer | no | Provider output token usage when available. |
usage.total_tokens | integer | no | Provider total token usage used by token-based pricing rules. |
usage.cost | number | no | GlobalRouter computed cost for the request. |
usage.currency | string | no | Billing currency, for example USD on overseas BytePlus routes. |
Response example
{
"id": "job_123",
"polling_url": "/api/v1/videos/job_123",
"status": "completed",
"generation_id": "gen_123",
"unsigned_urls": ["https://api.globalrouter.com/api/v1/videos/job_123/content?index=0"],
"usage": {
"cost": 0.000468,
"currency": "USD",
"prompt_tokens": 0,
"completion_tokens": 108900,
"total_tokens": 108900,
"is_byok": false
}
}Notes
- Poll the GlobalRouter id returned by creation, not the native task_id or generation_id. No query parameters (including provider) are accepted; the saved task selects its provider. The response below is the unified platform response, not a native provider envelope.
- Wan official query: GET /api/v1/tasks/{task_id}; output.task_status PENDING/RUNNING/SUCCEEDED/FAILED maps to pending/in_progress/completed/failed. Native output.video_url is exposed through platform artifact URLs in unsigned_urls. Source: https://help.aliyun.com/en/model-studio/wan3-video-generation-api-reference.
- Kling legacy official query: GET /v1/videos/text2video/{task_id} (image tasks use image2video). data.task_status submitted/processing/succeed/failed maps to pending/in_progress/completed/failed; data.task_result.videos[].url becomes platform artifact URLs. Source: https://kling.ai/document-api/apiReference/model/textToVideo.
- Provider usage is reported as tokens; GlobalRouter computes cost from configured pricing_rules.
- With SR, the response exposes one final video: the enhanced video on success or the original video when SR fails.