⚡ New — Kimi K3 is live: bring your own Moonshot key →
Documentation

Migrate from Together AI

← All migration guides

Inference providerone-line swap

Swap the base URL; map model ids to the catalog.

The change

Before — Together AI

from openai import OpenAI

client = OpenAI(
    base_url="https://api.together.xyz/v1",
    api_key="...",
)

After — BharatRouter

from openai import OpenAI

client = OpenAI(
    base_url="https://api.bharatrouter.com/v1",
    api_key="br-...",
)

What maps to what

Together AIBharatRouter
meta-llama/Llama-3.3-70B-Instruct-TurboEquivalent catalog id, or your Together key via BYOK
Together API keybr-… key (or keep Together's via BYOK)

What you gain

  • One endpoint across providers with failover, instead of a single host.
  • INR billing + India residency on eligible routes.

Watch out for

  • Together's long namespaced ids don't carry over — use catalog ids or BYOK to Together.
  • Together-specific params (e.g. safety_model) aren't part of the OpenAI shape and are dropped.

Stuck on a migration? Email [email protected], see the FAQ, or keep your accounts and rates with BYOK.