POST /v1/chat/completions or POST /api/v1/chat/completions. Your client verifies the model’s attestation, encrypts the request locally, and authenticates and decrypts the reply. The attestation’s encryption_protocol determines the wire format.
The Model
Choose an:encrypted ID from GET /v1/models?privacy_tier=encrypted. The Model List also marks available variants. Fetch current evidence and the transport metadata from the attestation endpoint before sending a request.
The Flow
- Call Get attestation for the encrypted model with
trust_tier=encryptedand the version 2 sealed-binding headers. Openmodel_bindingto recover the native model ID and exactproof_format. - Use the recovered proof format to verify the evidence and its binding to the model and transport key. Stop if verification fails or the transport is unknown. See Verify It Yourself.
- For field encryption, encrypt each message locally using the attested suite. Send the JSON with the field-encryption headers below. For whole-body encryption, follow the EHBP request format. The protocol guide describes both formats.
Headers
These headers apply to field-encrypted JSON requests.
For field-encrypted JSON, sending
:encrypted without the headers, or the headers with a model that is not :encrypted, returns 400 invalid_request.
What Works
- Streaming and reasoning. On supported routes, set
stream: true. For field encryption, authenticate and decrypt each complete envelope before assembling the plaintext deltas. For whole-body encryption, decrypt the frames before parsing server-sent events. Models can return visible reasoning even without a configurable reasoning level. Send reasoning controls only when the model advertises them. - Files and images. Check the model’s image and file capabilities. On compatible field-encryption routes, serialize the content array and encrypt it as one
messages[].contentstring. With whole-body encryption, place supported parts inside the JSON before encrypting. For text-only routes, extract document text locally and encrypt it as message content. - Function tools. On field-encryption routes that support function tools, set
nito-encrypted-encrypt-all-fields: 1and encrypt the tool fields as described in the protocol guide. With whole-body encryption, place supported function definitions inside the encrypted JSON. In both cases your client decrypts the tool call, runs the function, and encrypts its result for the next request.
Supply your own web context
Send the query or URLs you choose to a standalone retrieval endpoint:
Authenticate with an organization API key or a CLI OAuth credential with
cli:inference. The retrieval service receives the query or URLs in plaintext. Add the returned passages you want to your chat message, then encrypt it before sending it to Chat Completions.
Endpoint and Parameters
Encrypted requests use Chat Completions. Each encrypted model lists the request parameters it accepts insupported_parameters on List models. Send only those.
Response Verification
On field-encryption routes that support it, setnito-encrypted-response-evidence: 1 with stream: false to request the signed exchange. Your client verifies it against independently verified attestation. See Response Evidence.
The ehbp-v1 Transport
When the attestation reports encryption_protocol: "ehbp-v1", the whole chat request is one encrypted HTTP body. Verify the enclave bundle from the attestation, encrypt the JSON request to the enclave’s transport key, and send the ciphertext to POST /v1/chat/completions with these headers. The nito-encrypted field-encryption headers above stay off this request.
Each routing header carries one nonempty value. Matching legacy and current aliases are accepted during migration; conflicting aliases are rejected before dispatch. A missing, empty, or repeated
Nito-Encrypted-Enclave-Url or Nito-Encrypted-Model returns 400 invalid_request before the request leaves the gateway. The gateway validates the selected enclave destination and pins its transport key before relaying ciphertext to that origin. The client still performs independent bundle verification. The enclave checks that Nito-Encrypted-Model equals the model inside the encrypted body before inference.
A successful response carries Ehbp-Response-Nonce, which your client needs to decrypt the body. The body stays ciphertext under its application/json or text/event-stream media type, so decrypt first and parse second. Use an organization API key or a CLI OAuth credential with credit-backed usage available. Every HTTP request is a separate inference, so avoid automatic replay after an ambiguous failure.

