Skip to main content
Orbitrage speaks OpenAI format only. You don’t use the Anthropic SDK — just name a Claude model in a normal chat-completions call and Orbitrage routes it to Anthropic for you.
import os, orbitrage
orbitrage.init(os.environ["ORBITRAGE_API_KEY"], user_id="customer_42")

from openai import OpenAI                 # the OpenAI SDK — not the Anthropic one
OpenAI().chat.completions.create(
    model="claude-sonnet-4-6",            # name a Claude model → routed to Anthropic
    messages=[{"role": "user", "content": "hi"}],
)
  • Name any Claude model (claude-sonnet-4-6, claude-opus-4-8, …) and Orbitrage routes to Anthropic and translates the request behind the scenes.
  • Or pass model="grok-4-fast" and let the router choose.
  • Tools, streaming, and vision work exactly as in Tool calling and Streaming.
To bill your own Anthropic account instead of pooled credits, save an Anthropic key — see BYOK. You still call in OpenAI format.