# API Keys

{% hint style="info" %}
We don't store your OpenAI keys when using our API. You must supply them for every request for security and simplicity. That way you're in control of costs and your key is never leaked.
{% endhint %}

Generating an API Key

To generate an API key, navigate to the API Key Management section in your user interface from Materials page.  Click on the "Generate API Key" button to create a new key. Once generated, you can copy the key to your clipboard by clicking the copy icon next to it. You can also copy the curl or language specific code blocks on the left section where your api key will be replaced automatically once you generate one. Please note that only admins of the project will be able to access this page for ensuring secured access to the API.

Note: You can have at max one API key at a time. Feel free to rotate it using the rotate key button or delete it if the need arises.

<figure><img src="/files/PigStIYiH4kQsCAX4vP8" alt=""><figcaption><p>API Key Management Page</p></figcaption></figure>


---

# 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.uiuc.chat/api/api-keys.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.
