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):
* DeepSeek R1 Distill Llama 70B is available in private preview.
Parameters
Cerebras is a subclass of the Model class and has access to the same params.
Structured Outputs
The Cerebras model supports structured outputs using JSON schema:Resources
SDK Examples
- View more examples here.