Skip to main content

Get Video Task Status

Query the local status of an OpenAI/Sora-compatible video task. The task ID comes from the id field returned by Create Video.

Try It

GET/v1/videos/{task_id}https://api-platform.ope.ai

Endpoints

EndpointAuthPurpose
GET /v1/videos/{task_id}Authorization: Bearer <api-key>Query your own video task with an API key
GET /api/videos/{task_id}token: <jwt>Frontend-token proxy query

Use the token header for a normal frontend JWT. Admin JWTs may use Authorization: Bearer <jwt>.

Authentication

Use Bearer token authentication.

  • Header: Authorization: Bearer <api-key>
  • Example: Authorization: Bearer sk-xxxxxx

Path Parameters

ParameterTypeRequiredDescription
task_idstringYesVideo task ID

Request Examples

curl -X GET "https://api-platform.ope.ai/v1/videos/{task_id}" \
-H "Authorization: Bearer $OPEAI_API_KEY"

Response Example

Task statuses come from the platform task table. Common values include NOT_START, SUBMITTED, QUEUED, IN_PROGRESS, SUCCESS, FAILURE, and UNKNOWN. When the status is SUCCESS, you can request the video content.

{
"id": "video_690d9b52e2b081908a05ded32cbfc629",
"status": "SUCCESS",
"model": "sora-2",
"created_at": 1762499410,
"object": "video",
"prompt": "Create a short high-definition tech-style video showing AI video generation capabilities.",
"size": "720x1280"
}