---
title: "Generate a chapter (streams text/plain)"
method: POST
path: "/books/{bookId}/chapters/{chapterId}/write"
---

# Generate a chapter (streams text/plain)

`POST /books/{bookId}/chapters/{chapterId}/write`

## Request

- Base URL: `https://anthra.com/api/v1`
- URL: `https://anthra.com/api/v1/books/{bookId}/chapters/{chapterId}/write`
- Auth: HTTP bearer

## Response `200`

OK — body is a `text/plain` stream of the chapter prose. The persisted chapter is updated when the stream closes.

---

[API](https://skmtc.dev/anthra/apis/anthra-api.md) · [All operations](https://skmtc.dev/anthra/apis/anthra-api/llms.txt) · [OpenAPI document](https://skmtc.dev/anthra/apis/anthra-api/revisions/d21f87c435bf?raw)
