POST
Create a chat completion

Authorizations

Authorization
string
header
required

A Slashy API key (slsh_live_...) from labs.slashy.com/keys.

Body

application/json
model
enum<string>
required
Available options:
echo
messages
object[]
required

The last message must come from the user or system.

Required array length: 1 - 512 elements
max_tokens
integer

Output limit. Defaults to what is left of the 262,144-token context.

Required range: x >= 1
max_completion_tokens
integer

Same as max_tokens; wins if both are set.

Required range: x >= 1
temperature
number
default:1
Required range: 0 <= x <= 2
top_p
number
Required range: 0 <= x <= 1
min_p
number
default:0.1
Required range: 0 <= x <= 1
presence_penalty
number
Required range: -2 <= x <= 2
frequency_penalty
number
Required range: -2 <= x <= 2
seed
integer
stop
response_format
object
references
(string | object)[]

Prose's own field (send it with extra_body in OpenAI SDKs): writing for Prose to match the voice of, your own or anyone else's. A string that is only a link is read for you (an article, or a LinkedIn or X post); any other string is the text itself. Each reference keeps up to 600 words. See Match a voice with references.

Maximum array length: 5
Minimum string length: 1
stream
boolean
default:false
stream_options
object
n
integer

Response

The completion, or a stream of chunks when stream is true.

id
string
required
object
string
required
Allowed value: "chat.completion"
created
integer
required
model
string
required
Allowed value: "echo"
choices
object[]
required
usage
object
required
system_fingerprint
null