POST /v1/messages and POST /v1/messages/count_tokens in the Anthropic shape. Point the SDK at Nito directly, or use the OpenAI shape through Chat Completions.
Messages
Base URLhttps://app.trynito.ai (the SDK appends /v1/messages); your Nito key as the auth token.
system, messages (user and assistant), max_tokens, temperature, top_p, tools, tool_choice, thinking, stream. Model IDs are catalog IDs. :confidential model IDs work here too; the Chat Completions feature suffixes (?reasoning_effort=...) do not. Full fields: Messages endpoint.
Chat Completions
Mapping
- Anthropic’s top-level
systemstring becomes arole: "system"message on Chat Completions. - Anthropic model names are not Nito IDs. Use
anthropic/claude-sonnet-5. - Claude models run at Anonymous. For attested calls, choose an open-weight model with a
:confidentialvariant on either endpoint. See Privacy Levels.
Related
OpenAI SDK Drop-in
The OpenAI shape.
Anthropic Mapping Notes
Field-by-field translation.
Messages Endpoint
Reference.

