OpenAI compatible API · Attested · 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
Onebase URL to migrate
100sof models and routes
Noneprompt 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
  • ✓ Use trustedrouter/eu with the EU regional API for Europe-focused routing
  • ✓ Use trustedrouter/socrates for the rolling advisor preset, or trustedrouter/socrates-1.1 for the pinned current version
  • ✓ Use trustedrouter/iris-2.0, trustedrouter/prometheus-2.0, or trustedrouter/zeus-1.0 for versioned Synth presets
  • ✓ Use trustedrouter/openpatcher-s2 for Kimi K3 plus GLM 5.2 synthesis
  • ✓ Use trustedrouter/openpatcher-g2 for a Kimi K3 worker with parallel Gemma 4 and Prometheus 2.0 advisors
  • ✓ Use trustedrouter/plato-pro-2.0 for GLM 5.2 advised by Prometheus 2.0
  • ✓ Use trustedrouter/iris-code-1.0, trustedrouter/prometheus-code-1.0, or trustedrouter/zeus-code-1.0 for code-tuned Synth presets
  • ✓ Add provider.min_privacy = "zdr" for a hard zero-retention floor
  • ✓ Add provider.min_privacy = "confidential" to require confidential compute + provider E2EE
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" }]
})

Fail-closed privacy filters

Require zero retention

{
  "model": "your/model",
  "provider": {"min_privacy": "zdr"}
}

This is a hard minimum. If no endpoint for the selected model and provider filters has a tracked ZDR guarantee, the request fails before inference.

Require confidential + E2EE

{
  "model": "your/model",
  "provider": {"min_privacy": "confidential"}
}

This stronger hard minimum requires both provider-side confidential compute and end-to-end encryption. e2e and e2ee are accepted value aliases. Unsupported model/provider combinations fail closed.

trustedrouter/e2e and trustedrouter/confidential select the same confidential + E2EE pool. provider.data_collection = "deny" remains an OpenRouter-compatible routing preference; use min_privacy when the privacy floor must never be relaxed.

Guides

60-second quickstart

Make one request, inspect the catalog, and verify the live prompt path.

Open →

Agent setup

Point Codex, Claude Code, Hermes, Cursor, or any OpenAI-compatible client at TrustedRouter.

Open →

MCP server

Let agents inspect live models, pricing, provider posture, credits, docs, and quick test messages.

Open →

Agent skill

Help Codex, Claude Code, Hermes, and other agents choose models using speed, cost, AI IQ, privacy, context length, and prompt-cache fit.

Open →

Migrate from OpenRouter

Swap one base_url and keep your existing calls working.

Open →

Request tagging

Allocate cost and usage with AWS style tags while keeping metadata out of model prompts.

Open →

Responses web search

Search the live web inside the attested gateway and return source citations through the OpenAI Responses API.

Open →

Evals

Run eval suites across providers through one API.

Open →

Synth

Run Iris, Prometheus, Zeus, and code-tuned Synth presets inside the attested gateway.

Open →

Socrates

Run the advisor preset, or configure the generic advisor primitive directly.

Open →

x402 stablecoin funding

Let agents add prepaid credits automatically without changing the prompt path.

Open →

EU routing

Use the Europe West attested gateway and the EU-focused model alias.

Open →

Sign in with TrustedRouter

Let your users bring their own account and credits.

Open →

vs OpenRouter

How TrustedRouter compares to closed routers.

Open →

Security & attestation

How the attested gateway and trust record work.

Open →

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:

Workspace access

Sign in

Choose a sign in method. New email and OAuth accounts include $0.10 in starter credit; wallet-only accounts start at $0.

By signing in you agree to the terms of service and privacy policy.