# 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="https://2219483187-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FohLBWu9DEbgK45Ck5odw%2Fuploads%2FcGCh1o2NbecfkmAGLgJD%2Fscreenshot-rocks%20(25).png?alt=media&#x26;token=6beb0e63-6001-49d0-b3d6-8003d6aaf7b1" 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="https://2219483187-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FohLBWu9DEbgK45Ck5odw%2Fuploads%2FXSmWYwmOnR5CblEbElPT%2Fscreenshot-rocks%20(17).png?alt=media&#x26;token=06257427-8e79-438c-bd69-c7f18f8c0096" 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="https://2219483187-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FohLBWu9DEbgK45Ck5odw%2Fuploads%2FdFwMcA2lpsFtFnLiNOJ6%2Fscreenshot-rocks%20(18).png?alt=media&#x26;token=38a96eac-7dab-45e5-bb6f-7530d3762cae" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2219483187-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FohLBWu9DEbgK45Ck5odw%2Fuploads%2FVSU9ChxqpGr6oWqLuMWd%2Fscreenshot-rocks%20(19).png?alt=media&#x26;token=df8aee77-4490-4ba7-8cc2-c5d6ed46de68" 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="https://2219483187-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FohLBWu9DEbgK45Ck5odw%2Fuploads%2FXhry5BN8yQMGiEgZtyDn%2Fscreenshot-rocks%20(20).png?alt=media&#x26;token=9f0dd8d3-2b61-4fce-8f92-9df3b3a4d6a7" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2219483187-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FohLBWu9DEbgK45Ck5odw%2Fuploads%2FKgnZebWZeVcn1K38V1Az%2Fscreenshot-rocks%20(21).png?alt=media&#x26;token=0804c937-bedd-4743-99a7-8e4f42eae225" alt=""><figcaption></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://help.wasapmatic.com/whatsapp-artificial-intelligence-a.i/how-to-get-grok-ai-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.
