Skip to main content

GatewayMessagesRequest

An Anthropic Messages request. Parameters not listed here are passed to the provider as sent.

modelstringrequired

The name of one of your gateway routers

Example: prod-gateway
max_tokensinteger
Example: 1024
messagesobject[]required
streamboolean
Default value: false
session_idstring

The conversation the request belongs to, when no header carries it. Read by the gateway and not sent to the provider.

property name*any

An Anthropic Messages request. Parameters not listed here are passed to the provider as sent.

GatewayMessagesRequest
{
"model": "prod-gateway",
"max_tokens": 1024,
"messages": [
{}
],
"stream": false,
"session_id": "string"
}