Skip to main content
POST
Create message (Anthropic)

Authorizations

Authorization
string
header
required

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

Body

application/json

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 response

id
string
type
string
default:message
role
string
default:assistant
model
string
content
object[]
stop_reason
string
stop_sequence
string
usage
object