You do not need encryption knowledge. The encryption layer is not visible in your application code. If you used the OpenAI API before, you know how to use Prem API. The SDK does all cryptography automatically. You write normal API calls and you get normal responses.
Two Ways to Integrate
Option 1: Prem API TypeScript SDK (Recommended)
Install the SDK. Use it like an OpenAI client:- It encrypts your messages before it sends them.
- It does a secure key exchange with the enclave.
- It decrypts each streaming chunk when the chunk arrives.
Option 2: Confidential Proxy (Any Language)
The SDK includes the Confidential Proxy, a local server that does all encryption for you. Use it for Python, Go, Java, or other languages with an OpenAI-compatible client library:localhost:
What You Can Do
Chat with AI Models
The chat API is OpenAI-compatible. It includes these features:Error Handling
Prem API uses standard HTTP status codes with structured error responses:
Each error includes a
support_id. Give this ID to the Prem team to help with debugging.
Rate Limits
Rate limits apply to each organization, across four dimensions:
Limits increase across the tiers (Free, Tier 1, Tier 2, Tier 3) when your usage grows. See Rate Limits for the values and for retry strategies with code examples.
See the Quickstart for the step-by-step setup. See the Guides for examples that you can copy.

