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, 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 system string becomes a role: "system" message on Chat Completions.
  • Use a Nito catalog ID from GET /v1/models in the model field.
  • Every call on either endpoint runs in privacy-preserving hardware. End-to-end encryption runs on Chat Completions only. See How Privacy Works.

OpenAI SDK Drop-in

The OpenAI shape.

Anthropic Mapping Notes

Field-by-field translation.

Messages Endpoint

Reference.