Mobile AI Comic-Video App in Eight Days: Architecture and Engineering Lessons from a Prototype

    An eight-day prototype can prove that a mobile workflow can turn a single idea into a script, character and scene designs, storyboard images, storyboard videos, and a final composite. The more important engineering question is how to organize these generation capabilities into an editable, traceable, and recoverable creation loop. This article presents a practical MVP scope, a four-layer architecture, structured project data, character-consistency controls, asynchronous task orchestration, audio and composition requirements, AI-assisted development practices, cost tracking, and open-source readiness. It also separates what a short prototype can validate from what still requires confirmation before commercialization, including concurrency, rights governance, and predictable production cost.

    1. Start with the Goal: Build a Creation Loop, Not More Generation Buttons

    The source project was a mobile AI comic-video prototype completed in eight days. A user enters a single idea, and the system generates a script, characters, and scenes, then produces storyboard images and storyboard videos, and finally composites them into a complete work.

    The most useful lesson is not how fast the prototype was built. It is that a complex content-production process was compressed into an operable product loop. For mobile users, the real need is not a collection of disconnected generation buttons. They need a creation workflow that can move forward continuously, allow edits, and recover after failures.

    An eight-day prototype is not the same as a commercial product ready in eight days. A prototype can prove that a workflow runs end to end, but it cannot by itself prove that the system already has stable concurrency handling, mature copyright governance, or predictable production cost. The discussion below starts from the original practice and adds general engineering methods. Design suggestions should not be read as features the prototype had already implemented.

    2. Define an MVP That Reduces Process Complexity

    An AI comic-video app involves text, images, video, voice, and media composition. If the first version tries to support long stories, multi-character interaction, complex camera movement, and detailed voice production at the same time, a short development cycle will easily turn into repeated rework.

    A sensible minimum viable product should focus on one short-work production chain:

    idea → plot outline → characters and scenes → storyboard plan → storyboard images → storyboard videos → final preview

    Three capabilities must be preserved.

    1. Key content must be editable. Users should be able to adjust character settings, shot descriptions, and dialogue. Otherwise, one misunderstanding upstream can be amplified across the entire chain.
    2. Intermediate artifacts must be saved. Scripts, character reference images, storyboard images, and video clips should be retained independently. The system must not keep only the final video file.
    3. Failed steps must be retryable on their own. If one shot fails, the user should not have to recreate the whole work.

    Character count, scene count, and shot count are reasonable configuration items, but more configurability is not always better. During prototyping, provide conservative defaults and set maximum limits so a user cannot submit too many jobs at once. The default character and scene counts in the original material were product choices for one implementation, not an industry standard.

    3. Split Responsibilities: Let the Phone Handle Interaction and the Server Handle Jobs

    A mobile client is well suited to creative input, content editing, progress display, and preview. It is not well suited to directly managing long-running generation tasks.

    A clear architecture can be divided into four layers.

    3.1 Mobile Interaction Layer

    This layer handles project creation, text editing, upload of reference materials, shot retries, and playback of the final work. After a task is submitted successfully, the client should store the task identifier and be able to restore progress when the app is reopened.

    Long-running tasks should not depend on a continuously open page connection. Locking the screen, switching apps, or losing network connectivity should not force the server-side task to terminate.

    3.2 Business Service Layer

    This layer handles authentication, project permissions, version management, quota checks, and task submission. Credentials for generation services should remain on the server and must not be packaged into the client.

    The business service should also distinguish between “allowed to execute” and “already executed.” For example, after a user clicks the generate button, the system should first complete permission, asset, and budget validation before placing the job in a queue.

    3.3 Asynchronous Execution Layer

    Text planning, image generation, video generation, and media composition are all executed by background workers. A message queue buffers tasks, and workers claim tasks according to task type and resource availability.

    Different task types can use different concurrency limits. This prevents a long-running video task from consuming all execution resources.

    3.4 Data and Asset Layer

    A relational database is suitable for managing projects, shots, characters, task status, and version relationships. Object storage is suitable for images, audio, video, and exported files.

    The database should not directly store large media files. It should store asset identifiers, access permissions, checksum information, and necessary metadata.

    4. Design the Data Model Before Asking Models to Fill It

    “Generate a comic video from one sentence” sounds simple, but user input often includes genre, characters, mood, and plot requirements at the same time. Passing that raw input directly to later image or video generation stages can produce confusing descriptions.

    A more reliable approach is to turn the idea into structured project data first.

    4.1 Character Profiles

    A character profile should include a character identifier, appearance, clothing, personality, voice requirements, and reference materials. Stable traits and plot-stage changes should be recorded separately.

    For example, “short hair and a dark jacket” can be a stable setting, while “puts on a raincoat in the third act” is a state change at a particular stage of the story. It should not overwrite the base profile for the whole work.

    4.2 Scene Profiles

    A scene profile can record location, time, weather, lighting, color palette, and key objects. When the same location appears at different times, the system should make clear whether it is a variant of the same scene or a new scene version.

    4.3 Storyboard Records

    Each shot should at least describe the characters present, scene reference, shot size, action, dialogue, target duration, and narrative purpose.

    The following illustrative structure is for internal application data design only. It is not the actual interface of any generation service.

    1. {
    2. "shot_id": "shot_03",
    3. "character_refs": ["character_a"],
    4. "scene_ref": "rainy_street_corner",
    5. "shot_size": "medium",
    6. "action": "The character stops and looks back.",
    7. "dialogue": "Who just called me?",
    8. "target_duration_seconds": 4,
    9. "narrative_purpose": "establish suspense"
    10. }

    After a model generates this content, the server still needs deterministic validation: whether referenced characters exist, whether the shot count exceeds the limit, whether the duration is valid, whether dialogue is empty, and whether all required fields are present.

    A valid format does not mean the story is reasonable. After structural validation, the system should provide a human confirmation point, especially for the script and character-design stages.

    5. Character Consistency Is Not a One-Prompt Problem

    Character consistency is a core challenge in AI comic-video production. It involves not only facial similarity, but also hairstyle, clothing, body type, color palette, voice, and behavioral characteristics.

    5.1 Establish a Stable Character Baseline

    Before a character enters storyboard production, the base profile and reference materials should be established first. Reference materials should be as clear as possible and avoid occlusion, distracting backgrounds, or multiple characters in the same frame.

    If the generation capability in use supports reference images or other conditioning controls, those materials can be reused. If it does not, consistency must be controlled through fixed descriptions, candidate selection, and manual correction. It should not be claimed that text alone guarantees consistency.

    5.2 Separate Stable Descriptions from Shot Descriptions

    Prompt content can be divided into three parts:

    • Global style: image type, line treatment, and color tendency.
    • Stable character features: face, hairstyle, clothing, and body type.
    • Shot variation information: action, expression, composition, environment, and lighting.

    This separation makes reuse and review easier, and it can reduce wording drift when a character is described again for each shot. It is a control technique, not a guarantee of the final result.

    5.3 Review Keyframes Before Generating Video

    In general, the later an error is discovered, the more expensive it is to fix. Generating and confirming storyboard images before moving to video generation can reveal character changes, incorrect character counts, and composition problems at an earlier stage.

    If the video-generation capability accepts images as input conditions, confirmed keyframes can be used for later generation. Even then, body deformation may still occur during motion, so review remains necessary.

    5.4 Turn Consistency Issues into Quality-Check Items

    A review checklist can include: whether the character is correct, whether clothing is continuous, whether the number of characters matches the setting, whether key objects are present, and whether the shot contains abnormal deformation.

    Image similarity or visual feature matching can help with screening, but it cannot independently prove that a character identity is correct. Similar colors and composition can also produce high similarity scores, and complex shots still require human judgment.

    6. Orchestrate Asynchronous Tasks So Failures Are Recoverable

    The generation pipeline is not a simple sequence of function calls. It is a set of tasks with dependencies.

    Characters and storyboards can be generated reliably only after the script is confirmed. Video production should begin only after keyframes are confirmed. Final composition can start only after all necessary clips are ready.

    Each task should support at least these states: waiting to execute, running, succeeded, failed, and canceled. The task record should also save the input version, attempt count, error category, and artifact location.

    There are three engineering issues that are easy to overlook.

    6.1 Duplicate Submissions and Idempotency

    A network timeout does not mean the server did not receive the request. If the user clicks the button again, duplicate tasks may be created.

    The application can create a unique identifier for one generation intent and use the project, shot, input version, and task type to identify duplicate submissions. Whether an external generation service supports corresponding deduplication must be confirmed separately and must not be assumed.

    6.2 Version Invalidation

    If a user modifies a character setting, the system needs clear rules for whether old storyboard shots can still be used. Old artifacts can be kept for viewing, but they should be labeled with the setting version they depend on, and affected shots should be marked for regeneration.

    6.3 Retry Classification

    Temporary network exceptions and service congestion may justify a limited retry. Invalid input, insufficient permissions, or exhausted quota should directly show the reason to the user. Indiscriminate automatic retries only increase cost and waiting time.

    For tasks already submitted to an external system, local cancellation may not stop remote computation. Cancellation status and cost display should therefore avoid overpromising.

    7. Audio and Composition Cannot Be Left Until the End

    The original project noted that constraints on spoken language and voice were not fully addressed. This shows that even after the visual pipeline works, audio can still become a critical weakness in final quality.

    Language, character voice, and dialogue rhythm should be included in constraints at the script stage, rather than adding “use Chinese” at the very end.

    A clearer audio plan is to manage narration, character dialogue, background music, and sound effects separately. This makes it possible to correct pronunciation, adjust volume, and match dialogue to shot duration independently.

    If a line is clearly longer than its shot, the better options are to shorten the dialogue, extend the shot, or split the shot. The system should not rely on excessive playback speed. Lip synchronization is another capability that needs separate validation. The fact that a system supports speech generation does not mean lip sync has been solved.

    Before video stitching, the system also needs to unify resolution, frame rate, encoding method, audio sample rate, and channel configuration. It should check whether the subtitle timeline matches the actual dialogue. The composition task should preferably support independent reruns so that a subtitle change does not trigger regeneration of every shot.

    8. AI-Assisted Coding Works Best with Clear Boundaries

    AI coding tools can help build pages, generate data models, add tests, and explain errors. They do not automatically take responsibility for architectural correctness or production security.

    A more effective collaboration pattern is:

    1. Write down the user flow and acceptance criteria first.
    2. Break the work into small tasks that can be verified independently.
    3. Require an explanation of the change scope and potential impact.
    4. Run tests and inspect actual behavior.
    5. Proceed to the next stage only after the current one passes.

    Human review is especially important for permission control, key management, database migrations, concurrency logic, and error handling. For the generation pipeline, mocked responses should be used to test success, timeout, partial failure, and duplicate callbacks. This reduces dependence on real paid generation during development.

    The value of a short cycle is faster validation feedback, not skipping validation.

    9. Cost Governance and Open-Source Readiness

    A low bill in the original material describes only the specific spending of one practice. It cannot be used to infer the unit cost of complete comic-video production. Coding assistance, script generation, image generation, video generation, storage, and transfer should be tracked separately.

    The actual cost of a single project can be abstracted as:

    text planning cost + image cost + video cost + audio cost + composition and storage cost + failed-retry cost

    During development, record the duration, attempt count, and estimated cost of each task. Focus on which steps fail most easily and which retries are most expensive. Showing a budget prompt before a long task is submitted is more reasonable than revealing the cost only after completion.

    If the project will be open-sourced, documentation should also cover installation instructions, configuration examples, task-state descriptions, database change history, and testing methods. Before release, remove real keys, personal data, and unauthorized assets. Clarify the license scope for both code and assets.

    At the same time, content authorization, safety moderation, and complaint handling are part of product responsibility. They cannot be ignored just because the system uses automatic generation.

    10. Conclusion: From a Runnable Prototype to a Reliable System

    The engineering value of a mobile AI comic-video app lies in organizing multiple generation capabilities into a creation system that can be edited, tracked, recovered, and continuously improved.

    An eight-day prototype can validate a product direction, but stable operation requires progressive work around structured data, character consistency, asynchronous tasks, audio-video synchronization, cost control, and content governance.

    The most practical path is not to pursue a “fully automatic director” in one step. It is to make the short-work pipeline reliable first, then iterate based on the areas users edit most, the tasks that fail most frequently, and the steps that cost the most. Only when the uncertainty of generated results is incorporated into engineering design can an AI comic-video app move from demonstration to genuine usability.