Turn slides into a narrated video, one deck or hundreds
Turn a slide deck into a narrated video: a PowerPoint to video, a PDF to video, a deck with a voiceover. You get one image per slide, a narration for each slide, and an editable timeline where each slide stays on screen while its line is spoken. The same steps run for one deck or a folder of decks.
Use invideo for this when you want the slides and the voice on a real timeline, so you can fix one slide or one line later without rebuilding the video.
Quickest path
Set up your agent first with invideo for AI agents. Then give it this prompt.
Make a narrated video from deck.pdf in a new invideo project. One imageper slide. Write a short script for each slide from its text, show me thescript, then voice it with a calm narrator. Hold each slide while its lineplays. Add captions. Show me frames before you export.In a chat app, you drag the deck into the project. In a terminal, your agent names the file or the folder of decks and uploads them.
What you need
These are the inputs your agent asks for.
- The deck as a PDF, or an office file such as PPTX.
- The script, or permission for the agent to write one from the slide text. Speaker notes do not come through
document.pages, so paste them if you want them used. - A voice. Your agent finds one with
search_libraryand sends you the preview. - The shape. Slides are usually 16:9.
- Captions on or off.
Steps
The agent works on a branch, so the main timeline stays clean until you approve.
Bring the deck in
The agent uploads the file with
start_uploadandadd_media. A PDF or office file goes to the project's files, not to a sequence. It sees the file's URL under…/assets, in a dated folder, and uses that URL as it is.Make one image per slide
The agent calls
mediawith opdocument.pageson the file's URL that the upload returned. The dry run shows its price before anything starts. It sees an image sequence of each page on a new thread.Write and approve the script
The agent reads each slide image and writes one short line per slide. It shows you the script before it spends anything. It sees your yes, or your changes.
Voice each slide
- The agent runs
find_modelswith "narration voice", picks one, and reads its inputs withget_model. A good pick iselevenlabs_text_to_speech.elevenlabs_tts_v4, with a voice fromsearch_libraryinelevenlabs_text_to_speech_voices. Your agent can search for others withfind_models. - It calls
generateper slide with the line asprompt, thevoice_idanddry_run: true, and tells you the price. - For a price of 1 credit or more it waits for your yes. Then it calls
generateper slide withmax_creditsset to that price and anidempotency_key, likedeck-slide-01. It gets a thread URL and, when the result lands, one sequence URL per slide. It reads each URL withreadand never callsgenerateagain to check.
- The agent runs
Lay out the timeline
The agent makes a timeline with
new_timeline, creates a branch withtimeline_history, and places each voice clip on an audio track and each slide on a video track withinsert_media. It reads the new clips withget_timeline, then sets each slide's length to its line withtrim_clipin a second call. It sees a newstate_tokenafter eachedit_timelinecall.Add captions if you want them
The agent prices
audio.transcriptwithdry_runon each voice clip's sequence URL and tells you the price. For a price of 1 credit or more it waits for your yes. Then it starts the transcript withmax_creditsset to that price, and calls again afterretry_after_sfor the words. Then it sendsadd_captions. It sees a caption clip on a video track above the slides.Check, then export
The agent calls
captureat a few slide changes andcheck_timeline, thenexportwith formatvideo. It sees an export card with statuscompleted.
The terminal version of the same job:
invideo project new --title "Onboarding deck"invideo asset upload <project-url> ./deck.pdfinvideo media document.pages <deck-url>invideo library search <project-url> \ --library elevenlabs_text_to_speech_voices --query "calm narrator"invideo gen models <project-url> --query "narration voice"invideo gen model <project-url> \ --model elevenlabs_text_to_speech.elevenlabs_tts_v4invideo gen run <page-url> \ --model elevenlabs_text_to_speech.elevenlabs_tts_v4 --dry-run \ -i prompt=@slide-01.txt -i voice_id=<voice-id>invideo gen run <page-url> \ --model elevenlabs_text_to_speech.elevenlabs_tts_v4 \ --max-credits <price> --idempotency-key deck-slide-01 \ -i prompt=@slide-01.txt -i voice_id=<voice-id>invideo status <thread-url> --waitinvideo notebook show <thread-url>invideo edit new <project-url> --name "Onboarding v1"invideo edit show <edit-url> --jsoninvideo branch new <edit-url> --name deck-v1 --token <state_token>invideo edit show <branch-url> --jsoninvideo edit change <branch-url> --timeline T1 \ --token <state_token> --operations @layout.jsoninvideo edit show <branch-url> --jsoninvideo edit change <branch-url> --timeline T1 \ --token <state_token> --operations @lengths.jsoninvideo edit capture <branch-url> --at 2,15,40 --out ./framesinvideo edit check <branch-url>invideo edit export <branch-url> --format video --quality 1080 --jsoninvideo status <card-url> --waitinvideo notebook show <card-url> --out ./outWhere each value comes from:
<project-url>comes frominvideo project new, and<edit-url>frominvideo edit new.<deck-url>is theurlthatinvideo asset uploadreturns for the deck. It sits in a dated folder, so never type the path.<voice-id>comes from thelibrary searchline, a voice ofelevenlabs_text_to_speech.elevenlabs_tts_v4.<page-url>is a notebook page of the project, listed byinvideo notebook show <project-url>.<price>is the dry run's.estimated_credits.<thread-url>is theurlthe paidgen runreturns.notebook showon it lists the voice line's sequence URL.<branch-url>is thebranch_urlthatinvideo branch newreturns.<state_token>comes frominvideo edit showon the URL the next command runs on:<edit-url>forbranch new, then<branch-url>, read again before each change.<card-url>is.sequences[0]of the export answer.invideo statuswaits but saves nothing.invideo notebook showsaves the video as./out/export.mp4, and the agent renames it.
The file behind @layout.json is the bare list of ops that --operations takes. It places one voice line and its slide at the start of the line. The asset values are sequence URLs: the voice take from generate, and the slide image from document.pages.
[ { "op": "insert_media", "asset": "<voice-01-sequence-url>", "track": "A1", "at_f": 0, "ripple": false }, { "op": "insert_media", "asset": "<slide-01-sequence-url>", "track": "V1", "at_f": 0, "ripple": false }]The file behind @lengths.json sets the slide's length to its line, in a second call. to_f is the voice clip's end frame. c2 and its current end, from_f, come from invideo edit show after the first call. from_f must be where the edge is now, as the agent last read it.
[ { "op": "trim_clip", "clip": "c2", "edge": "tail", "from_f": 150, "to_f": 450, "mode": "leave_gap", "linked": false }]Many decks
For a folder of decks, the agent runs the same steps once per deck, one timeline per deck. Run it in parts: a few decks per session, then check those videos before the next batch. The agent keeps a list of which decks are done in a brief made with new_brief, so a new session picks up where the last stopped.
Cost and time
Edits and exports are free. Generation and transcripts cost credits. Paid stock costs a small credit charge, or one of your workspace's iStock licenses. Your agent runs a dry run first and tells you the price before it spends anything.
- Free: every timeline edit,
captureand each export. document.pages: the dry run shows its price before anything starts.- Costs credits: the voice from
elevenlabs_text_to_speech.elevenlabs_tts_v4, andaudio.transcriptif you want captions.
A single deck takes a few minutes of agent time plus the voice generation. A large batch takes hours. See Credits for prices.
If something goes wrong
Most problems are timing or file type.
| Symptom | Fix |
|---|---|
get_model or generate refuses the model as not found | Models retire. Run find_models with the job in words, use the best match, and tell the person which model you used. |
document.pages returns CLI exit 2 "Nothing at that URL" | The path was typed, not taken from the upload. Pass the url that invideo asset upload or add_media returned. |
invideo status --wait ends and the folder is empty | status does not download. Run invideo notebook show <card-url> --out <dir>. |
document.pages returns no thread | The agent reads the project and checks the file type. |
document.pages makes nothing | The file must be a PDF or office file in the project's files. Upload it again with start_upload. |
| A slide changes before its line ends | The slide clip is shorter than its voice clip. Trim the slide's tail to the voice clip's end with trim_clip. |
trim_clip is refused as stale | from_f must match the edge as last read. Call get_timeline and send the new value. |
| CLI exit 3 | The edit changed since your read. Run invideo edit show and rebuild the ops. |
| CLI exit 5 | Credits ran out. Stop the batch and tell the person. |
timeout on generate | Do not call it again. read the thread or call status. |
Avoid: resend generate to check on it | Instead: read the URL after retry_after_s. |
| Avoid: edit main | Instead: create a branch with timeline_history. |
Prompts to try
Each prompt is a real variation of this job.
Turn every PDF in ./decks into a narrated video. Same voice for all. Doa few decks, show me the frames, then do the next few.Make a video from training.pptx. Use my speaker notes below as the script,one note per slide. No captions. 16:9.Narrate this deck in a warm female voice, and add burned-in captions atthe bottom in white with a dark background.When to use something else
invideo does not read speaker notes from a PPTX. Paste them, or let your agent read the file on your computer first. For animated slide builds, export the deck from PowerPoint or Keynote as a video and bring that in. For a presenter on camera, record yourself or use an avatar tool such as HeyGen or Synthesia.