/v1/messages directly. These mappings are for routing it through /v1/chat/completions instead.
system field is not read on Chat Completions.
Accepted roles: system, user, assistant, tool, developer. Claude models appear under anthropic/: anthropic/claude-sonnet-5, anthropic/claude-opus-5, anthropic/claude-haiku-4-5. Anthropic tool use maps to Chat Completions tool calling. Token counting on Chat Completions comes from usage; /v1/messages/count_tokens exists for a dedicated call.
Differences
system_fingerprintis alwaysnull.- The error envelope is
{"error": {"message", "code", "param"}}with notype. - Exactly one choice.
- The level travels with the model:
:confidentialfor attested hardware; Encrypted runs on Chat Completions only, with extra headers. See Privacy Levels.
Related
SDKs
Overview.
Anthropic SDK Drop-in
Quickstart.
Base URL Swap
Two paths in.
Tool Calling
Function calls.
Chat Completions
The endpoint.
Privacy Levels
The four levels.

