> ## 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.

# Integrations Overview

> Connect the platform with your favorite AI frameworks and tools

## Popular Frameworks

The API works seamlessly with popular AI frameworks and SDKs.

<CardGroup cols={2}>
  <Card title="OpenAI SDK" icon="code" href="/guides/integrations/openai-sdk">
    Official OpenAI Python and TypeScript SDKs
  </Card>

  <Card title="LangChain" icon="link" href="/guides/integrations/langchain">
    Build complex AI applications with LangChain
  </Card>

  <Card title="Vercel AI SDK" icon="react" href="/guides/integrations/vercel-ai-sdk">
    Build streaming AI UIs with React and Next.js
  </Card>

  <Card title="Langfuse" icon="chart-line" href="/guides/integrations/langfuse">
    LLM observability and analytics
  </Card>
</CardGroup>

## Quick Start

All integrations follow the same pattern:

<Steps>
  <Step title="Install the SDK">
    Install your preferred framework or SDK
  </Step>

  <Step title="Configure Base URL">
    Point to the API endpoint: `https://api.redpill.ai/v1`
  </Step>

  <Step title="Add API Key">
    Use your API key for authentication
  </Step>

  <Step title="Choose Models">
    Select from a broad range of models with provider prefix (e.g., `openai/gpt-5`)
  </Step>
</Steps>

## Why Use the Platform?

<AccordionGroup>
  <Accordion title="Hardware-Protected Privacy">
    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.
  </Accordion>

  <Accordion title="A Broad Range of Models">
    Access models from OpenAI, Anthropic, Google, DeepSeek, and more through a single API.
  </Accordion>

  <Accordion title="OpenAI-Compatible">
    Works with any tool that supports OpenAI's API format - just change the base URL.
  </Accordion>

  <Accordion title="Confidential AI">
    Use confidential (`is_tee`) models for end-to-end private AI processing.
  </Accordion>
</AccordionGroup>

## Integration Comparison

| Framework                                           | Best For             | Language           | Difficulty |
| --------------------------------------------------- | -------------------- | ------------------ | ---------- |
| [OpenAI SDK](/guides/integrations/openai-sdk)       | Simple integrations  | Python, TypeScript | Easy       |
| [LangChain](/guides/integrations/langchain)         | Complex AI apps, RAG | Python, TypeScript | Medium     |
| [Vercel AI SDK](/guides/integrations/vercel-ai-sdk) | React/Next.js UIs    | TypeScript         | Easy       |
| [Langfuse](/guides/integrations/langfuse)           | Observability        | Python, TypeScript | Easy       |

## Example: Switch to the Platform

### Before (Direct OpenAI)

```python theme={null}
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)

```python theme={null}
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"}]
)
```

<Info>
  **That's it!** Just 2 small changes and your requests flow through the TEE-protected gateway with access to a broad range of models.
</Info>

## 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?

<CardGroup cols={2}>
  <Card title="Discord Community" icon="discord" href="https://discord.gg/P2ukR4Z5ps">
    Get help from the community
  </Card>

  <Card title="GitHub Examples" icon="github" href="https://github.com/redpill-ai/examples">
    Browse code examples
  </Card>
</CardGroup>
