VIDEOS
Download Video Content
Stream the generated MP4 for a completed video. Available once the job's status is completed; supports Range requests for seeking and resumable downloads.
GET/v1/videos/{video_id}/content
Authorization
AuthorizationstringheaderrequiredBearer token — your API key. Example: Bearer sk-...
Request
import OpenAI from "openai";
import { writeFile } from "node:fs/promises";
const client = new OpenAI({
apiKey: "your-scx-api-key",
baseURL: "https://api.scx.ai/v1",
});
const res = await client.videos.downloadContent("video_9f6c2c4e");
await writeFile("clip.mp4", Buffer.from(await res.arrayBuffer()));import OpenAI from "openai";
import { writeFile } from "node:fs/promises";
const client = new OpenAI({
apiKey: "your-scx-api-key",
baseURL: "https://api.scx.ai/v1",
});
const res = await client.videos.downloadContent("video_9f6c2c4e");
await writeFile("clip.mp4", Buffer.from(await res.arrayBuffer()));Response
{
"error": {
"message": "video 'video_9f6c2c4e' has no downloadable content",
"type": "not_found_error"
}
}{
"error": {
"message": "video 'video_9f6c2c4e' has no downloadable content",
"type": "not_found_error"
}
}