GET
https://octopusx.ai
/
v1
/
videos
/
{task_id}
Sora Task Query
curl --request GET \
  --url https://octopusx.ai/v1/videos/{task_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "task_id": "<string>"
}
'
{
  "id": "video_abc123",
  "object": "video",
  "model": "sora-2",
  "status": "queued",
  "progress": 0,
  "created_at": 1735689600,
  "completed_at": 0,
  "expires_at": 1735776000,
  "seconds": "10",
  "size": "720x1280",
  "remixed_from_video_id": "",
  "error": {
    "message": "",
    "code": ""
  },
  "video_url": ""
}

Sora Task Query

OpenAI-format query entry point. If the task was submitted via POST /v1/video/create, please use Query Task. After Sora-series tasks are submitted, query them via GET /v1/videos/{task_id}. The corresponding route layer is videoV1Router.GET("/videos/:task_id", controller.RelayTaskFetch) in router/video-router.go.
  • The query path is GET /v1/videos/{task_id}.
  • A successful response returns an OpenAI-style video object.
  • After the task is completed, the result can usually be read from video_url; if it is missing, the server may also provide a proxied /v1/videos/{task_id}/content address.

Method and Path

GET /v1/videos/{task_id}

Request Example

curl https://octopusx.ai/v1/videos/video_abc123 \
  -H "Authorization: Bearer YOUR_API_KEY"

Response Example

{
  "id": "video_abc123",
  "object": "video",
  "model": "sora-2",
  "status": "queued",
  "progress": 0,
  "created_at": 1735689600,
  "completed_at": 0,
  "expires_at": 1735776000,
  "seconds": "10",
  "size": "720x1280",
  "remixed_from_video_id": "",
  "error": {
    "message": "",
    "code": ""
  },
  "video_url": ""
}

Authentication

Authorization: Bearer YOUR_API_KEY

Path Parameters

task_id
string
required
Video task ID.

Response

id
string
Task ID.
object
string
Always video.
status
string
Task status. Common values include queued, processing, completed, failed, and cancelled.
progress
integer
Progress percentage.
seconds
string
Output duration.
size
string
Output dimensions.
video_url
string
Video result URL.