POST
Write

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Prefer
enum<string>

Send respond-async to receive the 202 immediately.

Available options:
respond-async

Body

application/json
prompt
string
required

A brief, notes, or an existing draft.

Example:

"Write a short email asking Sam whether Thursday morning works for a call."

max_tokens
integer
default:1024

Output allowance. The prompt plus this must fit in 262,144 tokens.

Required range: x >= 1

Response

The finished draft.

request_id
string
model
string
Example:

"rl-if100-step020"

text
string
finish_reason
enum<string>
Available options:
stop,
length
usage
object