Create a coloring book
create_coloring_bookCreate a printable coloring book from a theme or description. Pages are generated as clean line art and the order continues automatically through image generation and PDF creation. To put the customer's own characters in the book, pass them in characterDetails, as the website's "Who is in your book?" step does. Before ordering, call list_my_characters; if they have saved characters, ask which of them to use, if any, and send those as { savedCharacterId }. Anyone else takes a name and one picture. Writing a saved character's name as @Name in the description or storyPrompt picks them too. If the customer wants to keep a new character for later books, save them with save_my_character first. If the customer wants another book in a series, or the same characters as an earlier book, find it with list_my_books and pass its jobId as seriesSourceJobId rather than describing the characters again.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bleed | No | Add print bleed to the interior pages. Defaults to false: leave it off for home printing and for A4 paper — bleed makes the page 8.625x11.25in with artwork running to the paper edge, and an A4 printer cuts 0.179in off each side of that. (Activity books describe their own default.) | |
| style | No | Coloring direction. Use a value from the coloringStyles returned by list_book_types, such as cute_animals, anime_characters, fairy_tale, mandala_abstract, or general_coloring. | |
| theme | No | Short subject line, for example dinosaurs or outer space. | |
| title | No | Book title. Generated from the content when omitted. | |
| ageGroup | Yes | Target age band, read by its youngest reader. Required, because it is not guessable and it changes the drawing: the four bands the page rules are written for are 3-6, 6-9, 9-13 and 13+, and line weight, how much background a page carries and how small the colourable areas get all step with them. Ask who the book is for rather than assuming the youngest band. | |
| pageSize | No | Trim size such as 8.5x11. The supported sizes are returned by list_book_types. A4 is not one of them and is rejected: for A4 or any metric paper, pass 8.5x11 with bleed false, which prints on A4 either way. | |
| complexity | No | How intricate the pages should be. | |
| lineWeight | No | Optional line width for every page: thin, medium or bold. Leave it out for the default, which suits the reader's age and the chosen style. | |
| description | No | What the book should be about. | |
| highQuality | Yes | Page quality — ask the customer, as the website does on every order. false = Standard, 1 credit a page: clean bold line art. true = Premium, 2.5 credits a page: finer detail and crisper lines. | |
| printOption | No | Only send this when the person ordering has actually asked for it. Leave it out and the book type decides: coloring, story coloring and drawing books print one side per sheet with a blank back, because colour goes through the paper and would ruin the drawing behind it; every other type prints both sides. Sending "both" for a coloring book overrides that and gives them pages backed by pages. | |
| createSeries | No | True to make this book part of a series. A series book's files are kept for good instead of being deleted after the usual retention period, so a later book can link to it at any time. Ask the customer if they want this when they mention more books to come. A book with seriesSourceJobId is always in a series, with or without this. | |
| pageCategory | No | coloring_book only: page structure. Defaults to auto, which classifies the description. instructional = one habit/rule per page with a short printed caption; concept = one alphabet/number/shape per page with its name printed; narrative = one continuous picture story; thematic = varied scenes on a theme, no captions. | |
| numberOfPages | Yes | Number of interior pages to generate. | |
| characterDetails | No | Optional. The customer's own characters, up to eight, exactly as the website's "Who is in your book?" step takes them. Each entry is either a saved character, { savedCharacterId } with the characterId from list_my_characters and nothing else, which brings its saved name, description and picture; or a new character with a name, a short description and one picture. The two can be mixed. Every page that shows a character draws it from its picture, so each new picture must be of that character alone and the name must match it. Cannot be combined with characterReferenceSheet. | |
| seriesSourceJobId | No | The jobId of the customer's earlier book that this one continues. The new book starts with that book's characters, their pictures, its look and what happened in it, so pass it instead of re-uploading them. The customer's words for this book outrank all of it: they can change anything, add new characters in characterDetails, or say to leave someone out. A new character with the same name replaces the earlier one. list_my_books gives jobIds and says which books canContinueSeries; when it is not clear which book they mean, ask. | |
| styleReferenceImage | No | Optional STYLE TEMPLATE: a picture drawn in the art style the customer wants — how faces, eyes, bodies, expressions, line and detail are drawn. Every page is drawn in that style; nothing in the picture (its characters, objects, background or text) appears in the book. It is not a character: use characterDetails for the book's own characters. Pass exactly one of s3Key (returned by upload_image, or a picture uploaded on the website) or data (the PNG or JPEG itself, base64, at most 4 MB). | |
| additionalInstructions | No | Extra direction for the generator, up to 600 characters. | |
| standardQualityConfirmed | No | Only with highQuality false: true once you have told the customer the Premium suggestion for books meant for sale and they chose to keep Standard ("Print home quality"). A Standard order without it is answered with that suggestion and not created. |