Use RedPill through the OpenAI SDK, with optional local ACI verification on Node and Bun.
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.
response = client.embeddings.create( model="qwen/qwen3-embedding-8b", input="Receipts bind requests and responses to the serving path.",)embedding = response.data[0].embedding
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.See Release policy for compose allowlists and OS-image assurance.
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.