Skip to main content
Triw is an AI gateway. You call one endpoint with one key, and Triw routes the request to the provider that serves the model you asked for. Billing, quotas, keys and usage all live in a single console.
Base URL

What you get

OpenAI-compatible API

POST /v1/chat/completions, /v1/embeddings, /v1/responses, /v1/images/generations, audio endpoints.

Anthropic-compatible API

POST /v1/messages and /v1/messages/count_tokens. Point Claude Code or the Anthropic SDK at Triw.

Gemini-compatible API

POST /v1beta/models/{model}:generateContent plus an OpenAI-style route at /v1beta/openai/models.

One bill

Every model is metered in the same quota unit, whichever provider serves it.

How a request flows

  1. You send a request to https://router.triw.io with an API key (Authorization: Bearer sk-...).
  2. Triw resolves the model name to an available upstream channel for your key’s group.
  3. The upstream response is relayed back in the same wire format you sent.
  4. Usage is metered against your balance.
You do not change your prompt or response parsing per provider — only the model value.

First request

The complete route list — chat, messages, images, video, audio, embeddings, Midjourney tasks — is in Endpoints. Video jobs are task-based; see Video generation. New here? Read the quickstart. It takes about five minutes, from account to first token.