Skip to main content
Fireworks AI provides fast inference for open-source language models including Llama, Mixtral, Code Llama, and other state-of-the-art models. Braintrust integrates seamlessly with Fireworks through direct API access, wrapper functions for automatic tracing, and proxy support.

Setup

To use Fireworks models, configure your Fireworks API key in Braintrust.
  1. Get a Fireworks API key from Fireworks AI Console
  2. Add the Fireworks API key as an organization or project AI provider.
  3. Set the Fireworks API key and your Braintrust API key as environment variables
.env
API keys are stored as one-way cryptographic hashes, never in plaintext.

Use Fireworks with Braintrust gateway

The Braintrust gateway allows you to access Fireworks models through a unified interface. Use any supported provider’s SDK to call Fireworks models. Install the braintrust and openai packages.
Then, initialize the client and make a request to a Fireworks model via the Braintrust gateway.

Trace logs with Fireworks

Trace your Fireworks LLM calls for observability and monitoring. When using the Braintrust gateway, API calls are automatically logged to the specified project.
The Braintrust gateway is not required. For more control, learn how to customize traces.

Evaluate with Fireworks

Evaluations distill the non-deterministic outputs of Fireworks models into an effective feedback loop that enables you to ship more reliable, higher quality products. Braintrust Eval is a simple function composed of a dataset of user inputs, a task, and a set of scorers. To learn more about evaluations, see the Experiments guide.
To learn more about tool use, multimodal support, attachments, and masking sensitive data with Fireworks, visit the customize traces guide.