Building Perri: A Comic Strip Generator

Dev.to / 6/16/2026

💬 OpinionDeveloper Stack & InfrastructureTools & Practical UsageModels & Research

Key Points

  • Perri Comic Generator is a lightweight single-panel comic strip tool that combines LLM-based storytelling with real-time diffusion image generation.
  • The system turns a user’s story seed into a structured visual script and dialogue, then renders the generated dialogue directly onto the final JPEG for an authentic comic-book look.
  • It uses a Gradio frontend (app.py) to collect prompts, call the backend via secure APIs, and display a Base64-encoded image result.
  • On the backend (orchestrator.py), it refines prompts with Meta Llama 3 8B Instruct, generates retro comic art with SDXL Turbo, and performs dynamic dialogue overlay composition.
  • Perri emphasizes that the underlying models are all under 32B parameters, arguing that impressive creative apps don’t require massive, resource-heavy infrastructure.

Continue reading this article on the original site.

Read original →