Skip to main content
POST
Create message

Authorizations

x-api-key
string
header
required

Your Kubox API key (kbx_live_…), as sent by Anthropic SDKs.

Body

application/json
model
string
required

A model id from GET /v1/models.

Example:

"coder"

messages
object[]
required

Anthropic message objects, passed through as sent.

Minimum array length: 1
stream
boolean
default:false

When true, the response streams as server-sent events.

Response

The message. JSON when stream is false; text/event-stream of Anthropic events (message_start, content_block_delta, message_delta, message_stop) when true.

The response is of type object.