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

# Cerebras

Obiguard provides a robust and secure gateway to facilitate the integration of various Large Language Models (LLMs) into your applications, including the models hosted on [Cerebras Inference API](https://cerebras.ai/inference).

<Note>
  Provider Slug: `cerebras`
</Note>

## Obiguard SDK Integration with Cerebras

Obiguard provides a consistent API to interact with models from various providers. To integrate Cerebras with Obiguard:

### 1. Install the Obiguard SDK

<Tabs>
  <Tab title="Python SDK">
    ```sh theme={null}
    pip install obiguard
    ```
  </Tab>
</Tabs>

### 2. Initialize Obiguard with Cerebras

To use Cerebras with Obiguard, get your API key from [here](https://cerebras.ai/inference), then add it to Obiguard to create the virtual key.

<Tabs>
  <Tab title="Python SDK">
    ```py theme={null}
    from obiguard import Obiguard

    client = Obiguard(
      obiguard_api_key="sk-obg***",  # Your Obiguard API key
      virtual_key="CEREBRAS_VIRTUAL_KEY" # Your Cerebras Inference virtual key
    )
    ```
  </Tab>
</Tabs>

### 3. Invoke Chat Completions

<Tabs>
  <Tab title="Python SDK">
    ```python theme={null}
    completion = client.chat.completions.create(
      messages= [{"role": 'user', "content": 'Say this is a test'}],
      model= 'llama3.1-8b'
    )
    ```
  </Tab>
</Tabs>

***

## Supported Models

Cerebras currently supports `Llama-3.1-8B` and `Llama-3.1-70B`. You can find more info here:

<Info>
  [Overview - Starter KitStarter Kit](https://inference-docs.cerebras.ai/introduction)
</Info>

## Next Steps

The complete list of features supported in the SDK are available on the link below.

<Card title="SDK" href="/api-reference/sdk/python" />
