Skip to main content
POST
Create an Anthropic message
Include x-api-key: API_KEY, anthropic-version: 2023-06-01, and Content-Type: application/json.
The response has id, type, role, content[], model, stop_reason, stop_sequence, and usage. Streaming returns message, content-block, and ping events.