generate_ebook
Start generating a complete multi-chapter eBook using AI. The price depends on the book (length, genre, theme and chapters) and is charged per token at the same rate as the Basic token pack on scrivibe.com, plus any applicable tax. Returns the exact price and a payment link that the user must visit to pay before generation begins. After payment, use get_job_status to track progress.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"title": "<title>",
"chapter_count": "<chapter_count>",
"author": "<author>",
"genre": "<genre>",
"subject_theme": "<subject_theme>",
"target_audience": "<target_audience>",
"tone": "<tone>",
"language": "<language>",
"length": "<length>"
},
"name": "generate_ebook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tone | Yes | Writing tone (e.g. 'professional', 'casual', 'academic', 'humorous'). | |
| No | Buyer's email address. If provided, enables invoice history and receipt delivery. Returning buyers with the same email share a single billing profile. | ||
| genre | Yes | Genre name from list_genres (e.g. 'literature_fiction', 'nonfiction', 'romance'). | |
| title | Yes | The title of the book | |
| author | Yes | Author name for the book. | |
| length | Yes | Book length: short (50-100 pages), medium (100-200), long (200-300), epic (300+). | |
| language | Yes | ISO 639-1 language code: ar, de, en, es, fr, hi, id, it, ja, ko, pl, pt, ru, tr, zh. | |
| description | No | Book description/premise/blurb to guide the AI generation. | |
| chapter_count | Yes | Number of chapters to generate (1-50). | |
| subject_theme | Yes | Subject theme within the genre, from list_genres (e.g. 'nonfiction_biographies_memoirs'). | |
| chapter_length | No | How the book's length is spread across chapters. | |
| narrative_voice | No | Narrative voice (e.g. 'first_person', 'third_person'). | |
| target_audience | Yes | Target audience (e.g. 'beginners', 'young adults', 'professionals'). | |
| unique_elements | No | Elements that make this book different. | |
| references_sources | No | Research seed: facts, sources and URLs the book should be based on. | |
| content_restrictions | No | Content to avoid. |