Case studyCase studyCase Study

KDP Book Generator — Multi-AI publishing pipelineGenerator książek KDP — pipeline wydawniczy multi-AIKDP-Buchgenerator — Multi-AI-Publishing-Pipeline

A production tool Małgorzata uses to generate journals, planners, coloring books, children's books, puzzle books and novels end-to-end for Amazon KDP — interior PDFs, covers, listing copy, four AI providers with fall-through, three languages.Produkcyjne narzędzie, którego Małgorzata używa do generowania dzienników, plannerów, kolorowanek, książek dla dzieci, łamigłówek i powieści pod Amazon KDP — wnętrza PDF, okładki, listingi, cztery dostawców AI z fallbackami, trzy języki.Ein Produktions-Tool, mit dem Małgorzata Journale, Planer, Malbücher, Kinderbücher, Rätselbücher und Romane für Amazon KDP End-to-End generiert — Innenseiten-PDFs, Cover, Listing-Texte, vier KI-Provider mit Fallbacks, drei Sprachen.

Partner tool · In productionNarzędzie partnerskie · w produkcjiPartner-Tool · in Produktion

01The challengeWyzwanieDie Herausforderung

Amazon KDP (Kindle Direct Publishing) lets anyone publish a book, but the end-to-end workflow is brutal. Each book type has its own formatting rules: journals need 100+ unique interior pages, coloring books need printable line-art at 300 dpi with no grey tones, children's books need illustrations that match the story, puzzle books need solvable puzzles, novels need chapter structure. On top of that: cover design, Amazon listing copy that actually ranks, multi-language targeting. Existing tools either target professional publishers (expensive, heavy) or do only one narrow book type.Amazon KDP pozwala każdemu publikować książki, ale workflow end-to-end jest brutalny. Każdy typ książki ma własne reguły formatowania: dzienniki potrzebują 100+ unikalnych stron, kolorowanki — line-art 300 dpi bez szarości, książki dla dzieci — ilustracji pasujących do fabuły. Do tego okładka, listing Amazon, cele wielojęzyczne. Istniejące narzędzia są albo profesjonalne (drogie), albo za wąskie.Amazon KDP erlaubt jedem, Bücher zu veröffentlichen, aber der End-to-End-Workflow ist brutal. Jeder Buchtyp hat eigene Formatierungsregeln: Journale brauchen 100+ einzigartige Innenseiten, Malbücher Druckfähige Line-Art bei 300 dpi ohne Grautöne, Kinderbücher Illustrationen passend zur Geschichte, Rätselbücher lösbare Rätsel, Romane Kapitel-Struktur. Dazu Cover, Amazon-Listing, Mehrsprachigkeit.

02The solutionRozwiązanieDie Lösung

A Flask dashboard that generates around 30 book types end-to-end. Under the hood: a multi-AI provider pipeline with fall-through. Claude handles long-form text (chapters, novel drafts). OpenAI handles structured output (listing copy, keywords, categories). Groq handles fast fallback (Llama 3.3 70B — free tier, kicks in when the primary provider rate-limits). Replicate (Flux Schnell) handles coloring-book line-art. If one provider fails, the next takes over without the user noticing.Panel Flask generujący około 30 typów książek end-to-end. Pod spodem: pipeline multi-AI z fallbackami. Claude dla długich tekstów (rozdziały, szkice powieści). OpenAI dla outputu strukturalnego (listingi, słowa kluczowe, kategorie). Groq jako szybki fallback. Replicate (Flux Schnell) dla line-artu kolorowanek.Ein Flask-Dashboard, das etwa 30 Buchtypen End-to-End erzeugt. Darunter: eine Multi-AI-Provider-Pipeline mit Fallbacks. Claude für Langtext (Kapitel, Roman-Entwürfe). OpenAI für strukturierten Output (Listing-Texte, Keywords, Kategorien). Groq als schneller Fallback. Replicate (Flux Schnell) für Malbuch-Line-Art.

Interior pages are composed with ReportLab (Python's PDF engine), images are processed through Pillow, and every generator respects the exact KDP formatting spec: trim size, bleed, margins, DPI. Custom-prompt box in the UI for non-standard briefs. Settings persist to JSON — no account system, no accidental leak of API keys.Strony wnętrza składane w ReportLab, obrazy w Pillow, każdy generator respektuje specyfikację KDP: trim size, bleed, marginesy, DPI. Custom-prompt w UI dla niestandardowych briefów. Ustawienia w JSON — bez systemu kont, bez wycieku kluczy API.Innenseiten werden mit ReportLab komponiert, Bilder durch Pillow, jeder Generator hält sich exakt an die KDP-Spezifikation: Trim Size, Bleed, Ränder, DPI. Custom-Prompt-Box im UI für nicht-standardisierte Briefings. Settings in JSON — kein Account-System, kein versehentliches Leak der API-Keys.

03Tech stackStack technologicznyTech-Stack

PythonFlaskClaude APIOpenAI APIGroq APIReplicate (Flux Schnell)ReportLabPillowSQLiteJinja2

04ResultsRezultatyErgebnisse

05Lessons learnedWnioskiGelernt

Multi-AI pipelines are more resilient than single-provider. When one API rate-limits or a model version is deprecated, the next provider takes over and the user sees nothing. The cost is a provider abstraction layer that takes time to get right — but once there, it pays forever. Second lesson: Print-on-Demand is a volume business. Polish the 80/20 case first (journals and planners: high demand, lowest friction), optimize the long-tail types only once revenue justifies it.Pipeline'y multi-AI są bardziej odporne niż jedni dostawca. Gdy jedno API ma rate-limit albo wersja modelu jest deprecated, kolejny dostawca przejmuje i użytkownik nic nie widzi. Kosztem jest warstwa abstrakcji — ale raz zrobiona, zwraca się zawsze. Druga lekcja: POD to biznes wolumenowy. Dopracować 80/20 (dzienniki, plannery), rzadsze typy optymalizować później.Multi-AI-Pipelines sind robuster als Einzel-Provider-Setups. Wenn eine API rate-limitet oder eine Modell-Version abgekündigt wird, übernimmt der nächste Provider, und der Nutzer merkt nichts. Der Preis ist eine Provider-Abstraktion, die Zeit kostet — aber einmal da, zahlt sie sich ewig aus. Zweite Lektion: POD ist Volumen-Geschäft. Den 80/20-Fall zuerst polieren (Journale, Planer: hohe Nachfrage, wenig Reibung), seltene Typen erst optimieren, wenn der Umsatz es rechtfertigt.

Have a similar project?Masz podobny projekt?Haben Sie ein ähnliches Projekt?

We build multi-AI tools for clients, too — provider-agnostic, resilient, production-ready.Budujemy narzędzia multi-AI także dla klientów — niezależne od dostawcy, odporne, produkcyjne.Wir bauen Multi-AI-Tools auch für Kunden — provider-agnostisch, robust, produktionsreif.

Start a projectRozpocznij projektProjekt starten
Back to portfolioPowrót do portfolioZurück zum Portfolio