Why migrate
- Same API: a drop-in replacement. Keep your OpenAI SDK and code.
- Attested gateway: requests are served through a TEE gateway that signs a receipt for every response.
- More models: not just OpenAI. Also Anthropic, Google, Meta, and confidential (
is_tee) models. - Verifiable: cryptographic attestation and signed receipts you can check yourself.
Migration Steps
Get an API Key
Sign up at redpill.ai and get API key from dashboard
Code Changes
Python
JavaScript
Go
Environment Variables
Update your.env file:
What stays the same
- All SDK methods
- Request and response format
- Streaming
- Function calling
- Vision
- Embeddings
- Error handling
What’s new
- Attested gateway: every response carries a signed receipt.
- More providers: Anthropic, Google, Meta, and more, through one endpoint.
- Attestation: verify which TEE workload served you.
- Confidential models:
is_teemodels run on a verified upstream enclave.
Model Mapping
| OpenAI Model | RedPill Equivalent |
|---|---|
gpt-4 | openai/gpt-4 (same) |
gpt-5 | openai/gpt-5 (same) |
gpt-3.5-turbo | openai/gpt-3.5-turbo (same) |
| - | z-ai/glm-5 (verified provider) |
| - | anthropic/claude-sonnet-4.5 |
All OpenAI models work identically on the platform, plus 200+ additional models!
Pricing
The platform charges the same price as OpenAI, with TEE protection included at no extra cost.Gradual Migration
Test with a few requests first:Checklist
- Get an API key
- Update environment variables
- Change base URL in code
- Test with sample requests
- Monitor usage/costs
- Full migration
Get Started
Start using the platform now →