Baichuan 2 Turbo
baichuan
Fast and efficient model for general tasks.
Input Price
1.20 /Million
Output Price
1.20 /Million
Context Window
8k
Category
Domestic Models
Capabilities
Fastgeneralsearch
API Configuration
Base URL
https://opencodex.hk/api/v1Model ID
Baichuan2-TurboQuick Start
Copy the code below to quickly integrate into your application
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://opencodex.hk/api/v1",
apiKey: process.env.OPENCODEX_API_KEY,
});
const response = await client.chat.completions.create({
model: "Baichuan2-Turbo",
messages: [{ role: "user", content: "Hello!" }],
});
console.log(response.choices[0].message.content);Ready to try Baichuan 2 Turbo?
Start with 500 free credits. Pay only for what you use.
