> For the complete documentation index, see [llms.txt](https://docs.mindmac.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mindmac.app/faqs/invalid-url-or-key-issue.md).

# Invalid URL or Key issue

At the very first time you add new API endpoint, you may encounter issue **Invalid URL or key:**

<figure><img src="/files/eySCU0VWnkeZCJY6LRQo" alt=""><figcaption><p>Invalid URL or key issue when add new API endpoint</p></figcaption></figure>

The first and most popular reason is that you have not included billing payment for the ChatGPT API. There is a difference between the ChatGPT API, which is required to be used in MindMac, and ChatGPT Plus. You can find further information [here](https://help.openai.com/en/articles/6950777-what-is-chatgpt-plus).&#x20;

> **Is the ChatGPT API included in the ChatGPT Plus subscription?**<br>
>
> *No, the ChatGPT API and ChatGPT Plus subscription are billed separately. The API has its own pricing, which can be found at* [*https://openai.com/pricing*](https://openai.com/pricing)*. The ChatGPT Plus subscription covers usage on chat.openai.com only and costs $20/month.*

To address this issue, simply **go to your** [**OpenAI billing dashboard**](https://platform.openai.com/account/billing/overview) and **add your billing information.**

Other reasons may occur when you input an incorrect website address or an incorrect API key (for example, if you accidentally copied it wrong). Additionally, your free credit may have expired. To resolve these issues, please take a moment to carefully double-check all of this data.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.mindmac.app/faqs/invalid-url-or-key-issue.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
