Find a model

Browse the full catalog →

GoModel is an open-source AI gateway written in Go. It has a built-in TrustedRouter provider: set one environment variable and GoModel discovers TrustedRouter's models, prices and capabilities from the live catalog. Setting names follow GoModel's provider docs as of .

Why put TrustedRouter behind GoModel

GoModel handles the gateway work in your own infrastructure: caching, usage tracking, budgets and routing across providers. TrustedRouter adds one upstream key for 600+ models from 100+ providers, with a choice of which providers may see a prompt: Open, ZDR or TEE privacy tiers, an EU-focused pool, or the end-to-end encrypted route. Keys carry daily, weekly and monthly spend limits on our side too.

Set it up with an environment variable

  1. Create a key in Console → API Keys.
  2. Set it in the environment that runs GoModel, then start GoModel:
export TRUSTEDROUTER_API_KEY=your-trustedrouter-key
gomodel

GoModel's base URL defaults to https://api.trustedrouter.com/v1. Set TRUSTEDROUTER_BASE_URL only to use a regional endpoint, for example https://api-europe-west4.quillrouter.com/v1. To advertise only some models, set TRUSTEDROUTER_MODELS to a comma-separated list, for example trustedrouter/auto,anthropic/claude-sonnet-4.6. You can also add the provider from GoModel's dashboard at http://localhost:8080/admin/dashboard.

Set it up in config.yaml

providers:
  trustedrouter:
    type: trustedrouter
    api_key: "${TRUSTEDROUTER_API_KEY}"

GoModel reads the key from the environment, so it never enters the file. See GoModel's .env.template and config/config.example.yaml for every option.

Send a request

Point any OpenAI SDK at GoModel and name a TrustedRouter model:

curl http://localhost:8080/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "trustedrouter/auto",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Chat Completions, the stateless Responses API at /v1/responses, and embeddings all go through. To pin a specific model to TrustedRouter, prefix it with the provider name, as in trustedrouter/anthropic/claude-sonnet-4.6. Without the prefix, GoModel uses the first configured provider that lists the model.

Which model to choose

Model IDWhat it does
trustedrouter/autoTrustedRouter picks a model and provider for each request.
trustedrouter/zdrRoutes only to providers with zero data retention.
trustedrouter/e2eRoutes only to end-to-end encrypted providers.
trustedrouter/euPrefers EU-focused and privacy-forward routes. A preference, not a data-residency guarantee; see Europe-focused routing.

The trustedrouter/ pools choose the model as well as the provider. A specific model ID from the catalog stays on that model but can be served by any provider on its model page.

How GoModel records the cost

GoModel reads prices from TrustedRouter's catalog, and when a response reports usage.cost_microdollars it records that charge instead. That matters for the routing pools: their catalog price is only the lowest price they can route to, while the reported cost is what the request actually cost.

Troubleshooting

  • 401: the key is wrong or disabled, or TRUSTEDROUTER_API_KEY is empty in GoModel's environment. Check the key in Console → API Keys.
  • "trustedrouter does not support passthrough": GoModel's raw passthrough routes aren't available for TrustedRouter. Use /v1/chat/completions, /v1/responses or /v1/embeddings.
  • A bare model name went to another provider: prefix it with trustedrouter/.

Questions

How do I use TrustedRouter in GoModel?

Set TRUSTEDROUTER_API_KEY in the environment that runs GoModel, or add a provider with type trustedrouter to config.yaml. GoModel then discovers TrustedRouter's models from the live catalog.

How do I send a GoModel request to TrustedRouter?

Name a TrustedRouter model such as trustedrouter/auto, or prefix a catalog model with the provider name, as in trustedrouter/anthropic/claude-sonnet-4.6.

Workspace access

Sign in

Choose a sign in method to access your TrustedRouter workspace.

New to TrustedRouter?

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