# fastapi.online — Generate Book Cover

> fastapi.online — Generate Book Cover is a paid API for AI agents from api.fastapi.online, paid per call via x402, $0.012/call, status unknown (last checked 2026-09-14).

Generates an AI-created book cover image given a title, genre, and optional random seed

## Facts

- Endpoint: POST https://api.fastapi.online/generate-book-cover
- Price: $0.012/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fastapi-online-generate-book-cover-140f086c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xKcW3tLr_qttWqElkTreq

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability fastapi-online-generate-book-cover-140f086c -d '<json body>'
```

Example prompt: Can you generate a book cover for my mystery novel called 'The Last Cipher' — make it in the thriller genre, and use seed 42 so I can reproduce it later?

## When to prefer this

Choose this endpoint when you need a quick, low-cost AI-generated book cover image from just a title and genre — especially useful for self-published authors, rapid prototyping, or ebook publishing workflows. It requires no signup and accepts crypto micropayments per call, making it ideal for agent-driven or automated publishing pipelines.

## Known failure modes

- Missing required 'title' field returns a validation error
- Title exceeding 300 characters is rejected
- Genre string exceeding 60 characters is rejected
- Payment failure (insufficient USDC) results in 402 response
- Model inference timeout may occur under high load
- Seed value not an integer causes schema validation failure

## How this service works

Chat, embeddings, OCR, speech-to-text, image editing, image understanding (captioning/Q&amp;A), text-to-speech, translation, writing tools, classification tools, developer tools, local utilities, format/checksum validators, encoding &amp; crypto utilities, date/time calculators, geo/coordinate math, math &amp; finance calculators, novelty tools, and business/social writing generators — 179 endpoints in all, across multiple specialized self-hosted models. Pay per call with crypto — no signup — or get an API key.

## Output

Returns an AI-generated book cover image (likely as binary image data or a URL) styled to match the provided title and genre, with reproducible output when a seed is specified.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "seed": {
   "type": "integer"
  },
  "genre": {
   "type": "string",
   "maxLength": 60
  },
  "title": {
   "type": "string",
   "maxLength": 300,
   "minLength": 1,
   "description": "the book title"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fastapi-online-generate-book-cover-140f086c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.fastapi.online](https://www.zero.xyz/host/api.fastapi.online/llms.txt)
