Skip to main content

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.

FieldTypeDescription
fileUrlstringPublic URL of the document (PDF, DOCX, PPTX, Keynote, TXT). Required
filenamestringIts file name; the extension decides how it is read. Required
instructionsstringAudience, tone, what to focus on
languagestringNarration language code from GET /v1/languages. Detected from the document when omitted
projectIdstringProject folder for the video
contentStylestringWhat the video is for: training (default), how-to, sop, promotional or announcement. See Content style
productNamestringThe product's name, used by promotional
pacestringsnackable, course (default) or inDepth. See Pace. Videos made here start with captions off at every pace
filmobject{ "qualityId": "motion", "styleId": "isometric" }: designs and animates every scene. Not with aiVideo. See Designed scenes
aiVideoobject{ "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.

ValueWhat you get
trainingThe default. Teaches the why behind each point
how-toThe steps to finish one task, nothing more
sopFormal, exact wording for a procedure
promotionalA 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
announcementWhat'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.

FieldValues
qualityIdmotion (150 credits per minute in total) or premium (200, with more detail per scene)
styleIdmatch-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​

StatusCodeCause
400validation_errorMissing fileUrl or filename, an unknown pace or style, film with aiVideo, or a private URL
403limit_exceededNot enough credits, aiVideo on a plan without it, or film on an unpaid plan
404not_foundprojectId isn't a folder in this workspace