Skip to main content

Create a message (Anthropic)

POST 

/v1/messages

Accepts an Anthropic Messages request and runs it through the same proxium loop as /v1/chat/completions: proxium translates the request to the OpenAI chat shape, routes it to any provider, and translates the answer back to the Anthropic shape. With stream: true, the answer is Anthropic server-sent events. Each error body is in the Anthropic shape. The virtual key goes in Authorization: Bearer, or in x-api-key as the Anthropic SDKs send it.

Request​

Responses​

The answer in the Anthropic shape.