OpenAI compatible API. Attested gateway. Public status.

Docs — Quickstart, SDKs, and API Reference

Point any OpenAI-compatible SDK at TrustedRouter with one base_url change. Guides, Python / TypeScript / Swift SDKs, and the OpenAI-compatible API reference.

Verify gateway
1 URLbase_url migration
100smodels and routes
0prompt logs by default

Quickstart: one base_url change.

  • ✓ OpenAI-compatible — point any OpenAI/Anthropic SDK at TrustedRouter
  • ✓ Read your key from TRUSTEDROUTER_API_KEY
  • ✓ Use trustedrouter/auto for provider failover
  • ✓ Add provider.data_collection = "deny" for zero-retention routing
Migration guide →
Drop-inTypeScript
const client = new OpenAI({
  apiKey: process.env.TRUSTEDROUTER_API_KEY,
  baseURL: "https://api.trustedrouter.com/v1"
})

const r = await client.chat.completions.create({
  model: "trustedrouter/auto",
  messages: [{ role: "user", content: "Hello" }]
})

Guides

SDKs

API reference

OpenAI-compatible endpoints

Base URL https://api.trustedrouter.com/v1. Authenticate with a Bearer sk-tr-… key.

  • POST /v1/chat/completions
  • POST /v1/responses
  • POST /v1/embeddings
  • GET /v1/models

Interactive API reference →

Agent-readable docs

Point your coding agent at the machine-readable docs for the full surface:

Sign in

Choose a sign in method.