Anthropic Messages
Use DeerAPI to call the Anthropic Messages endpoint with request details, response details, examples, and an OpenAPI playground.
Overview
Use this endpoint to call the Anthropic Messages workflow through DeerAPI. The API reference on this page shows the request schema, response schema, authentication requirements, and runnable examples for the configured endpoint.Before you start
Use the DeerAPI base URL and pass your API Key in theAuthorization header:
Model selection
Choose a current model ID from the live pricing page. Model availability changes over time, so avoid copying a model ID from an old project without checking the live list first.Implementation notes
- Use the OpenAPI playground for the exact request fields accepted by this endpoint.
- Keep API Keys on the server side when you build production applications.
- Log the request ID from failed calls so support can investigate the request.
- Retry
429,500, and503responses with exponential backoff.
Authorizations
Use a DeerAPI API Key as a Bearer token.
Body
Use this field according to the endpoint schema.
Use this field according to the endpoint schema.
Use this field according to the endpoint schema.
Use this field according to the endpoint schema.
Use this field according to the endpoint schema.
Use this field according to the endpoint schema.
Use this field according to the endpoint schema.
Use this field according to the endpoint schema.
Use this field according to the endpoint schema.
Use this field according to the endpoint schema.
Use this field according to the endpoint schema.
Use this field according to the endpoint schema.
auto, standard_only Use this field according to the endpoint schema.
Use this field according to the endpoint schema.
Use this field according to the endpoint schema.
Use this field according to the endpoint schema.
0 <= x <= 1Use this field according to the endpoint schema.
Use this field according to the endpoint schema.
Use this field according to the endpoint schema.
Use this field according to the endpoint schema.
Use this field according to the endpoint schema.
0 <= x <= 1Response
Successful Response
Use this field according to the endpoint schema.
Use this field according to the endpoint schema.
message Use this field according to the endpoint schema.
assistant Use this field according to the endpoint schema.
Use this field according to the endpoint schema.
Use this field according to the endpoint schema.
end_turn, max_tokens, stop_sequence, tool_use, pause_turn, refusal Use this field according to the endpoint schema.
Use this field according to the endpoint schema.
Use this field according to the endpoint schema.