Polli Comic Studio — Multimodal Comic & Narrated Storyboard Skill
Create a complete, character-consistent multi-panel comic strip or narrated
visual storyboard from any prompt (or uploaded character photo) using
Pollinations.ai via the polli CLI — combining
text, reference-locked image generation, and voiceover audio into a
single playable HTML comic reader.
Prerequisites
- Pollinations CLI (
polli):
Never ask the user to paste raw API keys into source files —npm install -g @pollinations/cli polli auth status || polli auth loginpolli auth loginhandles authentication cleanly so users spend from their own Pollen balance. - Python 3.9+ (standard library only — zero external packages required for
scripts/build_reader.py).
Workflow
Step 1 — Check Auth & Discover Live Models
Run a fast check so you never hardcode retired model IDs:
polli auth status
polli models --type image
- Prefer a vision/reference-capable image model (e.g.
black-forest-labs/flux.2-klein-4bfor fast, low-cost consistency orblack-forest-labs/flux.1-kontext-profor higher detail) so panels 2..N stay locked to your hero character sheet. - For panel 1 (or when no reference photo is provided),
tongyi-mai/z-image-turboorblack-forest-labs/flux.2-klein-4bcreates a crisp anchor image.
Step 2 — Plan the Storyboard (story.json)
Create a working directory (e.g. ./comic_out/) and write story.json with
4–6 panels (or the count requested by the user). Keep each panel's visual prompt
focused on one clear camera angle, action, and setting, and write short
punchy captions/dialogue (≤ 22 words per panel):
{
"title": "The Last Starlight Courier",
"subtitle": "A 4-panel sci-fi micro-comic",
"style": "cinematic graphic novel illustration, warm amber rim lighting, crisp ink linework, rich painted textures",
"character_anchor": "A young courier woman with dark braided hair, brass goggles pushed up on her forehead, wearing a weathered teal canvas coat",
"panels": [
{
"id": 1,
"caption": "Every night at midnight, Aria climbed the observatory spire.",
"dialogue": "One last letter before the nebula closes.",
"visual_prompt": "Wide establishing shot of Aria standing on a rain-slicked rooftop observatory overlooking glowing neon towers, holding a sealed glowing envelope, dramatic night sky."
}
]
}
Step 3 — Generate & Upload the Character Anchor (Consistency Lock)
- If the user provided a character/subject photo: upload it directly:
polli upload ./character.jpg - If starting from text only: generate Panel 1 (or a dedicated character sheet) first, then upload it to
media.pollinations.aiso every subsequent panel shares the exact same character identity:polli gen image "<character_anchor>, <panel_1_visual_prompt>, <style>" \ --model black-forest-labs/flux.2-klein-4b \ --width 1024 --height 768 \ --output ./comic_out/panel_1.jpg ANCHOR_URL=$(polli upload ./comic_out/panel_1.jpg | grep -Eo 'https?://[^ ]+' | head -n1)
Step 4 — Generate Panels 2..N Locked to the Anchor Reference
Pass --image "$ANCHOR_URL" on every subsequent panel and reference image 1
explicitly so the character's face, hair, and outfit stay consistent across the
entire strip:
polli gen image "Keep the EXACT same character face, hair, and outfit from image 1. <panel_n_visual_prompt>. Match the exact illustration style and color grading of image 1." \
--model black-forest-labs/flux.2-klein-4b \
--image "$ANCHOR_URL" \
--width 1024 --height 768 \
--output ./comic_out/panel_2.jpg
Step 5 — Generate Voiceover Narration (Optional, Recommended)
For each panel (or as a single narrator track), generate crisp MP3 narration
with polli gen audio:
polli gen audio "Every night at midnight, Aria climbed the observatory spire. One last letter before the nebula closes." \
--output ./comic_out/panel_1.mp3
Step 6 — Compile the Interactive HTML Comic Reader
Run the bundled zero-dependency Python builder to package all panels, captions,
speech bubbles, and audio tracks into a single self-contained index.html
(with keyboard navigation ←/→, Read-Aloud autoplay mode, and Print/PDF view):
python scripts/build_reader.py --story ./comic_out/story.json --dir ./comic_out --out ./comic_out/index.html
Optionally publish the finished comic directly to the web with Pollinations Sites:
polli sites publish ./comic_out --name my-comic-title
Guardrails & Quality Tips
- Always pass
--output <path>topolli gen imageandpolli gen audioso files land in the storyboard folder instead of cluttering the repo root. - Keep prompts concise & numbered (
image 1): Lightweight vision-edit models likeflux.2-klein-4bpreserve character identity much better when given 1 clean anchor reference (image 1) and a focused 2–3 sentence scene prompt. - Verify every generated file: Check that each
panel_N.jpgexists and is non-empty before runningbuild_reader.py; retry once with a fresh--seedif a panel fails. - Budget-friendly by default: A full 4-panel illustrated & narrated comic on
flux.2-klein-4b(~$0.005/panel) costs roughly $0.02 total.