# RedPill AI - [Get started with RedPill](https://docs.redpill.ai/get-started/introduction.md): A confidential AI inference API you can verify. Every response is served from a TEE and backed by an attestation report and a signed receipt. - [Quickstart](https://docs.redpill.ai/get-started/quickstart.md): Make your first API call, then confirm it was served from an attested gateway. - [Models](https://docs.redpill.ai/get-started/models.md): Model ids, confidential versus standard models, and how to confirm which kind served a response. - [Billing](https://docs.redpill.ai/get-started/billing.md): Pay-as-you-go credits in USD: what a request costs, how to add credits, key budgets, and where to read usage. - [Rate limits](https://docs.redpill.ai/get-started/rate-limits.md): Requests per minute per workspace, per-model ceilings, key limits, and what a 429 response carries. - [Account MCP](https://docs.redpill.ai/get-started/mcp.md): Let an agent read and manage your RedPill account, models, API keys, workspaces, and usage through the RedPill MCP server. - [RedPill CLI](https://docs.redpill.ai/get-started/cli.md): Manage RedPill organizations, workspaces, models, billing, API keys, and usage from a terminal or script. - [Use in agents](https://docs.redpill.ai/get-started/use-in-agents.md): Connect Claude Code, Codex, OpenCode, Pi, and other agents to RedPill through Private AI Proxy, or with a plain base URL. - [Private AI Proxy](https://docs.redpill.ai/get-started/private-ai-proxy.md): The desktop app and CLI that verifies the RedPill gateway on your machine and connects your agents to a verified local API. - [Claude Code](https://docs.redpill.ai/guides/integrations/coding-tools/claude-code.md): Run Claude Code on RedPill through Private AI Proxy, or configure it by hand. - [Codex CLI](https://docs.redpill.ai/guides/integrations/coding-tools/codex-cli.md): Run Codex CLI on RedPill through Private AI Proxy, or configure it by hand. - [Pi](https://docs.redpill.ai/guides/integrations/coding-tools/pi.md): Run Pi on RedPill through Private AI Proxy, or configure it by hand. - [OpenCode](https://docs.redpill.ai/guides/integrations/coding-tools/opencode.md): Run OpenCode on RedPill through Private AI Proxy, or configure it by hand. - [Cline](https://docs.redpill.ai/guides/integrations/coding-tools/cline.md): Run Cline on RedPill through Private AI Proxy, or configure it by hand. - [OpenClaw](https://docs.redpill.ai/guides/integrations/runtimes/openclaw.md): Run OpenClaw on RedPill through Private AI Proxy, or configure it by hand. - [Hermes](https://docs.redpill.ai/guides/integrations/runtimes/hermes.md): Run Hermes Agent on RedPill through Private AI Proxy, or configure it by hand. - [OpenAI SDK](https://docs.redpill.ai/guides/integrations/openai-sdk.md): Use RedPill through the OpenAI SDK, with optional local ACI verification on Node and Bun. - [Anthropic SDK](https://docs.redpill.ai/guides/integrations/anthropic-sdk.md): Use the official Anthropic Python or TypeScript SDK with RedPill's Messages API. - [Vercel AI SDK](https://docs.redpill.ai/guides/integrations/vercel-ai-sdk.md): Generate and stream RedPill responses in TypeScript applications. - [LangChain](https://docs.redpill.ai/guides/integrations/langchain.md): Use RedPill for LangChain chat, streaming, retrieval, and agents. - [Agent frameworks](https://docs.redpill.ai/guides/integrations/agent-frameworks.md): Run CrewAI, PydanticAI, or the OpenAI Agents SDK on RedPill through the Chat Completions API. - [Langfuse](https://docs.redpill.ai/guides/integrations/langfuse.md): Trace RedPill API calls with Langfuse and an explicit data boundary. - [Cherry Studio](https://docs.redpill.ai/guides/integrations/cherry-studio.md): Chat with RedPill models in the Cherry Studio desktop app. - [Migrate from OpenAI or OpenRouter](https://docs.redpill.ai/guides/migrate.md): Point an existing OpenAI-compatible integration at RedPill: a new base URL, a new key, and provider-prefixed model ids. - [Streaming](https://docs.redpill.ai/guides/streaming.md): Stream a chat completion as server-sent events with stream: true. - [Function calling](https://docs.redpill.ai/guides/function-calling.md): Let a model call functions you define, using the standard OpenAI tools format. - [Structured outputs](https://docs.redpill.ai/guides/structured-outputs.md): Constrain a response to a JSON schema with response_format, from a Pydantic model or a raw schema. - [Vision](https://docs.redpill.ai/guides/vision.md): Send images to multimodal models by URL or as base64. - [Reasoning](https://docs.redpill.ai/guides/reasoning.md): Control how much a model thinks before it answers, and whether the reasoning text is returned. - [Prompt caching](https://docs.redpill.ai/guides/prompt-caching.md): Providers that cache a repeated prompt prefix report cached tokens in usage, and RedPill bills them at the model's cache rate. - [Error handling](https://docs.redpill.ai/guides/error-handling.md): Understand the API error format and handle errors gracefully. - [How confidential AI works](https://docs.redpill.ai/confidential-ai/how-it-works.md): The platform serves an API from a TEE-attested gateway and proves each response with an attestation report and a signed receipt. - [Attestation report](https://docs.redpill.ai/confidential-ai/attestation-report.md): The gateway attestation report proves which TEE workload served your request and publishes the keys it signs with. - [Receipts](https://docs.redpill.ai/confidential-ai/receipts.md): A signed receipt is a per-response transparency log that binds your request and response hashes to the attested gateway. - [Verified upstreams](https://docs.redpill.ai/confidential-ai/verified-upstreams.md): How the gateway verifies a confidential provider before forwarding: the channel binding it enforces, the attested session it records, and the typed claims you read. - [End-to-end encryption](https://docs.redpill.ai/confidential-ai/e2e-encryption.md): Field-level encryption between your client and the attested gateway, on top of TLS. - [Trust boundary](https://docs.redpill.ai/confidential-ai/trust-boundary.md): What the attested gateway protects, what it does not, and where your plaintext is visible. - [Verify a response](https://docs.redpill.ai/guides/verify-a-response.md): Verify the gateway workload, pinned TLS channel, signed receipt, and cited upstream session from your own client. - [Release measurements](https://docs.redpill.ai/guides/release-measurements.md): The measurement values the production gateway currently attests, the release that publishes them, and how much notice you get before they change. - [Encrypt a request](https://docs.redpill.ai/guides/e2ee-encryption.md): Add field-level encryption to requests, on top of TLS, using a key from the attested keyset. - [Zero data retention](https://docs.redpill.ai/guides/zero-data-retention.md): Restrict a request to providers that do not retain prompt or completion content, and list the models that support it. - [Attested routing](https://docs.redpill.ai/guides/attested-routing.md): Restrict a request to an upstream the gateway verified inside the TEE, and pin it to a specific attested channel. - [TEE-only endpoint](https://docs.redpill.ai/guides/tee-endpoint.md): Point your base URL at tee.redpill.ai to serve confidential models only, on attested providers, with no per-request configuration. - [Confidential providers](https://docs.redpill.ai/confidential-ai/providers.md): The verified upstream providers behind the platform's confidential models, the binding each enforces, and what each attests. - [Open source](https://docs.redpill.ai/confidential-ai/open-source.md): Review the open-source gateway and bind an approved deployment to its measured compose hash. - [Compliance](https://docs.redpill.ai/confidential-ai/compliance.md): How the confidential computing architecture supports common compliance requirements, and how to request reports. - [FAQ](https://docs.redpill.ai/confidential-ai/faqs.md): Common questions about the platform's attestation, receipts, confidential models, routing constraints, logging, and trust boundary. - [Overview](https://docs.redpill.ai/chat/overview.md): RedPill Chat runs only confidential models, with end-to-end encrypted conversations and private document knowledge bases. - [Private knowledge](https://docs.redpill.ai/chat/private-knowledge.md): Upload documents into a knowledge base, ask questions with citations, and generate summaries, FAQs, mind maps, and audio overviews. - [Overview](https://docs.redpill.ai/api-reference/overview.md): Base URL, authentication, and the full list of API endpoints. - [Chat completions](https://docs.redpill.ai/api-reference/chat-completions.md): Create chat completion responses. - [Responses](https://docs.redpill.ai/api-reference/responses.md): Create a model response using the Responses API format. - [Messages](https://docs.redpill.ai/api-reference/messages.md): Create a message using the Anthropic Messages format. - [Embeddings](https://docs.redpill.ai/api-reference/embeddings.md): Create text embeddings. - [Image generation](https://docs.redpill.ai/api-reference/images.md): Generate images and decode inline base64 output. - [Audio transcription](https://docs.redpill.ai/api-reference/audio.md): Transcribe audio with multipart uploads and duration-based billing. - [System One](https://docs.redpill.ai/api-reference/systemone.md): Ask a model typed questions about a state and get structured decisions. - [Models](https://docs.redpill.ai/api-reference/models.md): List available models with providers, context windows, and pricing. - [Completions (legacy)](https://docs.redpill.ai/api-reference/completions.md): Create a text completion (legacy). - [Attestation report](https://docs.redpill.ai/api-reference/attestation.md): The gateway TEE attestation report, bound to a caller-supplied nonce. - [Receipt](https://docs.redpill.ai/api-reference/receipts.md): The signed receipt for a response, with the full transparency event log. - [Session](https://docs.redpill.ai/api-reference/sessions.md): The immutable attested-session record behind a confidential response. - [Changelog](https://docs.redpill.ai/changelog.md): Product changes, newest first. ## OpenAPI Specs - [openapi](/openapi.yaml) ## Optional - [Community](https://discord.gg/P2ukR4Z5ps) - [GitHub](https://github.com/redpill-ai) This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.