Skip to main content
POST
Create an Anthropic Messages-compatible message

Authorizations

Authorization
string
header
required

Org API key as Authorization: Bearer z_sk_...

Body

application/json

Request payload for createAnthropicMessage. Examples use placeholder-safe values and do not include real secrets or private prompt content.

Schema for AnthropicMessagesRequest values returned by or accepted by the Nito gateway.

messages
object[]
required

The messages field on AnthropicMessagesRequest.

Minimum array length: 1

Nested schema within AnthropicMessagesRequest for AnthropicMessagesRequest.messages.items.

Example:
max_tokens
integer

The max_tokens field on AnthropicMessagesRequest.

Example:

12

metadata
object

The metadata field on AnthropicMessagesRequest.

Example:
model
string

The model field on AnthropicMessagesRequest.

Example:

"openai/gpt-5.5"

output_config
object

The output_config field on AnthropicMessagesRequest.

Example:
service_tier
string

The service_tier field on AnthropicMessagesRequest.

Example:

"example"

stream
boolean

The stream field on AnthropicMessagesRequest.

Example:

true

system

The system field on AnthropicMessagesRequest.

Example:

"example"

temperature
number

The temperature field on AnthropicMessagesRequest.

Example:

0.5

thinking
object

The thinking field on AnthropicMessagesRequest.

Example:
tool_choice
object

The tool_choice field on AnthropicMessagesRequest.

tools
object[]

The tools field on AnthropicMessagesRequest.

Nested schema within AnthropicMessagesRequest for AnthropicMessagesRequest.tools.items.

Example:
top_p
number

The top_p field on AnthropicMessagesRequest.

Example:

0.5

Response

Anthropic JSON response or server-sent event stream.

Schema for AnthropicMessageResponse values returned by or accepted by the Nito gateway.

content
object[]
required

The content field on AnthropicMessageResponse.

Example:
id
string
required

The id field on AnthropicMessageResponse.

Example:

"00000000-0000-4000-8000-000000000001"

model
string
required

The model field on AnthropicMessageResponse.

Example:

"openai/gpt-5.5"

role
enum<string>
required

The role field on AnthropicMessageResponse.

Available options:
assistant
Example:

"assistant"

stop_reason
string
required

The stop_reason field on AnthropicMessageResponse.

Example:

"example"

stop_sequence
string | null
required

The stop_sequence field on AnthropicMessageResponse.

Example:

"example"

type
enum<string>
required

The type field on AnthropicMessageResponse.

Available options:
message
Example:

"message"

usage
object
required

The usage field on AnthropicMessageResponse.

Example: