# How to find API key

**Step 1.** Login XLG.AI first

**Step 2.** Click on avatar -> profile or you can go by this [link](https://xlg.ai/profile)

**Step 3.** Copy your **API key** on the screen, if your API key is shown "Not set" please click on the  "refresh key" button to retrieve a new key.

{% hint style="info" %}
If you want to get a new API key, you can click on the "refresh key" button to get a new key.

**Note:** Remember that your old key **cannot** use anymore!
{% endhint %}


---

# 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.xlg.ai/faq/how-to-find-api-key.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.
