Create an audiobook
Uses saved settings unless explicit settings are provided. Signed-in whole-book requests advance after the tab closes. Guests advance on their own requests. Repeated matching requests reuse the same identity; retrySkipped is for whole books only.
AuthorizationBearer <token>Authorization code with S256 PKCE. Discover issuer metadata at /.well-known/oauth-authorization-server/api/auth and resource metadata at /.well-known/oauth-protected-resource/api/v1. Request the /api/v1 resource explicitly. The same token endpoint also supports the advertised OAuth device grant.
Scope: audio:generate
id*string^[a-f0-9]{64}$application/json- body
provider?stringShared provider slug. Omit to use the saved provider.
length <= 200model?stringModel ID. Omit to use the saved model, or the default model of the named provider.
length <= 512voice?stringVoice ID within that provider and model. Omit to use the saved voice, or the first voice of the named provider. A named voice must be one the provider lists.
modelSpeed?numberSpeaking rate the model generates at, for models that support one. Omit to use the saved voice speed. Unlike speed, it changes the generated audio.
0.5 <= value <= 3format?string"mp3""mp3""m4b"speed?number0.5 <= value <= 31chapter?|Zero-based index. A chapter builds already-settled audio; it does not start generation.
0 <= valueretrySkipped?booleanRetry skipped segments of a whole book.
includeProgress?booleantruesettings?Advanced explicit settings used by the web app. Omit to use saved preferences.
planning?planObjectKey?stringThe matching file is ready.
application/json- response
id*stringdocumentId*string^[a-f0-9]{64}$status*stringcancelled: someone stopped the request. A POST with the same settings resumes it from the cached audio.
"idle""preparing""queued""generating""complete""stopped""usage_limited""interrupted""failed""building""waiting""ready""cancelled"progress*|0 <= value <= 1provider*stringSpeech provider, as a request names it.
model*stringvoice*stringmodelSpeed*numberThe rate the model speaks at; speed is the finished file's playback speed.
requestedAt*|When it was last requested or cancelled; null when nobody has asked for it.
date-timeformat*string"mp3""m4b"speed*numberchapter*integer|nulldownloadUrl*string|nullfilename*string|nullwebUrl*stringuriwebDownloadUrl*|uriretryAfterMs*number|nullgeneration*segments*|nullartifact*curl -X POST 'https://reader.example/api/v1/documents/string/audiobooks' \ -H 'Content-Type: application/json' \ -d '{ "format": "mp3", "speed": 1}'{ "id": "string", "documentId": "string", "status": "idle", "progress": 0, "provider": "string", "model": "string", "voice": "string", "modelSpeed": 0, "requestedAt": "2019-08-24T14:15:22Z", "format": "mp3", "speed": 0, "chapter": 0, "downloadUrl": "string", "filename": "string", "webUrl": "http://example.com", "webDownloadUrl": "http://example.com", "retryAfterMs": 0, "generation": { "state": "idle", "operationId": "string", "issue": { "code": "string", "message": "string" } }, "segments": { "plannedSegments": 0, "completedSegments": 0, "skippedSegments": 0, "lastSkipIssue": { "code": "string", "message": "string" }, "chapters": [ { "index": 0, "title": "string", "spineHref": "string", "page": 0, "plannedSegments": 0, "completedSegments": 0, "skippedSegments": 0, "generatingSegments": 0, "durationMs": 0 } ] }, "artifact": { "state": "none", "operationId": "string", "issue": { "code": "string", "message": "string" } }}Cancel an audiobook POST
Formats and speeds of the same settings share one generation run, so stopping it also cancels the other whole-book requests that share it. POST to the collection with the same settings resumes from the cached audio.
Delete an audiobook DELETE
Removes the request and its built file. The document's generated audio stays cached, so requesting the same audiobook again reuses it and generates only what was missing. A run no other format shares is stopped first.