# OpenAI

Rasgo allows you to bring your own OpenAI API key to use for all LLM calls. The benefits of using your own API key are: faster access to new models, and ability to keep data in your own VPC (if deployed on Azure).

If you do not bring your own key, Rasgo will provide keys to communicate with OpenAI on your behal

### How to set an API key for an LLM provider

API keys are set at your organization-level. All users in your organization will share this key. Rasgo supports one key per organization.

In the Admin Settings screen, navigate to the "AI Providers & Models" tab:

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

Click "Connect" on one of the supported LLM providers.

Enter all values in the modal, and your organization will be set to connect with your API key.

![](/files/TrvR0SEyJAPOhtWcQuWI)

Next, you must set the models your organization will use for chat and text embeddings.

### How to Set LLM Models

In the Admin Settings > "AI Providers & Models" tab:

![](/files/cnvNqkY1Klv2haFRCh9O)

Click "Add" to create a new model. Fill out all values in the modal to save models.

#### ![](/files/DjRMTUC845jz9c704ssD)

**Create at least 1 chat model and 1 embedding model**. If you add more than one chat model, users will be able to select from this list in their chat screens.

{% hint style="warning" %}
Every organization must have at least 1 chat model and 1 embedding model created to function properly.
{% endhint %}

Finally, select the models that will run as defaults for your organization. The default chat model will appear as the suggested model in all user's chats, but they will have the ability to override it.&#x20;

![](/files/xvEU1jtOC6hsVokm4Sgs)

### Connecting to your VPC

Rasgo will always connect to your LLM provider from these IP addresses. Make sure to whitelist them if you're running a secure VPC.

| IP Address   |
| ------------ |
| 52.22.246.61 |


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.rasgoml.com/rasgo-docs/integrations/openai.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
