Skip to main content

RedPill API

The RedPill API provides access to 60+ AI models through a single, privacy-protected endpoint. Our entire gateway runs in TEE (Trusted Execution Environment), ensuring all your requests are hardware-protected regardless of which model you use.
The RedPill API offers access to all models including OpenAI, Anthropic, and more. For consumer use with Confidential AI models only, see RedPill.

Why RedPill API?

60+ Models

Access OpenAI, Anthropic, Google, DeepSeek, Qwen, and more through one API.

TEE-Protected

Entire gateway runs in secure hardware enclaves - all requests are protected.

OpenAI Compatible

Drop-in replacement for OpenAI SDK. Just change the base URL.

Verifiable Privacy

Cryptographic attestation proves your requests ran in genuine TEE.

Quick Start

1. Get Your API Key

Sign up at redpill.ai and get your API key from the dashboard.

2. Make Your First Request

curl https://api.redpill.ai/v1/chat/completions \
  -H "Authorization: Bearer $REDPILL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai/gpt-4o",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

3. Use with OpenAI SDK

from openai import OpenAI

client = OpenAI(
    api_key="your-redpill-api-key",
    base_url="https://api.redpill.ai/v1"
)

response = client.chat.completions.create(
    model="openai/gpt-4o",
    messages=[{"role": "user", "content": "Hello!"}]
)
print(response.choices[0].message.content)

Available Models

OpenAI

  • GPT-4o, GPT-4o-mini, GPT-4 Turbo
  • O1, O1-mini, O3-mini

Anthropic

  • Claude 3.5 Sonnet, Claude 3.5 Haiku
  • Claude 3 Opus

Google

  • Gemini 2.0 Flash, Gemini 1.5 Pro

DeepSeek

  • DeepSeek V3, DeepSeek R1, DeepSeek Coder

Confidential AI (GPU TEE)

  • Phala: DeepSeek V3, Qwen 2.5, GPT-OSS
  • Tinfoil: DeepSeek R1, Llama 3.3
  • Near AI: DeepSeek V3.1, GLM-4

View All Models

See full model catalog with pricing →

API Features

FeatureDescription
Chat CompletionsStandard chat API with streaming support
EmbeddingsText embeddings for RAG and search
ImagesImage generation (DALL-E, etc.)
AudioSpeech-to-text and text-to-speech
AttestationVerify TEE execution cryptographically

SDKs & Integrations

Privacy Architecture

Unlike standard API providers, RedPill’s gateway itself runs in TEE:
RouteWhat HappensWho Sees Your Data
Confidential AIFull GPU TEE protectionNobody - not even model operators
Third-Party AITEE gateway anonymizes requestProvider sees content, but not who you are
This means:
  • Confidential AI: Complete privacy - data never leaves TEE hardware
  • Third-party models: Provider sees the message, but neither they nor RedPill know who sent it
  • Cryptographic attestation proves secure execution
  • No logging of request contents

Next Steps