GRGlobalRouter Docs
Console

Videos / GET

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 list

Request parameters

FieldTypeRequiredDescription
AuthorizationheaderyesBearer API key with tasks scope.
jobIdpathyesVideo 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

FieldTypeRequiredDescription
idstringyesGlobalRouter video generation job ID.
polling_urlstringyesRelative URL for polling the job.
statusstringyespending, in_progress, completed, failed, cancelled, or expired.
errorstringnoFailure message when available.
generation_idstringnoUpstream provider generation ID when available.
unsigned_urlsstring[]noGlobalRouter artifact URLs for completed jobs.
usageobjectnoUsage summary with cost and optional BYOK status.
usage.prompt_tokensintegernoProvider input token usage when available.
usage.completion_tokensintegernoProvider output token usage when available.
usage.total_tokensintegernoProvider total token usage used by token-based pricing rules.
usage.costnumbernoGlobalRouter computed cost for the request.
usage.currencystringnoBilling currency, for example USD on overseas BytePlus routes.

Response example

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.