Skip to main content

Get xAI API key

Get your xAI API key from the xAI Console to start using xAI models through Keywords AI.

xAI models compatibility

Add xAI API keys

There are 2 ways to add your xAI credentials to your requests:

Via UI

1

Go to the Providers page

2

Add your xAI credentials.

Follow the on-screen instructions to add your xAI API key.

Via code

  • Add customer_credentials parameter in your request body to use your own xAI credits.

Full request example