Skip to main content
This guide provides a quick overview for getting started with Cerebras chat models. For detailed documentation of all ChatCerebras features and configurations head to the API reference. At Cerebras, we’ve developed the world’s largest and fastest AI processor, the Wafer-Scale Engine-3 (WSE-3). The Cerebras CS-3 system, powered by the WSE-3, represents a new class of AI supercomputer that sets the standard for generative AI training and inference with unparalleled performance and scalability. With Cerebras as your inference provider, you can:
  • Achieve unprecedented speed for AI inference workloads
  • Build commercially with high throughput
  • Effortlessly scale your AI workloads with our seamless clustering technology
Our CS-3 systems can be quickly and easily clustered to create the largest AI supercomputers in the world, making it simple to place and run the largest models. Leading corporations, research institutions, and governments are already using Cerebras solutions to develop proprietary models and train popular open-source models. Want to experience the power of Cerebras? Check out our website for more resources and explore options for accessing our technology through the Cerebras Cloud or on-premise deployments! For more information about Cerebras Cloud, visit cloud.cerebras.ai. Our API reference is available at inference-docs.cerebras.ai.

Overview

Integration details

Model features

Setup

Credentials

Get an API Key from cloud.cerebras.ai and add it to your environment variables:
To enable automated tracing of your model calls, set your LangSmith API key:

Installation

The LangChain Cerebras integration lives in the langchain-cerebras package:

Instantiation

Now we can instantiate our model object and generate chat completions:

Invocation

Streaming

Async

Async streaming


API reference

For detailed documentation of all ChatCerebras features and configurations head to the API reference