Skip to main content
Cerebras Inference provides high-speed, low-latency AI model inference powered by Cerebras Wafer-Scale Engines and CS-3 systems. Agno integrates directly with the Cerebras Python SDK.
Agno v2.7.2 defaults Cerebras.id to the retired llama-4-scout-17b-16e-instruct model. Set id="gpt-oss-120b" or another current Cerebras model explicitly.

Prerequisites

To use Cerebras with Agno, you need to:
  1. Install the required packages:
  2. Set your API key: The Cerebras SDK expects your API key to be available as an environment variable:

Basic Usage

Use a Cerebras model with Agno:

Supported Models

Cerebras currently serves the following models (see the model list for the latest):

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