Skip to main content
POST /v1/messages serves the Anthropic Messages shape over the same memory wrapper as Chat, so an application built on the Anthropic SDK gets memory by changing its base URL.
The key can be sent as x-api-key (what the Anthropic SDK does) or as Authorization: Bearer, the same Anona key either way.
The shape is a wire format, not a provider. model is a hint: the model that actually answers is the one this deployment serves, and you never supply a provider key.

Request

All memory tunables apply here, in the body or as X-Anona-* headers.

Response

memories_injected and space_id are the Anona additions, and also arrive as the X-Anona-Memories-Injected and X-Anona-Space-Id response headers.

Streaming

"stream": true emits the Anthropic named-event sequence:
As on Chat, a failure before the first token is a normal JSON error with a real status code; the turn is recorded and billed after the stream ends.