Popular Frameworks
RedPill’s OpenAI-compatible API works seamlessly with popular AI frameworks and SDKs.OpenAI SDK
Official OpenAI Python and TypeScript SDKs
LangChain
Build complex AI applications with LangChain
Vercel AI SDK
Build streaming AI UIs with React and Next.js
Langfuse
LLM observability and analytics
Quick Start
All integrations follow the same pattern:1
Install the SDK
Install your preferred framework or SDK
2
Configure Base URL
Point to RedPill’s API endpoint:
https://api.redpill.ai/v1
3
Add API Key
Use your RedPill API key for authentication
4
Choose Models
Select from 218+ models with provider prefix (e.g.,
openai/gpt-4o
)Why Use RedPill?
TEE-Protected Privacy
TEE-Protected Privacy
All requests flow through hardware-protected Trusted Execution Environments, regardless of which framework you use.
218+ Models
218+ Models
Access models from OpenAI, Anthropic, Google, DeepSeek, and more through a single API.
OpenAI-Compatible
OpenAI-Compatible
Works with any tool that supports OpenAI’s API format - just change the base URL.
Confidential AI
Confidential AI
Use Phala’s TEE models for end-to-end confidential AI processing.
Integration Comparison
Framework | Best For | Language | Difficulty |
---|---|---|---|
OpenAI SDK | Simple integrations | Python, TypeScript | Easy |
LangChain | Complex AI apps, RAG | Python, TypeScript | Medium |
Vercel AI SDK | React/Next.js UIs | TypeScript | Easy |
Langfuse | Observability | Python, TypeScript | Easy |
Example: Switch to RedPill
Before (Direct OpenAI)
After (RedPill with TEE Protection)
That’s it! Just 2 small changes and you get TEE privacy protection + access to 218+ models.
Community Integrations
These tools also work with RedPill’s OpenAI-compatible API:- Continue - AI code assistant for VS Code
- Cursor - AI-powered code editor
- LibreChat - ChatGPT-like interface
- BetterChatGPT - Web UI for OpenAI API
- ChatGPT Next Web - Self-hosted ChatGPT web UI