Skip to main content

Why migrate

  • Same API: a drop-in replacement. Keep your OpenAI SDK and code.
  • Attested gateway: requests are served through a TEE gateway that signs a receipt for every response.
  • More models: not just OpenAI. Also Anthropic, Google, Meta, and confidential (is_tee) models.
  • Verifiable: cryptographic attestation and signed receipts you can check yourself.

Migration Steps

1

Get an API Key

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

Update Base URL

Change base URL from OpenAI to RedPill:
3

Test

Make a test request - everything else stays the same!

Code Changes

Python

JavaScript

Go

Environment Variables

Update your .env file:

What stays the same

  • All SDK methods
  • Request and response format
  • Streaming
  • Function calling
  • Vision
  • Embeddings
  • Error handling

What’s new

  • Attested gateway: every response carries a signed receipt.
  • More providers: Anthropic, Google, Meta, and more, through one endpoint.
  • Attestation: verify which TEE workload served you.
  • Confidential models: is_tee models run on a verified upstream enclave.

Model Mapping

All OpenAI models work identically on the platform, plus 200+ additional models!

Pricing

The platform charges the same price as OpenAI, with TEE protection included at no extra cost.

Gradual Migration

Test with a few requests first:

Checklist

  • Get an API key
  • Update environment variables
  • Change base URL in code
  • Test with sample requests
  • Monitor usage/costs
  • Full migration

Get Started

Start using the platform now →