Building an AI Comic Drama App in 8 Days: A Practical Guide to the LLM Toolchain

    This article documents an 8-day project to build a mobile MVP for AI-generated comic dramas, covering the full pipeline from text structuring and storyboard image generation to video synthesis. It details practical solutions for character consistency, JSON output validation, FFmpeg-based video concatenation, API cost breakdowns (around 20 RMB for development and initial testing), and pre-launch risk controls—offering a reference for small teams validating multimodal application ideas at low cost.

    Why Build a Mobile AI Comic Drama App?

    Multimodal models can now chain text, images, and video together. However, most AI comic drama tools rely on PC-based web platforms, making it hard for creators to draft a piece of work while commuting or on the go.

    The goal of this project was to build a mobile minimum viable product (MVP) in 8 days (excluding public holidays). A user enters a single sentence of inspiration, and the system automatically handles script breakdown, character and scene design, storyboard image generation, storyboard video generation, and final assembly into a complete comic drama video.

    The core question this MVP needed to answer: in a complex mobile content-generation scenario, can multimodal models maintain logical coherence across the pipeline, and can the output be used directly?

    How Was the Development Pipeline Set Up?

    An AI coding assistant wrote most of the scaffolding and API integration code. The developer described page layouts, interaction logic, and API requirements in natural language, and the assistant generated the code. The developer’s effort focused mainly on business flow orchestration and prompt engineering.

    The pipeline has four stages:

    • Text structuring: An LLM converts a one-sentence idea into JSON containing the script outline, character settings (appearance, personality, clothing), and scene descriptions.
    • Storyboard image generation: Character and scene descriptions are converted into image prompts, which are sent to an image generation model to produce storyboard frames.
    • Storyboard video generation: Storyboard images are fed into an image-to-video model along with camera movement instructions (push in, pull back, pan, track) to generate 3–5 second clips.
    • Assembly and output: The backend concatenates video clips in script order and handles the audio track.

    There is no single right answer for model selection. Three metrics are worth comparing: per-call price, output stability (variance across repeated calls with the same prompt), and the API’s support for structured output.

    The script structuring stage is the most critical. The prompt requires the model to output only valid JSON, for example:

    1. {
    2. "title": "The Old Bookstore in the Night Rain",
    3. "characters": [
    4. {
    5. "id": "C1",
    6. "name": "Lin Mo",
    7. "appearance": "short black hair, gray eyes, off-white trench coat",
    8. "personality": "quiet, highly observant"
    9. }
    10. ],
    11. "scenes": [
    12. {"id": "S1", "description": "rainy night, warm yellow light glowing through the window of an old bookstore"}
    13. ],
    14. "shots": [
    15. {"id": 1, "scene": "S1", "characters": ["C1"], "action": "Lin Mo pushes the door open and shakes rain off the umbrella"}
    16. ]
    17. }

    The backend must validate the JSON fields. If fields are missing or malformed, the model is asked to regenerate immediately, so that bad data never reaches the image generation stage.

    How Do You Ensure Character Consistency?

    Character drift is the main quality issue in AI comic dramas. A character’s hair color, clothing, or face shape may change between shots, and viewers notice immediately.

    This MVP uses two layers of constraints.

    The first layer is feature anchors. The system prompt requires the model to include fixed character feature descriptions—hair color, eye color, clothing style—in every image generation call. These descriptions are stored as global variables and applied across all storyboards.

    The second layer is reference images. Once the first character portrait is generated, it is passed as a reference image to subsequent storyboard generation steps, using image-to-image capability to keep the face and outfit consistent.

    The results should be evaluated in a verifiable way. A suggested approach: for each test, collect all storyboards of the same character and have two reviewers score them on a three-level scale—consistent, slight deviation, obvious drift—then calculate the proportion of frames with obvious drift.

    Current results rely mainly on subjective judgment. In internal testing, character consistency was generally stable, but systematic quantification has not been done, and more genres and art styles have not been covered.

    What Should You Watch Out for in Video Assembly?

    Keep storyboard clips at 3–5 seconds, which makes stitching and pacing easier. Hard cuts work fine for transitions at first; consider fades only after the basic flow is stable.

    Clips can be concatenated with FFmpeg’s concat demuxer:

    1. ffmpeg -f concat -safe 0 -i list.txt -c copy output.mp4

    Here, list.txt lists all clips in script order. Using -c copy requires all clips to share the same codec, resolution, and frame rate; otherwise, they must be transcoded to a uniform format first.

    For audio, the current version applies no special constraints on Chinese voiceover and uses generic background music or the model’s default sound effects. Subtitles need to be timed against each storyboard’s duration, and this step is not yet automated.

    What Did It Cost?

    By this article’s accounting, LLM API call costs for 8 days of development plus the first round of internal testing came to roughly 20 RMB. This figure excludes the coding assistant subscription, cloud server costs, and storage costs.

    Costs fall into two parts. Development-time tokens come from the coding assistant’s code generation, review, and debugging. Runtime tokens come from script planning, character descriptions, and multimodal API calls, and they scale with usage frequency and script complexity. The two parts were not broken out separately this time; going forward, they should be tracked monthly as distinct line items.

    At the small-scale trial stage, costs can be kept low. After launch, set a per-generation cost cap for each user and monitor for abnormal API calls.

    What Risks Need Handling Before Launch?

    API calls can fail or time out. Set retry counts and timeout limits, and log failed requests for troubleshooting.

    Generated content must go through compliance review to prevent violent, explicit, or infringing material from entering the publishing flow.

    Copyright ownership of generated characters and visuals depends on the terms of service of the platforms used. Confirm these one by one before release, and disclose them clearly to users in the product.

    What’s Next?

    There are two clear directions ahead.

    First, Chinese voiceover. This requires integrating Chinese text-to-speech and exploring emotional synthesis so the voiceover matches the mood of the visuals.

    Second, cloud architecture. Storyboard images and videos are large and numerous, making them a good fit for object storage. Video assembly is time-consuming, so it should be moved to asynchronous tasks via a message queue, allowing the mobile client to return results quickly.

    This project shows that, given the current LLM ecosystem, a small team can validate multimodal application ideas at a low trial-and-error cost. That conclusion is limited to the MVP stage and still needs to be tested with real user data.