BIFROST
Dashboard

Quickstart

Connect Bifrost to your application in minutes.

Step 1: Install

terminal
npm install openai

Step 2: Configure

.env
OPENAI_API_KEY=your-key
OPENAI_BASE_URL=https://bifrost.omixsystems.store/v1

Step 3: Use

app.ts
import OpenAI from 'openai';

const client = new OpenAI();

const res = await client.chat.completions.create({
  model: 'bifrost/auto',
  messages: [{ role: 'user', content: 'Hello!' }],
});

console.log(res.choices[0].message.content);

Step 4: Verify

terminal
curl https://bifrost.omixsystems.store/v1/models | jq '.data | length'
# 48
That's it
Bifrost is now routing your requests. Try "bifrost/auto" for automatic model selection.
API ReferenceProviders
← Previous
Introduction
Next →
Concepts