Skip to main content
Three changes: base URL, API key, model ID. Messages, streaming, tool calls, and the response shape stay the same.
The base URL must end in /v1; the SDK appends /chat/completions. Use catalog IDs from GET /v1/models, such as moonshotai/kimi-k3.1-pro:confidential. See model mapping. resp.choices[0].message.content is the text and resp.usage the tokens. Streaming works as in the OpenAI SDK: stream=True or stream: true.

Privacy

Every call runs inside privacy-preserving hardware, with attestation evidence you can verify. Request fresh evidence for your model from Get attestation. See How Privacy Works.

Notes

  • Nito also serves a stateless POST /v1/responses shim. Chat Completions is the primary surface.
  • A 429 carries Retry-After and X-RateLimit-* headers. See Rate Limits.

Make Your First Request

Field by field.

Chat Completions

The endpoint.