Why Migrate?
- ✅ Same API - Drop-in replacement
- ✅ TEE Protection - All requests hardware-protected
- ✅ 50+ Models - Not just OpenAI models
- ✅ Same Price - No markup
- ✅ Verifiable - Cryptographic attestation
Migration Steps
1
Get RedPill API Key
Sign up at redpill.ai and generate API key
2
Update Base URL
Change base URL from OpenAI to RedPill:
3
Test
Make a test request - everything else stays the same!
Code Changes
Python
JavaScript
Go
Environment Variables
Update your.env file:
What Stays the Same
- ✅ All SDK methods
- ✅ Request/response format
- ✅ Streaming
- ✅ Function calling
- ✅ Vision models
- ✅ Embeddings
- ✅ Error handling
What’s New
- 🆕 TEE Protection - All requests protected
- 🆕 50+ Models - Access Anthropic, Google, Meta, etc.
- 🆕 Attestation - Verify TEE execution
- 🆕 Signatures - Cryptographic proof
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) |
| - | phala/deepseek-chat-v3-0324 (TEE) |
| - | anthropic/claude-sonnet-4.5 |
All OpenAI models work identically on RedPill, plus 200+ additional models!
Pricing
RedPill charges the same price as OpenAI, with TEE protection included at no extra cost.Gradual Migration
Test with a few requests first:Checklist
- Get RedPill API key
- Update environment variables
- Change base URL in code
- Test with sample requests
- Monitor usage/costs
- Full migration
Get Started
Start using RedPill now →