Fireworks
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.
- Get a Fireworks API key from Fireworks AI Console
- Add the Fireworks API key to your organization's AI providers
- Set the Fireworks API key and your Braintrust API key as environment variables
API keys are encrypted using 256-bit AES-GCM encryption and are not stored or logged by Braintrust.
Use Fireworks with Braintrust AI proxy
The Braintrust AI Proxy allows you to access Fireworks models through a unified OpenAI-compatible interface.
Install the braintrust
and openai
packages.
pnpm add braintrust openai
Then, initialize the client and make a request to a Fireworks model via the Braintrust AI Proxy.
Trace logs with Fireworks
Trace your Fireworks LLM calls for observability and monitoring.
When using the Braintrust AI Proxy, API calls are automatically logged to the specified project.
The Braintrust AI Proxy is not required to trace Fireworks API calls. 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.
Models and capabilities
Model | Multimodal | Reasoning | Max input | Max output | Input $/1M | Output $/1M |
---|---|---|---|---|---|---|
accounts/fireworks/models/gpt-oss-120b | ﹣ | ﹣ | $0.10 | $0.10 | ||
accounts/fireworks/models/gpt-oss-20b | ﹣ | ﹣ | $0.10 | $0.10 | ||
accounts/fireworks/models/llama4-maverick-instruct-basic | ﹣ | ﹣ | $0.22 | $0.88 | ||
accounts/fireworks/models/llama4-scout-instruct-basic | ﹣ | ﹣ | $0.15 | $0.60 | ||
accounts/fireworks/models/llama-v3p3-70b-instruct | ﹣ | ﹣ | $0.90 | $0.90 | ||
accounts/fireworks/models/llama-v3p2-90b-vision-instruct | ﹣ | ﹣ | $0.90 | $0.90 | ||
accounts/fireworks/models/llama-v3p2-11b-vision-instruct | ﹣ | ﹣ | $0.18 | $0.18 | ||
accounts/fireworks/models/llama-v3p2-3b-instruct | ﹣ | ﹣ | $0.10 | $0.10 | ||
accounts/fireworks/models/llama-v3p1-405b-instruct | ﹣ | ﹣ | $3.00 | $3.00 | ||
accounts/fireworks/models/llama-v3p1-405b-instruct-long | ﹣ | ﹣ | $3.00 | $3.00 | ||
accounts/fireworks/models/llama-v3p1-70b-instruct | ﹣ | ﹣ | $0.20 | $0.20 | ||
accounts/fireworks/models/llama-v3p1-8b-instruct | ﹣ | ﹣ | $0.20 | $0.20 | ||
accounts/fireworks/models/mistral-small-24b-instruct-2501 | ﹣ | ﹣ | $0.90 | $0.90 | ||
accounts/fireworks/models/mixtral-8x22b-instruct | ﹣ | ﹣ | $1.20 | $1.20 | ||
accounts/fireworks/models/mixtral-8x7b-instruct | ﹣ | ﹣ | $0.50 | $0.50 | ||
accounts/fireworks/models/phi-3-vision-128k-instruct | ﹣ | ﹣ | $0.20 | $0.20 | ||
accounts/fireworks/models/deepseek-v3 | ﹣ | ﹣ | $0.90 | $0.90 | ||
accounts/fireworks/models/deepseek-v3-0324 | ﹣ | ﹣ | $0.90 | $0.90 | ||
accounts/fireworks/models/deepseek-r1 | ﹣ | ﹣ | $3.00 | $8.00 | ||
accounts/fireworks/models/deepseek-r1-basic | ﹣ | ﹣ | $0.55 | $2.19 | ||
accounts/fireworks/models/qwen2p5-72b-instruct | ﹣ | ﹣ | $0.90 | $0.90 | ||
accounts/fireworks/models/qwen2p5-coder-32b-instruct | ﹣ | ﹣ | $0.90 | $0.90 | ||
accounts/fireworks/models/qwq-32b | ﹣ | ﹣ | $0.90 | $0.90 | ||
accounts/fireworks/models/qwen2-vl-72b-instruct | ﹣ | ﹣ | $0.90 | $0.90 | ||
accounts/fireworks/models/qwen-qwq-32b-preview | ﹣ | ﹣ | $0.90 | $0.90 |