Skip to main content
Version: Next

Create a message

POST 

/v1/messages

Answers a conversation in the shape of the Anthropic Messages API, so Anthropic SDKs and tools work by pointing their base URL at Spice. model names any chat model in the Spicepod: a model with from: anthropic receives the request as sent, and any other model receives it translated into a chat completion. The request and the response, streamed ("stream": true) or not, follow the Messages API reference: <https://docs.claude.com/en/api/messages>.

Request​

Responses​

The model's message, or with "stream": true, its stream of server-sent events