generate_ebook
Start generating a complete multi-chapter eBook using AI. Costs $0.90 per chapter (e.g., 10 chapters = $9.00). Returns a payment link that the user must visit to pay before generation begins. After payment, use get_job_status to track progress.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tone | No | 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 | No | Genre name from list_genres (e.g. 'literature_fiction', 'nonfiction', 'romance'). Defaults to 'literature_fiction'. | |
| title | Yes | The title of the book | |
| author | No | Author name for the book. | |
| language | No | ISO 639-1 language code (e.g. 'en', 'es', 'fr'). Defaults to 'en'. | |
| description | No | Book description/premise/blurb to guide the AI generation. | |
| chapter_count | Yes | Number of chapters to generate (1-50). | |
| target_audience | No | Target audience (e.g. 'beginners', 'young adults', 'professionals'). |