---
title: "Generate a book from user stories (v5, no LLM)"
method: POST
path: "/v5/books/magic"
tags: ["Books", "V5"]
---

# Generate a book from user stories (v5, no LLM)

`POST /v5/books/magic`

## Request

- Base URL: `http://0.0.0.0:3001/api`
- URL: `http://0.0.0.0:3001/api/v5/books/magic`
- Auth: none declared

Creates a new book container, builds page layout from user stories in pure JS, and returns the completed editorJson instantly. No AI calls, no polling. Max 50 pages per book.

## Request body

- object
  - `title` string, required
  - `description` string
  - `ageGroup` '2-4' | '4-6' | '6-10' | '10-13'
  - `isPublic` boolean
  - `storyIds` string[]

## Response `200`

Default Response

---

[API](https://skmtc.dev/storybee/apis/story-bee.md) - [All operations](https://skmtc.dev/storybee/apis/story-bee/llms.txt) - [OpenAPI document](https://skmtc.dev/storybee/apis/story-bee/revisions/d1d0477803c6?raw)
