Secure mode: a sealed conversation

The body is an envelope sealed to the enclave's attested key; the answer is a stream of sealed pieces. Use the TypeScript SDK's secureChat rather than building this by hand. API subscription only. Charged a fixed price per message: the model's rate for the request's size plus 4,096 output tokens.

post/sealed/chat

Request

  • Base URL: https://secureai.one/v1
  • URL: https://secureai.one/v1/sealed/chat
  • Auth: HTTP bearer

Headers

X-Modelstring required

Request body

v1 required
kstring required

Session key wrapped with RSA-OAEP-SHA-256, base64

cstring required

IV and AES-256-GCM ciphertext of the request, base64

Response

Sealed pieces as server-sent events

Changes

No recorded changes to this operation across all 1 revision of this API.