Docs page to tutorial video: Wan 3.0 B-roll and your own code cards
Turn a developer docs page into a short tutorial: Wan 3.0 for B-roll, your own code image beside it with Timeline compose, so the snippet is never regenerated.

For a developer docs page, use Wan 3.0 for the B-roll and put your own image of the code beside it. Render each snippet as a still, generate abstract footage that matches the step (a request leaving a server, a file being written), and combine them with Sume's Timeline compose in stack mode. Alibaba's Wan 3.0 README (read 2026-10-05) lists webpages and documents among its reference assets, and text rendering in 12 languages. For code, neither is enough: one wrong character in a snippet makes the tutorial worse than no tutorial, so the code is never the model's to draw.
Break the page into steps
A docs page is already a script. Pick the heading structure and take one step per heading. Each step has one command or code block and one sentence of explanation. Limit yourself to four or five steps for a clip under a minute.
- Heading: becomes the step title, burned as a caption.
- Code block: rendered as a still with a syntax-highlighted screenshot from your editor.
- Explanation sentence: becomes a caption or voice-over line.
- B-roll: one visual metaphor per step, 4 to 6 seconds, from
wan-3.0. - Warning boxes: leave them out of the clip and link the page.
- Narration: optional; if you add it, write it from the explanation sentences, not from the code.
Compose the code card beside the footage
The Timeline compose docs say compose takes one still and one video, selected with operation (stack or overlay), and returns one MP4. The output length comes from the video layer, and the ceiling is 300 seconds. Both inputs must be media.sume.com artifacts or assets of your workspace, so import the code PNG and the Wan clip first. Then put each composed shot into video[] of a Timeline 1.0 render, as the compose page directs.
| Layer | Made by | Tool |
|---|---|---|
| B-roll for the step | Wan 3.0, 4 to 6 s, 720p | POST /v1/video-router/generate, model wan-3.0 |
| Code card | Screenshot of your own editor | media-imports, then compose image.url |
| Shot with both on screen | Stack of card and footage | POST /v1/timeline-1.0/compose |
| Full tutorial | Ordered shots and fades | POST /v1/timeline-1.0/render |
Generating the B-roll
Keep the prompts abstract and free of text. A shot for "send a POST request" can be "a glowing packet leaves a laptop and crosses a night-time city to a server rack". Reuse the same one or two style reference images in every shot, so the five clips look like a set, and send them as reference_image_urls, up to the 10 the catalog allows for wan-3.0.
curl -X POST https://api.sume.com/v1/video-router/generate \
-H "Authorization: Bearer $SUME_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: tutorial-step1" \
-d '{
"model": "wan-3.0",
"prompt": "A glowing packet of light leaves a laptop, crosses a night-time city, and reaches a server rack. Dark blue palette, no text, slow tracking shot.",
"reference_image_urls": ["https://example.com/style-a.png"],
"resolution": "720p",
"duration": 5,
"aspect_ratio": "16:9",
"mode": "async"
}'Before you publish
Pick a fixed look for the code cards before you start: one font, one theme, one size, so the five cards read as a set. A dark theme with large type reads better on a phone than a light one with the default font size. Open every composed shot and read the code against the docs page, including the quotes and dashes, which are the characters most often changed by an editor. If the docs change, replace the card image and re-run compose for that step; the Wan footage is untouched. If you want narration, record or synthesize it separately and lay it as the audio spine of the final render; Timeline takes an audio.url or audio.parts[], and the spine length sets the output length.
Sources
Related posts
More in Use cases
- Did YouTube remove the dislike button on Shorts? June 25, 2026
Yes. YouTube's June 25, 2026 post retires the Shorts dislike and swaps the thumbs-up for a heart. What changed and what to check in your Short files.
- Dim or crop a clip: does YouTube need an altered-content label?
YouTube exempts color adjustment, beauty and effects filters. Whether a Sume video filter dim or crop falls under that, and what the exemption does not cover.
- 300x250 display ad image: generate 1440x1200, then resize by 4.8
A 300x250 ad is 6:5, so GPT Image 2.5 can render it at 1440x1200 (legal custom size) and Pillow scales it down by exactly 4.8. Size checks and price included.
- Document to video with Wan 3.0: what Sume accepts instead of a PDF
Alibaba's Wan 3.0 takes documents and webpages as references. Sume's catalog documents image, video and audio references, so convert pages to images first.
Written by Sume