Set Up API Key (One-Time Process)
​​This short video shows the simple process to create an API key in OpenAI (xAI works the same). For best clarity, watch it in full-screen:
Alternatively, you can also follow this step-by-step below:
Step 1: Choose your AI Provider
Step 2: Log into your Provider's Dashboard to manage keys, billing and usage
Step 3: Create an API Key
-
xAI API Key​
-
Important: copy the key right after generating it. You won’t be able to see it again (need to generate a new one).
Step 4: Save Your API Key
-
Store it in a plain text file (e.g., aiprovider_api_key.txt).
-
Place it somewhere your iOS device can access, such as iCloud Drive.
-
Keep it private — just like a password.
​​​​
Step 5: Add a Payment Method and Balance to Your Account
-
xAI Billing Info, more details can be found in the Billing Docs
-
Add a payment method and funds/credits.
-
As long as your balance is positive, the app’s requests will work.