Skip to main content

30-Second Setup

Get Bifrost running in your Go application with minimal setup. This guide shows you how to integrate multiple AI providers through a single, unified interface.

1. Install Package

2. Set Environment Variable

3. Create main.go

4. Run Your App

🎉 That’s it! You’re now running Bifrost in your Go application.

What Just Happened?

  1. Account Interface: MyAccount provides API keys and list of providers to Bifrost for initialisation and key lookups.
  2. Provider Resolution: schemas.OpenAI tells Bifrost to use OpenAI as the provider.
  3. Model Selection: "gpt-4o-mini" specifies which model to use.
  4. Unified API: Same interface works for any provider/model combination (OpenAI, Anthropic, Vertex etc.)

Next Steps

Now that you have Bifrost running, explore these focused guides:

Essential Topics

Advanced Topics


Happy coding with Bifrost! 🚀