Create a Video from a Document
POST /v1/videos/from-document
Turns one document into one finished video, unattended. The document is read page by page, planned, storyboarded and built into a video made of editable slides, each with its own AI narration. It's the API version of uploading a document in the dashboard's Create popup.
Want several videos from one long document instead? Use Courses.
| Field | Type | Description |
|---|---|---|
fileUrl | string | Public URL of the document (PDF, DOCX, PPTX, Keynote, TXT). Required |
filename | string | Its file name; the extension decides how it is read. Required |
instructions | string | Audience, tone, what to focus on |
language | string | Narration language code from GET /v1/languages. Detected from the document when omitted |
projectId | string | Project folder for the video |
contentStyle | string | What the video is for: training (default), how-to, sop, promotional or announcement. See Content style |
productName | string | The product's name, used by promotional |
pace | string | snackable, course (default) or inDepth. See Pace. Videos made here start with captions off at every pace |
film | object | { "qualityId": "motion", "styleId": "isometric" }: designs and animates every scene. Not with aiVideo. See Designed scenes |
aiVideo | object | { "enabled": true, "stylePresetId": "documentary" }: builds the video from AI footage: a full-frame clip on nearly every scene, with the slide title on top. Steps and safety rules stay as text. Business and Enterprise only. Not with film. See AI video |
curl -X POST https://api.vidocu.ai/v1/videos/from-document \
-H "Authorization: Bearer vdo_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"fileUrl": "https://example.com/forklift-sop.pdf",
"filename": "forklift-sop.pdf",
"pace": "snackable"
}'
Response 202 Accepted
{ "jobId": "doc_express_...", "videoId": "3f1c...", "status": "in_progress", "async": true }
The video exists right away with status in_progress. Poll GET /v1/jobs/:id; when the
job completes, the video is ready to export, translate or edit.
The document is fetched by our servers, so it must be publicly reachable. Internal and private addresses are refused.
Content style
By default a document becomes a lesson: it explains, step by step. A brochure, product sheet or sales deck usually needs the opposite: a short video that makes its reader want what it offers.
| Value | What you get |
|---|---|
training | The default. Teaches the why behind each point |
how-to | The steps to finish one task, nothing more |
sop | Formal, exact wording for a procedure |
promotional | A marketing video, 45-90 seconds. It opens on the buyer and what they want, gives one gain per scene with the feature as proof, skips technical detail, and closes on your brand and the document's call to action |
announcement | What's new and what it unlocks |
Every style keeps to the document's facts: nothing is invented, whatever the tone.
Designed scenes
Add film to design and animate every scene, each one written and rendered for this document.
This is for paying customers, and takes about 15 minutes. A video is either designed scenes or
AI footage, so film can't be combined with aiVideo.
| Field | Values |
|---|---|
qualityId | motion (150 credits per minute in total) or premium (200, with more detail per scene) |
styleId | match-document (default), isometric, news-desk, blueprint, swiss-motion, risograph, whiteboard, paper-popup, transit-map or dark-keynote |
A scene that can't be made stays a plain slide and isn't charged the extra rate.
Credits
The run is charged as a course plan plus one module build (doc_video_plan, and
doc_video_generate at 50 credits per minute of the finished video), and with AI video, each AI
picture and clip (ai_footage_still, ai_footage_clip). Before the run starts, the balance has to
cover a typical-length video for the pace plus the most the AI pictures can cost. With film,
it adds doc_video_film_motion or doc_video_film_premium per minute of designed scenes, and the
balance has to cover the longest video the pace allows.
Errors
| Status | Code | Cause |
|---|---|---|
| 400 | validation_error | Missing fileUrl or filename, an unknown pace or style, film with aiVideo, or a private URL |
| 403 | limit_exceeded | Not enough credits, aiVideo on a plan without it, or film on an unpaid plan |
| 404 | not_found | projectId isn't a folder in this workspace |