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

# Opper AI

<figure><img src="/files/a88NzESKgqLhxYbycaiw" alt=""><figcaption></figcaption></figure>

Go to <https://opper.ai/> and sign up for a free account.

<figure><img src="/files/M4bowszdfeEw1kQN7bGs" alt=""><figcaption></figcaption></figure>

Click on "Settings" in the bottom of the left sidebar. Click "API Keys" in the main section. Click "Create API Key" in the top right corner.&#x20;

Store the API key in your Polytope vault by running the following command in your system project directory.

```
pt secret set opper-api-key YOUR_OPPER_API_KEY
```

## Using Opper AI

We use [Opper AI](https://opper.ai) for LLM response generation and knowledge base integration. The response generation follows a pattern:

```python
def bake_response(messages):
    response, _ = opper.call(
        name="generate_response",
        instructions="Generate a helpful, friendly but brief response to the user's message in the conversation.",
        input={"messages": messages},
        output_type=str,
    )
    return response
```

Learn more about the [Opper SDK on GitHub](https://github.com/opper-ai/opper-python) and in the [official documentation](https://docs.opper.ai/).
