Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.redpill.ai/llms.txt

Use this file to discover all available pages before exploring further.

RedPill API

The RedPill API provides access to 50+ AI models through a single, privacy-protected endpoint. Our gateway runs in TEE (Trusted Execution Environment), and GPU TEE models add end-to-end confidential inference on supported providers.
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?

50+ 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="z-ai/glm-5.1",
    messages=[{"role": "user", "content": "Hello!"}]
)
print(response.choices[0].message.content)

Available Models

Confidential AI (GPU TEE)

  • Chutes: GLM 5.1, Kimi K2.6, Qwen3.5, Qwen Coder, MiniMax, MiMo, DeepSeek V3.2
  • Near AI: GLM-5, DeepSeek V3.1, GPT-OSS 120B, Qwen3
  • Phala: Qwen3.5, Qwen3 VL, Gemma, GPT-OSS 20B, embeddings
  • Tinfoil: Qwen Coder, Kimi Thinking, DeepSeek R1, Llama

OpenAI

  • GPT-5.2, GPT-5.1, GPT-5, GPT-4.1
  • O3, O4-mini

Anthropic

  • Claude Opus 4.6, Claude Sonnet 4.6
  • Claude Opus 4.5, Claude Sonnet 4.5, Claude 3.7 Sonnet

Google

  • Gemini 2.5 Pro, Gemini 2.5 Flash

DeepSeek

  • DeepSeek V3.2, DeepSeek V3.1, DeepSeek R1

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

OpenAI SDK

Python, Node.js, and more

LangChain

Build AI applications

Vercel AI

React streaming components

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

Quickstart

Full setup guide in 5 minutes

Authentication

API key management

API Reference

Complete endpoint documentation

Guides

Streaming, function calling, and more