Skip to content

List the models that may write a book

GET
/api/v1/books/{bookId}/writers
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.

bookId
required
string
>= 1 characters <= 64 characters

Done

Media typeapplication/json
object
picked
required
string
openAi
required

Whether OpenAI is connected, for GPT.

boolean
claude
required

Whether Anthropic is connected, for Claude; without it a Claude pick writes with GLM-4.7 Flash.

boolean
data
required
Array<object>
object
id
required
string
name
required
string
maker
required
string
good
required

What it’s good at.

string
billing
required
string
Allowed values: digize openai anthropic
price
required
object
input
required

US dollars per million tokens in.

number
output
required

US dollars per million tokens out.

number
estimate
required

About what writing this book would cost, in US dollars.

number
chapterEstimate
required

About what writing one chapter again would cost.

number
available
required

Whether it can write now: GPT needs OpenAI connected.

boolean
writesWith
required

The model that writes in its place here, when it can’t itself (Claude without Anthropic connected).

string | null

Example

{
"data": [
{
"billing": "digize"
}
]
}

What was sent isn’t valid (invalid).

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

No key, or one that’s unknown, off or expired.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

The key doesn’t have the permission this needs.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

Nothing has that id (not_found).

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

Over the rate limit; see retry-after.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}