A unified AI model API gateway. Better pricing, better reliability. Just swap your base URL to get started.
Smart routing, automatically selects the best channel.
Loading models...
Compatible with OpenAI, Anthropic, Gemini formats
from openai import OpenAI client = OpenAI( api_key="sk-xxx", base_url="/v1", ) # Switch to any model by name resp = client.chat.completions.create( model="deepseek-reasoner", messages=[{"role": "user", "content": "Hello!"}], stream=True, ) for chunk in resp: print(chunk.choices[0].delta.content, end="")
import OpenAI from 'openai' const client = new OpenAI({ apiKey: 'sk-xxx', baseURL: '/v1', }) // Switch to any model by name const stream = await client.chat.completions.create({ model: 'qwen3-235b-a22b', messages: [{ role: 'user', content: 'Hello!' }], stream: true, }) for await (const chunk of stream) { process.stdout.write( chunk.choices[0]?.delta?.content ?? '' ) }
curl /v1/chat/completions \ -H "Authorization: Bearer sk-xxx" \ -H "Content-Type: application/json" \ -d { "model": "glm-4-plus", "stream": true, "messages": [ {"role": "user", "content": "Hello!"} ] }