Skip to content
NewTry RouterPlus with free creditsTry playground →

Bring your own key, 0% fee

Use your OpenAI, Anthropic or Azure keys through one gateway. Your provider bills you.

One BYOK request, as RouterPlus records itFrom the docs
  • billing_sourcebyok
  • cost_usd0
  • Billed byYour provider account

RouterPlus BYOK sends your requests through your organization's own OpenAI, Anthropic or Azure API keys, or through an AWS Bedrock workload role once RouterPlus approves one. You still call one gateway with a RouterPlus key. RouterPlus stores the provider credential encrypted, the provider bills you directly, and RouterPlus charges nothing for BYOK inference. BYOK needs no marketplace credit.

Updated December 4, 2026

BYOK and marketplace

One account can use both. Here is what changes when a request runs on your own key.

BYOKMarketplace
Who bills the tokensYour provider, on your own accountYour RouterPlus prepaid balance
RouterPlus charge0. The request records cost_usd 0Listed per-token price, stated in usage.cost
Credit neededNonePrepaid credits
ModelsThe exact model ids on your connectionCatalog models your key can call
Limits that applyKey RPM, org token and concurrency limitsKey RPM limits and spend caps

Providers you can bring

  • OpenAI

    API key. Also covers GPT Image models on /v1/images/generations, billed to your OpenAI account.

  • Anthropic

    API key. Anthropic token counting runs on the same connection.

  • Azure

    API key plus a resource and deployment mapping, on Azure v1 public endpoints.

  • AWS Bedrock

    A workload role instead of a key. Selectable once RouterPlus approves a role for your org.

Set it up

In the console it takes five steps. Owners and admins make changes; viewers can read.

  1. Add a connection

    In the console, open Access > Provider connections and click Add connection. Name it, choose the provider, enter its credential and list the exact model ids you will call, from 1 to 100, with no wildcards.

  2. Save and validate

    For API-key providers, validation makes one authenticated model-list call with no generated tokens. If it fails, the connection stays pending until you rotate the credential or retry.

  3. Set the account limits

    Choose an existing provider account's limits, or enter RPM, TPM, concurrency and headroom for a new one. A connection with no quota pool cannot serve requests.

  4. Issue a RouterPlus key

    Create a new key bound to the connection, or pick an existing one. Copy it once and use the request example the console generates.

  5. Call the gateway

    Send requests to /v1/chat/completions or /v1/messages with that key. Both request formats and streaming work with each provider profile, within the wire compatibility limits.

Or use the API

Connection management runs on the site origin with your console session. An inference key cannot manage connections. After binding, declare a quota pool for the provider account, since a route with no pool returns 503.

# 1. Create the connection (site origin, console session)
POST https://app.routerplus.com/api/connections
{"profile":"openai","models":["your-exact-provider-model-id"],"api_key":"YOUR_PROVIDER_KEY"}

# 2. Validate it
POST https://app.routerplus.com/api/connections/{connection_id}/validate
{}

# 3. Bind a RouterPlus key to it
POST https://app.routerplus.com/api/connections/{connection_id}/bind
{"key_id":"YOUR_VIRTUAL_KEY_UUID"}
Requests from the BYOK docs. Responses never return your provider key.

Mix keys and marketplace

A routing policy decides which of your connections and which marketplace deployments a key may use, in what order, and who pays. Bind it to an org, a workspace or a key.

  • Your keys only

    The default. Requests use your connections and never marketplace supply.

    byok_only
  • Your keys, then marketplace

    Every BYOK route comes first. Marketplace deployments are the last phase and charge credit only when a request reaches them.

    byok_with_house_fallback
  • Marketplace only

    Marketplace deployments and no connections, billed to your prepaid balance.

    house_only
{
  "models": ["your-exact-model-id"],
  "connections": ["FIRST_CONNECTION_UUID", "SECOND_CONNECTION_UUID"],
  "funding": "byok_only",
  "allow_fallbacks": true,
  "max_attempts": 4,
  "timeout_ms": 450000
}
A routing policy body, from the routing policy docs. Under a policy, fallback stays within the first selected provider.

Rules worth knowing

  • Exact model idsA bound key calls just its connection's models. /v1/models lists them.
  • No silent fallbackA BYOK key never moves to marketplace supply unless a policy allows it.
  • Secrets stay hiddenRouterPlus never returns provider secrets or relays provider error bodies.
  • Fast rotationNew calls see a rotation or disable within 5 seconds.
  • Fixed connectionsTo change the provider or model list, create a new connection.
  • Your provider's termsBYOK gives no private-link, residency or retention guarantee of its own.

Questions teams ask

Does RouterPlus charge a fee on BYOK requests?

No. RouterPlus charges nothing for BYOK inference. Each BYOK attempt records billing_source byok and cost_usd 0, and your provider bills your own account for the tokens.

Do I need to buy RouterPlus credits to use BYOK?

No. BYOK needs no marketplace credit. Credit is spent in one case: a routing policy with marketplace fallback, when a request reaches a marketplace deployment.

Which providers can I bring?

OpenAI, Anthropic and Azure with an API key, and AWS Bedrock with a workload role once RouterPlus approves one for your organization. Other image models, such as those served by Replicate, Krea and Recraft, have no BYOK.

Can BYOK fall back to marketplace models?

Only if you allow it. A bound key stays on its connection's models. A routing policy with funding byok_with_house_fallback tries your BYOK routes first and marketplace deployments last, charged at the listed prices. Automatic fallback stays within the first selected provider.

Which endpoints work with a BYOK key?

/v1/chat/completions and /v1/messages, in both the OpenAI and Anthropic request formats, with streaming, within the wire compatibility limits. Image generation works through an OpenAI connection for GPT Image models.

Do spend caps limit my provider bill?

No. Marketplace spend caps do not limit what your provider bills you. Key RPM limits and your organization's token and concurrency limits still apply to BYOK traffic.

Sources

Checked December 4, 2026. The RouterPlus docs are the source of truth.

Connect your first key

Sign in, open Provider connections and bind a RouterPlus key. Need reserved capacity? Tell us the workload.