The WorkChi API is fully compatible with OpenAI. Just change the base URL and you're done.
Sign up at workchi.ai to get your API key.
Update your code to use the WorkChi endpoint:
Set model: "auto" to let the router select the optimal model, or specify a specific model.
const WorkChi = require('workchi-sdk');
// Initialize with your API key
const client = new WorkChi('wk_your_api_key');
// Basic chat completion with auto-routing
async function chat() {
const response = await client.chat.completions.create({
model: 'auto', // Router selects optimal model
messages: [
{ role: 'system', content: 'You are a helpful assistant.' },
{ role: 'user', content: 'Explain quantum computing in simple terms.' }
],
max_tokens: 1000
});
console.log(response.choices[0].message.content);
}
chat();Native Python and JS support
RAG and indexing support
Autonomous agent support
Microsoft ecosystem
Define your own routing logic based on task type, language, or user tier.
{
"model": {
"task": "code",
"language": "de",
"tier": "premium"
}
}Route all requests to EU-hosted models for compliance.
{
"model": "auto",
"region": "eu" // Forces EU providers
}Get your API key and start using the WorkChi Router today.