OpenAI SDK

Use the OpenAI SDK against the router by changing two arguments.

python
# The OpenAI SDK, pointed at the router: base_url and api_key, nothing else.from openai import OpenAI client = OpenAI(base_url="https://api.blastrouter.com/v1", api_key="rl-…")r = client.chat.completions.create(    model="gpt-5.6",    messages=[{"role": "user", "content": "hi"}],)print(r.choices[0].message.content)

Chat Completions, Responses, legacy Completions, embeddings, rerank, images, audio and the async image tasks all take the same key.

Use any catalog id as model: Anthropic and Gemini models answer on the OpenAI routes too, so you can reach them without changing SDK.

Base URLhttps://api.blastrouter.com