Explainer videos with Venice
Venice generates the pieces: script, scene clips, narration and music. You assemble them into one MP4 on the user's machine with ffmpeg. Built on venice-create-video and venice-create-audio.
| Piece | Venice MCP tool | REST endpoint |
|---|---|---|
| Script and scene plan | venice_chat |
POST /api/v1/chat/completions |
| Scene stills (optional) | venice_image_generate |
POST /api/v1/image/generate |
| Scene clips | venice_video_quote, venice_video_generate, venice_video_status |
/api/v1/video/quote, /video/queue, /video/retrieve |
| Narration | venice_tts |
POST /api/v1/audio/speech |
| Music bed | venice_audio_quote, venice_music_generate, venice_music_status |
/api/v1/audio/quote, /audio/queue, /audio/retrieve |
Use when
- A user wants a 30-90 second explainer, demo or social video, not a single clip.
- The video needs a voiceover and background music.
Workflow
1. Write the script and scene plan
Use venice_chat to draft the narration from the user's topic and audience, then split it into scenes. For each scene, record the narration line, what is on screen, and a target length. Speech runs at roughly 150 words a minute, so a 6 second scene holds about 15 words.
2. Fit scenes to clip lengths
Video models only make clips of fixed lengths. Read the chosen model's durations with venice_model_details (type: "video") and give every scene one of those lengths. Merge or split scenes rather than forcing a length the model can't make.
3. Lock the look
Consistency across scenes is what makes generated clips feel like one video:
- Write one style line (palette, art style, camera feel) and append it to every scene prompt.
- For the strongest consistency, generate a still per scene with
venice_image_generate(same style line, sameseed), then animate each still with an image-to-video model viaimage_url. - Use the same model and aspect ratio for every scene.
4. Quote the whole project, then confirm
Before generating anything, add up:
venice_video_quotefor each scene clip. It prices onlymodelandduration, so if resolution or audio changes the price for that model, quote throughPOST /api/v1/video/quotewith those fields too, asvenice-create-videodoes.venice_audio_quotefor the music bed (instrumental, about the total length).- Narration, billed per character of the script.
Show the user the total and get a yes. This is the most expensive workflow in the catalog.
5. Generate the pieces
- Narration, one file per scene: generate each scene's line with
venice_ttsand check its length (see below). If a line runs longer than its scene's clip, shorten the line or give the scene a longer duration now, before any video is paid for. - One clip first: queue the first scene with
venice_video_generate, poll it withvenice_video_status, and show it to the user. Confirm the look before queuing the rest, or a wrong style line gets paid for in every clip. - The remaining clips: queue them all, then poll each. They render in parallel.
- Music: queue an instrumental with
venice_music_generate(force_instrumental: trueon models that support it), then poll withvenice_music_status.
Save each piece to disk with the REST calls in venice-create-video and venice-create-audio.
6. Assemble with ffmpeg
Check that every narration line fits its clip. Each narration-N.mp3 must be no longer than scene-N.mp4:
for f in narration-*.mp3 scene-*.mp4; do
printf '%s %s\n' "$f" "$(ffprobe -v error -show_entries format=duration -of csv=p=0 "$f")"
done
Join the clips in order (re-encoding keeps clips with slightly different settings compatible, and -an drops any model-generated audio):
printf "file '%s'\n" scene-1.mp4 scene-2.mp4 scene-3.mp4 > scenes.txt
ffmpeg -f concat -safe 0 -i scenes.txt -an -c:v libx264 -pix_fmt yuv420p video.mp4
Pad each scene's narration with silence to exactly its clip's length, then join the pieces, so every line starts with its scene:
for i in 1 2 3; do
len=$(ffprobe -v error -select_streams v:0 -show_entries stream=duration -of csv=p=0 "scene-$i.mp4")
ffmpeg -i "narration-$i.mp3" -af "apad,atrim=end=$len" -ar 44100 -ac 2 "narration-$i.wav"
done
printf "file '%s'\n" narration-1.wav narration-2.wav narration-3.wav > narration.txt
ffmpeg -f concat -safe 0 -i narration.txt narration.wav
Lay the narration over the video with the music underneath at a low volume, and cut the result to the video's exact length:
len=$(ffprobe -v error -show_entries format=duration -of csv=p=0 video.mp4)
ffmpeg -i video.mp4 -i narration.wav -i music.mp3 \
-filter_complex "[2:a]volume=0.15[bed];[1:a][bed]amix=inputs=2:duration=first:normalize=0[audio]" \
-map 0:v -map "[audio]" -c:v copy -c:a aac -t "$len" explainer.mp4
normalize=0 keeps the narration at full volume; by default amix turns every input down. duration=first makes the mix as long as the narration, and -t ends the file exactly where the video does.
7. Deliver
Share the final MP4 plus the script, so the user can tweak a line and regenerate just that scene's narration and clip.
Cost
Several video clips plus narration and music add up quickly. Always quote the whole project first, regenerate only the scenes that need it, and tell the user each retake is billed.
Errors
| Status | Likely cause | What to do |
|---|---|---|
400 |
A clip duration or aspect_ratio the model doesn't list |
Re-read venice_model_details. |
402 |
Balance ran out partway through | Stop, tell the user what finished, and resume after a top-up. |
422 |
A scene was rejected by content policy | Rewrite that scene's prompt only. |
429 |
Too many jobs queued or polled at once | Back off; poll every 10-20 seconds. |
Full error handling is in venice-errors.
Gotchas
- Keep narration lines short. Long sentences force long scenes that models can't make.
- Use the same model and aspect ratio for every scene. Joining scales every clip to the first clip's size, so a clip with a different aspect ratio comes out stretched.
- Generated clips may include their own audio; drop it with
-anunless the scene needs it. - Keep every piece (script, prompts, seeds, queue ids) in a project folder, so a single scene can be redone without starting over.
Related skills
venice-create-video: clip generation, polling and saving.venice-create-audio: narration, music and saving.venice-create-image: consistent stills for image-to-video.venice-chat: chat completions for the script.