API Documentation

openai query task

Endpoint: GET https://tkhub.lol/v1/videos/{id}

Query tasks submitted via POST /v1/videos/generations or POST /v1/videos/edits. Use the request_id returned at submission as the id in the path.

status: pending in progress (progress 0–99), done finished (video.url is the video URL), failed failed (see error), expired expired. The model field is the model name you submitted (e.g. grok-1.5-video). Polling every 5 seconds is recommended.

Query tasks submitted via POST /v1/videos. Use the id returned at submission (e.g. task_xxx) as the id in the path.

status: queued, in_progress, completed (video_url is the video URL), failed. Polling every 5 seconds is recommended.

Parameters

  • id (path, string, required): Task ID: request_id for generations / edits, or the id returned by POST /v1/videos
  • Content-Type (header, string, required): Request body Content-Type, usually application/json
  • Accept (header, string, required): Expected response Content-Type
  • Authorization (header, string): Bearer API Key
  • X-Forwarded-Host (header, string): Forwarded original Host (proxy scenario)