RedPill supports the OpenAI SDK’s Responses, Chat Completions, and Embeddings resources. Set the
base URL to https://api.redpill.ai/v1 and use an exact RedPill model ID.
Changing only the base URL does not make the SDK a local ACI verifier.
Responses
Chat completions
Use Chat Completions when an existing application expects that API shape:
Pass stream=True in Python or stream: true in TypeScript for server-sent events. See
Streaming and Function calling for complete loops.
Embeddings
Embedding models use a separate catalog:
Verified Node and Bun transport
Node 20.18+ and Bun 1.4+ can inject the same ACI runtime fetch:
The connection verifies the TDX quote, measured compose, identity expiry, hostname, and attested TLS
SPKI before model traffic. verifyReceipt() checks the latest retained exchange, signed receipt,
wire hashes, and cited session.
Add acceptedComposeHashes only from authenticated release metadata. Without that allowlist, the
client verifies the measured hardware workload but does not claim that RedPill reviewed the release.
Production checks
Use https://tee.redpill.ai/v1 only with an is_tee: true model when standard upstreams must be
rejected. Set timeouts and bounded retries, and do not expose raw upstream errors to users.