Skip to main content
POST
Create chat completion

Authorizations

Authorization
string
header
required

LLM Router API Key (e.g., sk-llmr-...)

Body

application/json

Chat completion request parameters

Accepts any additional properties supported by the upstream model (e.g., tools, top_p, response_format).

model
string
required

ID of the model to use (e.g., anthropic/claude-3-5-sonnet)

messages
object[]
required
temperature
number
default:1
max_tokens
integer
stream
boolean
default:false
gateway
object

Custom LLM Router configurations injected into the request.

Response

Successful chat completion response

id
string
object
string
created
integer
model
string
choices
object[]
usage
object