Skip to content
中文

Download video content

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

GET/model/v1/videos/{video_id}/content● Supported

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.

  • variantanyoptional◐ Partially supported
    default "video"

    query: Spritesheet is not available in this release (400).

    video and thumbnail work; spritesheet returns 400.

    values videothumbnailspritesheet
  • indexintegeroptional◐ Partially supported

    query: Output index; this release produces index 0. variant takes precedence.

    Video supports index=0 only; positive or negative indices return 400. With variant=thumbnail, index is accepted but currently ignored.

Returns

200

Billed per second of output video; GET /model/v1/models exposes pricing.video_second in USD per second.

Platform errors (auth, rate limits, validation) and OCR errors use problem+json; other model call errors follow the endpoint's own format (OpenAI or Anthropic) — 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/model/v1/videos/video_123/content \
  -H "Authorization: Bearer $PRAXIS_API_KEY" --output video.mp4
Python
# Call Create video first and replace video_123 with its ID; poll until completed before downloading.
import requests

opts = dict(
    base_url="https://api.deepraxis.com/model/v1",
    api_key="$PRAXIS_API_KEY",
)

response = requests.request("GET", f"{opts['base_url']}/videos/video_123/content",
    headers={"Authorization": f"Bearer {opts['api_key']}"}
)
response.raise_for_status()
with open("video.mp4", "wb") as output:
    output.write(response.content)
TypeScript
// Call Create video first and replace video_123 with its ID; poll until completed before downloading.
const opts = {
  baseURL: "https://api.deepraxis.com/model/v1",
  apiKey: "$PRAXIS_API_KEY",
};

const response = await fetch(`${opts.baseURL}/videos/video_123/content`, {
  method: "GET",
  headers: { Authorization: `Bearer ${opts.apiKey}` },
});
if (!response.ok) throw new Error(await response.text());
await import("node:fs/promises").then(async fs => fs.writeFile("video.mp4", Buffer.from(await response.arrayBuffer())));

Response

HTTP 200

Video or thumbnail bytes

video/mp4

Name Type Description
$ string (binary)

image/jpeg

Name Type Description
$ string (binary)

First create a video and save its id. Poll status while queued / in_progress; stop and inspect error if failed. Download content only after completed.