> For the complete documentation index, see [llms.txt](https://help.wasapmatic.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.wasapmatic.com/whatsapp-artificial-intelligence-a.i/how-to-get-grok-ai-api-key.md).

# How To Get Grok AI API Key

Grok AI is another Artificial Intelligence (AI) developed by xAI and integrated with the platform X (formerly known as Twitter). Grok has usually been used in platform X.

To use the Grok AI API, you need to have an xAI account. Go to <https://accounts.x.ai/sign-in?redirect=cloud-console>

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

Before you can use the API, you need to have credits in your account. You need to purchase credits (minimum $5). Go to the billing section to purchase the credits.

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

To create the API key, go to the API Key section and click the **Create API Key** button.&#x20;

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

Create a name for your API key and enable some features (by default). Then, save the settings.

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

Then, you will get your API key. Copy the API key to use it in the Wasapmatic settings.

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

You also can check the setting or usage of your API key

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