Messages
post_messagesThe official Anthropic API endpoint for generating conversational responses using Claude models. This endpoint supports text and multimodal inputs, including images and documents, depending on the capabilities of the selected model. It also supports multi-turn conversations, system instructions, tool use (function calling), extended thinking, prompt caching, structured content blocks, and configurable generation parameters. Group: Anthropic Endpoints. Billing per call: Credits: metered.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | JSON request body. Example: {"model":"claude-opus-5-5","messages":[{"role":"user","content":"There are ten birds in a tree. A hunter shoots one. How many are left in the tree?"}]} |