> ## Documentation Index
> Fetch the complete documentation index at: https://lava.so/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Cerebras

> Cerebras Systems achieves the industry's lowest inference latency using wafer-scale chip architecture, delivering token generation speeds orders of magnitude faster than GPU-based providers.

Cerebras offers 7 models through Lava's AI Gateway, supporting Chat Completions. Authentication uses `Authorization: Bearer`. See the [Cerebras API docs](https://docs.cerebras.ai) for provider-specific parameters.

<Info>Supports both **managed** (Lava's API keys) and **unmanaged** (bring your own credentials) mode.</Info>

## Quick Start

```typescript theme={null}
const response = await fetch('https://api.lava.so/v1/forward?u=https%3A%2F%2Fapi.cerebras.ai%2Fv1%2Fchat%2Fcompletions', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    Authorization: `Bearer ${forwardToken}`,
  },
  body: JSON.stringify({
    model: 'gpt-oss-120b',
    messages: [{ role: "user", content: "Hello!" }],
  }),
});
```

## Chat Completions

**Target URL:** `https://api.cerebras.ai/v1/chat/completions`

|                  |                                          |
| ---------------- | ---------------------------------------- |
| **Content Type** | `application/json`                       |
| **Streaming**    | Yes (set `stream: true` in request body) |

| Model                          | Input / 1M tokens | Output / 1M tokens |
| ------------------------------ | ----------------- | ------------------ |
| qwen-3-235b-instruct           | \$0.60            | \$1.20             |
| gpt-oss-120b                   | \$0.35            | \$0.75             |
| llama3.1-8b                    | Free              | Free               |
| llama-3.3-70b                  | Free              | Free               |
| deepseek-r1-distill-llama-70b  | Free              | Free               |
| llama-4-scout-17b-16e-instruct | Free              | Free               |
| qwen-3-32b                     | Free              | Free               |

## Next Steps

<CardGroup cols={2}>
  <Card title="All Providers" icon="grid" href="/gateway/supported-providers">
    Browse all supported AI providers
  </Card>

  <Card title="Forward Proxy" icon="route" href="/gateway/forward-proxy">
    Learn how to construct proxy URLs and authenticate requests
  </Card>
</CardGroup>
