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, and :confidential IDs work here; 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. - Use a Nito catalog ID from
GET /v1/modelsin themodelfield. - Every call on either endpoint runs in privacy-preserving hardware. End-to-end encryption runs on Chat Completions only. See How Privacy Works.
Related
OpenAI SDK Drop-in
The OpenAI shape.
Anthropic Mapping Notes
Field-by-field translation.
Messages Endpoint
Reference.

