Anthropic Messages
Create a message
Reference for POST /v3/anthropic/v1/messages: send the Anthropic Messages body to the gateway and get a message object or a stream of events.
POST
Create a message
Related guide: Anthropic Messages API. See the Anthropic Messages API guide for the authentication headers, the supported providers, and the
cache_control breakpoints.Authorizations
Body
application/json
Response
Returns a message object, or a stream of server-sent events.
content
(Text · object | Thinking · object | Redacted thinking · object | Tool use · object | Server tool use · object | Web search tool result · object | Tool search tool result · object | Compaction · object | Provider block · object)[]
required
Output blocks, in the order the model produced them.
Output block. The type field selects the block.
- Text
- Thinking
- Redacted thinking
- Tool use
- Server tool use
- Web search tool result
- Tool search tool result
- Compaction
- Provider block