Skip to main content
POST
Create an Anthropic-compatible message

Authorizations

Authorization
string
header
required

Use an API key created in the NinjaChat developer console.

Headers

Idempotency-Key
string

Safely retry the same logical write without duplicate billing or execution.

Required string length: 1 - 255

Body

application/json
model
string
required
Required string length: 1 - 160
max_tokens
integer
required
Required range: x <= 9007199254740991
messages
object[]
required
Required array length: 1 - 100 elements
system
stream
boolean
temperature
number
Required range: 0 <= x <= 1
top_p
number
Required range: 0 <= x <= 1
stop_sequences
string[]
Maximum array length: 4
tools
object[]
Maximum array length: 32
tool_choice
object
metadata
object
output_config
object
routing
object

Response

Anthropic Message object or Messages SSE lifecycle.

The response is of type object.