Skip to main content
Nito serves 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 URL https://app.trynito.ai (the SDK appends /v1/messages); your Nito key as the auth token.
Accepted: 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 system string becomes a role: "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 :confidential variant on either endpoint. See Privacy Levels.

OpenAI SDK Drop-in

The OpenAI shape.

Anthropic Mapping Notes

Field-by-field translation.

Messages Endpoint

Reference.