Skip to main content
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

Install the SDK. Use it like an OpenAI client:
The SDK does these steps for you:
  • 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.
You do not see these steps. Your code looks like an OpenAI integration.

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:
Then point your existing code at localhost:
You make zero code changes to your application logic. The Confidential Proxy encrypts outbound requests and decrypts responses automatically. See Confidential Proxy for the full configuration and Anthropic support.

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.