> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.vapi.ai/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.vapi.ai/_mcp/server.

# Cerebras

> Connect a Cerebras API key to Vapi and configure an assistant with an exact model ID from your Cerebras account.

Cerebras is a large language model provider that runs open models with very fast inference. Connect your own Cerebras account to use its models on a Vapi assistant.

## What is Cerebras

Cerebras serves open large language models on its own inference hardware, optimized for low latency.

## Connect Cerebras

Cerebras requires your own account. Connect your Cerebras API key on the [Integrations](/providers/integrations) page before configuring an assistant.

## Language model

Set `model.provider` to `cerebras`. Set `model.model` to the exact model ID of a Cerebras model that your connected account can access.

```bash
curl -X PATCH "https://api.vapi.ai/assistant/ASSISTANT_ID" \
  -H "Authorization: Bearer $VAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": {
      "provider": "cerebras",
      "model": "YOUR_CEREBRAS_MODEL_ID"
    }
  }'
```

For additional API configuration options, review the [`CerebrasModel` fields](/api-reference/assistants/create#request.body.model.CerebrasModel) in the Create Assistant API reference.

## Related

#### [Integrations](/providers/integrations)

Connect your Cerebras API key.

#### [Language models](/providers/model/overview)

Compare every language model provider Vapi supports.