Skip to main content
POST
Create a message (Anthropic Messages API compatible).

Authorizations

X-API-Key
string
header
required

Company API key - scoped to a specific company. Generate from the Integrations page in your dashboard.

Body

application/json

Message request (Anthropic Messages API compatible)

Request body for creating a message (Anthropic Messages API compatible)

model
string
required

Model ID — any platform model name, or an Anthropic model ID (routed by tier)

messages
object[]
required

Array of input messages

max_tokens
integer
required

Maximum tokens to generate

system
string

System prompt: string or array of text blocks

stream
boolean
default:false

Enable server-sent event streaming

temperature
number

Sampling temperature (0-1)

top_p
number

Nucleus sampling parameter

top_k
integer

Top-k sampling parameter

stop_sequences
string[]

Custom stop sequences

tools
object[]

Tool definitions (Anthropic tool format)

tool_choice
object

Tool choice specification

metadata
object

Request metadata

Response

Message response

Message response (Anthropic Messages API compatible)

id
string

Message ID

type
string

Object type (message)

role
string

Message role (assistant)

model
string

Model used (as requested)

content
object[]

Array of content blocks (text and tool_use)

stop_reason
string

Why generation stopped: end_turn, max_tokens, or tool_use

stop_sequence
string

Stop sequence hit, if any

usage
object

Token usage