Generate covers for a book (async)
Queues an asynchronous cover-generation job through the V2 engine and returns 202 immediately. Costs count credits (reserved up-front; unused credits for partially/fully failed generations are refunded). Every genre is supported; a book in a genre that uses subgenres but has none set gets one before its first render, as in the app: the detected subgenre at confidence 50 or higher, else the genre's default (stored on the book). 422 unsupported_genre remains as a safety net for a genre/subgenre with no route. Note: unlike the other job-creating endpoints, the fresh 202 envelope from this endpoint does NOT include an operation field (the idempotent 200 replay does).
Request
- Base URL: https://beyourcover.com
- URL: https://beyourcover.com/api/v1/covers/generate
- Auth: HTTP bearer
Headers
Optional idempotency key. If a resource/job was already created with the same key (scoped to the API key for jobs, to the user for books), the endpoint returns 200 with the existing resource instead of creating a duplicate. Concurrent duplicates are also collapsed via a unique-constraint retry.
Request body
Response
Idempotent replay: a job with the same Idempotency-Key already exists for this API key. Includes operation.
Changes
No recorded changes to this operation across all 1 revision of this API.