Why Migrate?
✅ Same API - Drop-in replacement ✅ TEE Protection - All requests hardware-protected ✅ 218+ Models - Not just OpenAI models ✅ Same Price - No markup ✅ Verifiable - Cryptographic attestationMigration 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 handlingWhat’s New
🆕 TEE Protection - All requests protected 🆕 218+ Models - Access Anthropic, Google, Meta, etc. 🆕 Attestation - Verify TEE execution 🆕 Signatures - Cryptographic proofModel Mapping
OpenAI Model | RedPill Equivalent |
---|---|
gpt-4 | gpt-4 (same) |
gpt-4-turbo | gpt-4-turbo (same) |
gpt-3.5-turbo | gpt-3.5-turbo (same) |
- | phala/deepseek-chat-v3-0324 (TEE) |
- | anthropic/claude-3.5-sonnet |
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 →