Cerebras
Cerebras provides ultra-fast inference for large language models using specialized hardware architecture. Braintrust integrates seamlessly with Cerebras through direct API access, wrapper functions for automatic tracing, and proxy support.
Setup
To use Cerebras models, configure your Cerebras API key in Braintrust:
- Get a Cerebras API key from Cerebras Cloud
- Add the Cerebras API key to your organization's AI providers
- Set the Cerebras 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 Cerebras with Braintrust AI proxy
The Braintrust AI Proxy allows you to access Cerebras 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 Cerebras model via the Braintrust AI Proxy.
Trace logs with Cerebras
Trace your Cerebras 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 Cerebras API calls. For more control, learn how to customize traces.
Evaluate with Cerebras
Evaluations distill the non-deterministic outputs of Cerebras 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 Cerebras, visit the customize traces guide.
Models and capabilities
Model | Multimodal | Reasoning | Max input | Max output | Input $/1M | Output $/1M |
---|---|---|---|---|---|---|
gpt-oss-120b | ﹣ | ﹣ | $0.25 | $0.69 | ||
deepseek-r1-distill-llama-70b | ﹣ | ﹣ | $0.23 | $0.69 | ||
llama-4-scout-17b-16e-instruct | 131,072 | 8,192 | $0.11 | $0.34 | ||
llama3.3-70b | ﹣ | ﹣ | $0.10 | $0.10 | ||
llama3.1-8b | ﹣ | ﹣ | $0.10 | $0.10 |