Skip to main content
The 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 the API endpoint: https://api.redpill.ai/v1
3

Add API Key

Use your API key for authentication
4

Choose Models

Select from a broad range of models with provider prefix (e.g., openai/gpt-5)

Why Use the Platform?

Requests are served through the attested TEE gateway, which does not retain request bodies. Confidential (is_tee) models additionally run on a verified upstream enclave.
Access models from OpenAI, Anthropic, Google, DeepSeek, and more through a single API.
Works with any tool that supports OpenAI’s API format - just change the base URL.
Use confidential (is_tee) models for end-to-end private AI processing.

Integration Comparison

FrameworkBest ForLanguageDifficulty
OpenAI SDKSimple integrationsPython, TypeScriptEasy
LangChainComplex AI apps, RAGPython, TypeScriptMedium
Vercel AI SDKReact/Next.js UIsTypeScriptEasy
LangfuseObservabilityPython, TypeScriptEasy

Example: Switch to the Platform

Before (Direct OpenAI)

from openai import OpenAI

client = OpenAI(api_key="sk-openai-key")

response = client.chat.completions.create(
    model="gpt-4",
    messages=[{"role": "user", "content": "Hello"}]
)

After (With Privacy Protection)

from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://api.redpill.ai/v1"  # Only 1 line change!
)

response = client.chat.completions.create(
    model="openai/gpt-5",  # Add provider prefix
    messages=[{"role": "user", "content": "Hello"}]
)
That’s it! Just 2 small changes and your requests flow through the TEE-protected gateway with access to a broad range of models.

Community Integrations

These tools also work with the 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

Need Help?

Discord Community

Get help from the community

GitHub Examples

Browse code examples