Единый шлюз API для ИИ-моделей. Лучшие цены, высокая надёжность. Просто замените базовый URL для начала работы.
Умная маршрутизация, автоматический выбор лучшего канала.
Loading models...
Совместимость с форматами OpenAI, Anthropic, Gemini
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!"} ] }