Prerequisites
To use Cerebras with Agno, you need to:- 
Install the required packages:
- 
Set your API key:
The Cerebras SDK expects your API key to be available as an environment variable:
Basic Usage
Here’s how to use a Cerebras model with Agno:Supported Models
Cerebras currently supports the following models (see docs for the latest list):| Model Name | Model ID | Parameters | Knowledge | 
|---|---|---|---|
| Llama 4 Scout | llama-4-scout-17b-16e-instruct | 109 billion | August 2024 | 
| Llama 3.1 8B | llama3.1-8b | 8 billion | March 2023 | 
| Llama 3.3 70B | llama-3.3-70b | 70 billion | December 2023 | 
| DeepSeek R1 Distill Llama 70B* | deepseek-r1-distill-llama-70b | 70 billion | December 2023 | 
Configuration Options
TheCerebras class accepts the following parameters:
| Parameter | Type | Description | Default | 
|---|---|---|---|
| id | str | Model identifier (e.g., “llama-4-scout-17b-16e-instruct”) | Required | 
| name | str | Display name for the model | ”Cerebras” | 
| provider | str | Provider name | ”Cerebras” | 
| api_key | Optional[str] | API key (falls back to CEREBRAS_API_KEYenv var) | None | 
| max_tokens | Optional[int] | Maximum tokens in the response | None | 
| temperature | float | Sampling temperature | 0.7 | 
| top_p | float | Top-p sampling value | 1.0 | 
| request_params | Optional[Dict[str, Any]] | Additional request parameters | None | 
Resources
SDK Examples
- View more examples here.