List the models that may write a book
const url = 'https://digize.com/api/v1/books/example/writers';const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://digize.com/api/v1/books/example/writers \ --header 'x-api-key: <x-api-key>'The models that may write the book, each with what it’s good at, its list price, who pays (Digize’s AI meter, or the workspace’s own OpenAI account for GPT and Anthropic account for Claude), whether it can write now, and about what writing this book, or one chapter again, would cost. picked is the book’s own pick, preselected.
Needs the books:read permission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Responses
Section titled “Responses”Done
object
Whether OpenAI is connected, for GPT.
Whether Anthropic is connected, for Claude; without it a Claude pick writes with GLM-4.7 Flash.
object
What it’s good at.
object
US dollars per million tokens in.
US dollars per million tokens out.
About what writing this book would cost, in US dollars.
About what writing one chapter again would cost.
Whether it can write now: GPT needs OpenAI connected.
The model that writes in its place here, when it can’t itself (Claude without Anthropic connected).
Example
{ "data": [ { "billing": "digize" } ]}What was sent isn’t valid (invalid).
object
object
object
Example
{ "error": { "code": "invalid" }}No key, or one that’s unknown, off or expired.
object
object
object
Example
{ "error": { "code": "invalid" }}The key doesn’t have the permission this needs.
object
object
object
Example
{ "error": { "code": "invalid" }}Nothing has that id (not_found).
object
object
object
Example
{ "error": { "code": "invalid" }}Over the rate limit; see retry-after.
object
object
object
Example
{ "error": { "code": "invalid" }}