Cổng API mô hình AI thống nhất. Giá tốt hơn, độ ổn định cao hơn. Chỉ cần thay đổi base URL để bắt đầu.
Định tuyến thông minh, tự động chọn kênh tốt nhất.
Loading models...
Tương thích với định dạng 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!"} ] }