Keys and secrets
- Store your Key Encryption Key (KEK) in a secure location with backups. If you lose it, Prem cannot recover your data. See Encryption.
- Make a backup of your DEK store. If you lose it, you lose access to your uploaded files.
- Store all keys in environment variables. Do not commit keys to source control. See Quickstart.
- Use one API key for each environment, for example
development,staging, andproduction. See API Keys.
API key security
- Give each API key only the scopes that it needs. A key without explicit scopes has full permissions. See API Keys.
- Add IP restrictions to the keys for critical integrations.
- Rotate your API keys on a regular schedule.
- Do not share one API key between teams or environments.
Reliability
- Retry failed requests with exponential backoff and random jitter. See Rate limits.
- Read the
Retry-Afterheader on429responses. Wait for that time before you retry. - Use idempotency keys for requests that you cannot repeat safely. See Idempotency.
- Handle each error code that the API returns. See Errors.
- Record the
support_idvalue from error responses. Contact support in the week after the error occurs. See Errors.
Capacity and cost
- Confirm that your tier gives enough requests per second, tokens per minute, and concurrent requests. See Rate limits.
- Set a monthly budget limit for your organization. See Limits.
- Configure auto top-up so that your balance does not reach zero. See Balance.
- Monitor your token usage in the dashboard. See Usage.
Verification
- Keep attestation on. The SDK verifies the enclave automatically because
attest: trueis the default. See Attestation. - For independent verification, use the
@premai/reticlepackage to check the attestation reports yourself. - Get the current endpoint values from
dashboard.prem.io/endpoints.jsonat deployment time.
Before launch
- Monitor the platform availability on the status page.
- Read the Security Model page, including the limitations section.
- Read the Platform Status page for the current feature availability.
- Confirm that the models in your code appear in Models & Pricing.

