Get xAI API key
Get your xAI API key from the xAI Console to start using xAI models through Keywords AI.
xAI models compatibility
β
Supported Frameworks
β Supported Frameworks
β Unsupported Frameworks
β Unsupported Frameworks
Add xAI API keys
There are 2 ways to add your xAI credentials to your requests:Via UI
1
Go to the Providers page
Go to Providers page

2
Add your xAI credentials.
Follow the on-screen instructions to add your xAI API key.
Via code
- Add
customer_credentialsparameter in your request body to use your own xAI credits.
Full request example
Example
Example