Anthropic Messages API
Send a structured list of input messages with text and/or image content, and the model will generate the next message in the conversation. The Messages API supports text, images, tool use, extended thinking, streaming, structured outputs, prompt caching, compaction, and the new advisor tool for pairing executor and higher-intelligence advisor models.
Documentation
Documentation
https://docs.anthropic.com/en/api/messages
Documentation
https://docs.anthropic.com/en/api/messages-streaming
Specifications
OpenAPI
https://raw.githubusercontent.com/api-evangelist/anthropic/refs/heads/main/openapi/anthropic-messages-api-openapi.yml
AsyncAPI
https://raw.githubusercontent.com/api-evangelist/anthropic/refs/heads/main/asyncapi/anthropic-asyncapi.yml
Schemas & Data
JSONSchema
https://raw.githubusercontent.com/api-evangelist/anthropic/refs/heads/main/json-schema/anthropic-message-schema.json
JSONSchema
https://raw.githubusercontent.com/api-evangelist/anthropic/refs/heads/main/json-schema/anthropic-tool-use-schema.json