Skip to main content
POST
Create a chat completion

Authorizations

Authorization
string
header
required

A workspace API key (fn_...).

Body

application/json
model
string
required

A model id from GET /v1/models.

Example:

"your-workspace-model"

messages
object[]
required
stream
boolean

Stream the response as server-sent events.

temperature
number
max_tokens
integer

Response

A chat completion in the OpenAI format (or an event stream when stream is true).

The response is of type object.