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

Migrate from Fireworks AI

← All migration guides

Inference providerone-line swap

OpenAI-compatible swap; bring Fireworks-only models via BYOK.

The change

Before — Fireworks AI

from openai import OpenAI

client = OpenAI(
    base_url="https://api.fireworks.ai/inference/v1",
    api_key="fw-...",
)

After — BharatRouter

from openai import OpenAI

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

What maps to what

Fireworks AIBharatRouter
accounts/fireworks/models/… idsCatalog ids, or Fireworks key via BYOK
fw-… keybr-… key (or BYOK)

What you gain

  • Failover from Fireworks to other providers in one chain.
  • INR billing and India-resident routing where available.

Watch out for

  • Fireworks function-calling extensions beyond the OpenAI tools shape aren't forwarded.

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