Skip to main content

Create a key

Create one in the developer console at app.trynito.ai/api, then export it:

Send a request

With curl, or with the OpenAI SDK pointed at Nito (pip install openai or npm install openai). The base URL ends in /v1; the SDK appends /chat/completions.
The reply is at choices[0].message.content; usage reports the tokens used.
That is it. You are calling Nito.

Try Next

  • Switch models. Change model and nothing else, for example to deepseek/deepseek-v4.1-flash:confidential. GET /v1/models is the live list. See Model List.
  • Check the attestation. Every call runs inside privacy-preserving hardware. Fetch the evidence for your model from Get attestation and verify it yourself. See How Privacy Works.
  • Stream the reply. Add stream: true. See Stream Your First Response.

If Something Fails

  • 401: the key is missing, mistyped, or not sent as Authorization: Bearer <key>. Keys start with nito_sk_.
  • 400 naming the model: the ID is not in the catalog. Copy an exact one from GET /v1/models.
  • 429 with insufficient_quota: the organization has no funding. An API key needs a subscription or a prepaid balance; add funds on Billing. See Plans.

Next

Make Your First Request

The same call, field by field.

Stream Your First Response

Tokens as they arrive.

OpenAI SDK Drop-in

Existing OpenAI code.

How Privacy Works

Hardware and attestation.