Anthropic Messages API Reference
Send Anthropic Messages API requests to Claude models with the official Anthropic SDKs, without guardrails.
Guide: Anthropic Messages
Authorizations
Bearer authentication header of the form Bearer <api-key>, where <api-key> is your API key.
Headers
Body
An Anthropic Messages request. Fields are as defined by Anthropic's Messages API. Any other top-level field is dropped and named in x-gloo-ignored-params.
The conversation. Roles are user and assistant. Content is a string or an array of blocks: text, image (base64 or URL source), document (base64, text, content or URL source), search_result, tool_use, tool_result, thinking, redacted_thinking, and server_tool_use / web_search_tool_result when the web search tool is in tools. thinking and redacted_thinking blocks are accepted but not passed to the model; the x-gloo-ignored-params header lists messages.thinking when any were sent.
1Response
The model's message. With stream: true, a Server-Sent Events stream of Anthropic's Messages events (message_start, content_block_start, content_block_delta, content_block_stop, message_delta, message_stop, ping). A failure after the stream starts ends it with an error event.

