Skip to content
中文

Retrieve video

Call Create video first and replace video_123 with its ID; poll until completed before downloading.

GET/openai/v1/videos/{video_id}● Supported

Official OpenAI docs ↗

Request parameters

  • video_idstringrequired

    path: Id of the video job whose output you want, the id returned by createVideo. The job must be completed; before that the call answers 400.

Returns

200 video

Reads the job's current status and progress. Keep polling while status is queued or in_progress, inspect error when it is failed, and download the content only once it is completed. An unknown job returns 404.

Errors follow the OpenAI format — see error codes

Request

curl
# Call Create video first and replace video_123 with its ID; poll until completed before downloading.
curl https://api.deepraxis.com/openai/v1/videos/video_123 \
  -H "Authorization: Bearer $PRAXIS_API_KEY"
Python
# Call Create video first and replace video_123 with its ID; poll until completed before downloading.
from openai import OpenAI

client = OpenAI(
    base_url="https://api.deepraxis.com/openai/v1",
    api_key="$PRAXIS_API_KEY",
)

video = client.videos.retrieve("video_123")
TypeScript
// Call Create video first and replace video_123 with its ID; poll until completed before downloading.
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.deepraxis.com/openai/v1",
  apiKey: "$PRAXIS_API_KEY",
});

const video = await client.videos.retrieve("video_123");

Response 200

{
  "id": "vjob_2f7b73157212463da76762b0",
  "object": "video",
  "model": "wan2.7-t2v",
  "status": "completed",
  "progress": 100,
  "created_at": 1791870977,
  "completed_at": 1791871710,
  "expires_at": null,
  "seconds": "4",
  "size": "1280x720",
  "prompt": "A cat stretching in the morning sun",
  "remixed_from_video_id": null,
  "error": null,
  "polling_url": "/model/v1/videos/vjob_2f7b73157212463da76762b0",
  "unsigned_urls": [
    "/model/v1/videos/vjob_2f7b73157212463da76762b0/content"
  ],
  "usage": {
    "cost": 0.5928
  }
}

Response

HTTP 200

Success

application/json

Name Type Description
id string Id of the video job; pass it as video_id to retrieve, download or delete it.
object string Object type; always video.
model string Model that generates the video.
status string Lifecycle of the job. Poll until it is completed or failed.
progress integer Progress from 0 to 100. It is 0 until the job completes and 100 once it has.
created_at integer Unix time in seconds at which the job was created.
completed_at integer | null Unix time in seconds at which the job completed; null until then.
expires_at integer | null Unix time in seconds after which the output expires; null because outputs currently have no expiry.
seconds string Length of the video in seconds, as a string; for a completed job it is the delivered length.
size string Resolution of the video as WIDTHxHEIGHT; null when the provider did not report one.
prompt string | null Prompt the job was created with.
remixed_from_video_id null Always null; remix is not supported.
error object | null Why the job failed; null unless status is failed.
error.code string Machine-readable failure code.
error.message string Human-readable failure message.
polling_url string Relative URL to poll for the job state; same as retrieveVideo for this job.
unsigned_urls array<string> Relative URLs of the finished output; empty until the video is ready. Download them with the same API key.
usage object Cost of the job; present once a price applies.
usage.cost number Cost of the job in USD: billed seconds times the per-second price once completed, 0 while running. Billed seconds are the delivered seconds, except for a job with input_videos (see billed_seconds).
usage.billed_seconds integer Only on a completed job with input_videos: the seconds it is billed for. The model meters input plus output seconds at a lower rate, converted here to seconds of the delivered resolution, so it can exceed seconds.