> For the complete documentation index, see [llms.txt](https://docs.stackai.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stackai.com/integrations/catalog/cerebras/connect-cerebras.md).

# Connect Cerebras

### Setting Up a Connection

#### Step 1: Get your Cerebras API key

![Connect Cerebras setup](https://1957915746-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSQ1Sgy933krTyK0S4JpP%2Fuploads%2Frn2L4o9AKE2ErKRh5Fb0%2Fimage.png?alt=media)

Navigate to [cloud.cerebras.ai](https://cloud.cerebras.ai/), sign in to your account, and go to the **API Keys** section. Create a new key and copy it — you will not be able to view it again after leaving the page.

#### Step 2: Open the Connections page in StackAI

In your StackAI workspace, navigate to **Settings > Connections**. Click **New Connection** and search for or select **Cerebras** from the provider list.

#### Step 3: Enter your API key and save

![Connect Cerebras setup](https://1957915746-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSQ1Sgy933krTyK0S4JpP%2Fuploads%2Fxrjkxasu76yenL9PutSS%2Fimage.png?alt=media)

Paste your API key into the **API Key** field. Click **Test** to verify the connection - StackAI will call the Cerebras API to confirm your key is valid. Once the test passes, click **Save**. Select the saved connection in workflows that need it.

#### Step 4: Verify the connection

After saving, the connection appears in your **Connections** list. The health-check indicator confirms StackAI can reach the Cerebras API with your key.

***

### How to use it?

Add an **LLM** node or a **Cerebras** action node to your workflow, select Cerebras as the provider, choose a model, configure your generation parameters, and run. StackAI handles authentication, request routing, and output parsing automatically.

![Connect Cerebras setup](https://1957915746-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSQ1Sgy933krTyK0S4JpP%2Fuploads%2FcaR1WN0iQkvv1AZ7mjJk%2Fimage.png?alt=media)

***

## Connection fields and action reference

See [Cerebras](https://docs.stackai.com/integrations/catalog/cerebras.md) for the current connector fields and supported actions.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.stackai.com/integrations/catalog/cerebras/connect-cerebras.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
