Skip to main content
POST
Chat Completion

Authorizations

Authorization
string
header
required

Fanify API key.

Headers

Idempotency-Key
string

Optional idempotency key, from 1 to 255 characters.

Body

application/json

OpenAI-compatible chat completion request. Additional top-level fields are forwarded. The stream field must be omitted or false; n is not supported and must be omitted.

model
string
required
messages
object[]
required

Response

OpenAI-compatible chat completion.

The response is of type object.