---
title: "Generate cover art (1-3 variants) via the AI Gateway image pipeline"
method: POST
path: "/books/{bookId}/cover-image"
---

# Generate cover art (1-3 variants) via the AI Gateway image pipeline

`POST /books/{bookId}/cover-image`

## Request

- Base URL: `https://anthra.com/api/v1`
- URL: `https://anthra.com/api/v1/books/{bookId}/cover-image`
- Auth: HTTP bearer

Charges one illustration credit per variant. Refunds the unspent portion on partial failure.

## Response `200`

OK

---

[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)
