AI eBook generation API

Generate complete, multi-chapter EPUB books with a single REST call. JSON responses, async job processing, secure download links. Available directly or via RapidAPI.

5
REST endpoints
100+
Genres & themes
1–24
Chapters per book
EPUB 3
Output format
~8 min
Average job time
RapidAPI marketplace

Get an API key in 30 seconds via RapidAPI

The fastest way to start — no Scrivibe account, no credit-card form on our side, no manual key rotation. RapidAPI handles billing, key management, and usage analytics for you.

  • Free tier available — try the API with no upfront cost. Upgrade plans directly inside RapidAPI when you need more volume.
  • Single key works for all endpoints — generate, status, download, genres. Authentication is automatically injected via the X-RapidAPI-Key header.
  • Built-in code snippets — RapidAPI generates ready-to-paste examples in Python, Node.js, PHP, Go, Ruby, Java, and more.
  • Live testing console — fire requests from the RapidAPI dashboard before you write a single line of code.
Available on the RapidAPI marketplace. Subscribe to the free or paid plan, copy your X-RapidAPI-Key, and you're done.
Open on RapidAPI
Direct REST access

Or call the API directly

Prefer to skip the marketplace? Generate a long-lived API key from your Scrivibe account and hit the endpoints directly. Same payload, same JSON responses — only the auth header changes.

  • Authenticate with X-API-Key: sk_live_... on every request. Keys are scoped to a single Scrivibe account.
  • Manage keys (create, list, revoke) from your profile.
  • EPUB files stay available for 24 hours after generation completes — fetch a fresh signed link any time during that window.

Generate a book in one call

Pick your language. The example creates an async job and returns a job ID you can poll.

Available endpoints

Base URL: https://www.scrivibe.com/v1

GET
/v1/genres
List all available genres, content types, and themes.
POST
/v1/books
Start a generation job. Returns a job_id and queues async chapter generation.
GET
/v1/books/{job_id}
Poll job status — returns progress, chapter count completed, and final status.
GET
/v1/books/{job_id}/download
Get a fresh signed EPUB download URL (valid for 24 hours after generation).
GET
/v1/health
Service health check. Returns {"status":"ok"}.

How it works

1

Get an API key

Either subscribe on RapidAPI (30 seconds, free tier) or generate a key from your Scrivibe profile.

2

Start a job

POST a title, content type, theme, and chapter count to /v1/books. You get back a job_id immediately.

3

Poll & download

Poll status every 10–15 seconds. When the job reaches completed, fetch the signed EPUB URL.

Setting up via RapidAPI

The recommended path for most developers. Five clicks from zero to first generated book.

  1. Go to the RapidAPI marketplace and search for Scrivibe.
  2. Click Subscribe on the Free plan (or a paid tier if you need more volume).
  3. Open the Endpoints tab — your X-RapidAPI-Key is automatically injected into every snippet.
  4. Test POST /v1/books live from the dashboard, then copy the language snippet of your choice.
  5. Paste it into your project. Use the returned job_id to poll status and grab the EPUB download URL.

Authentication header

All RapidAPI calls require two headers — both are auto-filled in the dashboard snippets:

X-RapidAPI-Key: YOUR_RAPIDAPI_KEY
X-RapidAPI-Host: scrivibe.p.rapidapi.com