Hi everyone,
I'm the founder and CTO of the open-source project AFFiNE (https://github.com/toeverything/AFFiNE), which currently has 66.9K stars on GitHub.
Recently, I built a new project called LlamaGen.ai — an AI platform for generating comics and manga. As part of it, we’ve created a Comic API specifically for developers.
I also published the official JavaScript/TypeScript SDK as the npm package comic (npm i comic).
The API supports generating multi-panel comics (1–20 panels), character consistency (via reference images or character descriptions), various styles (including 500+ presets and custom styles), and different aspect ratios. It accepts text prompts, and higher plans support image-to-comic, video-to-comic, and document-to-comic workflows.
Quick SDK Example
npm i comic
import { LlamaGenClient } from 'comic';
const client = new LlamaGenClient({ apiKey: 'YOUR_API_KEY' });
const result = await client.comics.generate({
prompt: "A brave fox warrior fighting a giant robot in a neon cyberpunk city, dramatic manga style, 4 panels",
panels: 4,
style: "manga",
character_consistency: true
});
Right now, I’m actively looking for honest feedback and real experiments from the developer community. I want to know how people might actually use it, what works well, what’s missing, and how it can be improved.
For more details, API reference, full parameters, and examples, please check: https://llamagen.ai/comic-api
If you’re interested in trying the API or SDK, feel free to leave a comment below or send me a message. I’ll happily send you some experience credits to test it out.
I’d really appreciate any thoughts, use case ideas, prompt tips, or integration experiences you might have.
Thanks in advance!
Tags: AI, Comics, API, ImageGeneration, Manga, OpenSource, Feedback, SDK, JavaScript
Useful Links:
- AFFiNE: https://github.com/toeverything/AFFiNE
- LlamaGen.ai Comic API: https://llamagen.ai/comic-api
- Main Platform: https://llamagen.ai
- npm package: https://www.npmjs.com/package/comic
Top comments (1)
This is really impressive, especially the character consistency support via reference images! Building on top of AFFiNE's ecosystem makes a lot of sense for the developer workflow.
I've been working on character consistency for multi-panel manga creation and know how tricky it is to keep characters looking the same across scenes. For anyone building with LlamaGen's API who also needs fine-grained control over character appearance across panels, I've been using pixiaoli.cn — it's a free web tool that maintains character identity through the generation process without needing to train LoRA models. You can set up a character once and reuse them across unlimited panels.
The SDK's character_consistency parameter is a great start. Would love to see how LlamaGen handles the edge cases like different outfits or age progressions while keeping the character recognizable. Those are the scenarios where most tools fall apart.
Also curious about the 500+ style presets — are these community-contributed or curated? Could be a great way to let users define custom manga styles with specific line weights and shading approaches.