Guide on generating xAI API keys and using them in Porter AI.
Go to https://x.ai and sign up or log in.
Go to https://docs.x.ai, click Create an API key
, and add credits (minimum $5) to generate an API key.
After adding credits, click the key icon in the left sidebar of the dashboard to access the Create API key
button and view your generated key.
In Settings > Models
, click the icon for xAI and enter your API key.
Once you’ve registered an API key, you can add additional xAI models beyond the default ones. Simply provide a display name (shown in chats) and the official xAI model name.