Skip to main content
Lesson 1 of 14 · Grok API quickstart

Create an xAI account

Lesson 1 of 14 Updated July 30, 2026 Developer
On this page
  1. Your first step toward the Grok API
  2. Create your account on accounts.x.ai
  3. Secure your account
  4. xAI account and Grok account
  5. Update your information
  6. Key takeaways

Your first step toward the Grok API

To use xAI’s Grok API, you need an account on the xAI platform. That account gives you access to the management console, billing, and API key generation. Signing up is quick and doesn’t require any upfront payment.

Create your account on accounts.x.ai

Go to accounts.x.ai to start signing up. You have several sign-in methods:

  • X (Twitter) account: the most direct method. Your X account is automatically linked to your xAI account, which makes management simpler
  • Email and password: a classic sign-up with email verification
  • Google: sign in with your existing Google account

Important points about accounts

Several accounts can exist with the same email if you use different sign-in methods. For example, an account created through X and another created by email with the same address are two separate accounts. These accounts can’t be merged later, so choose your method from the start.

3
Sign-in methods
$0
Cost to sign up
MFA
Stronger authentication
30 days
Restoration window

Secure your account

Once you’re signed in, go to your account’s Security page to turn on multi-factor authentication (MFA). This step is strongly recommended, because your xAI account gives access to API keys that can run up costs.

When you turn on MFA, the platform gives you recovery codes. Keep them safe in a password manager: xAI can’t reset your MFA without them. If you lose them, the only option is to delete the account and create a new one.

xAI account and Grok account

If you already use Grok (the consumer chatbot), your account is shared between the two services. Billing stays separate, though:

  • xAI API: managed on console.x.ai (prepaid credits or monthly billing)
  • Consumer Grok: managed on grok.com or through the Apple/Google app stores

So you don’t need a second account if you’re already a Grok user.

Update your information

To change your email or personal details, go to the Account section of accounts.x.ai. If you want to delete your account, the option is in the settings. Deletion is reversible for 30 days: just sign back in to restore the account.

Key takeaways

  • Create your account on accounts.x.ai with X, email, or Google
  • Turn on MFA and keep your recovery codes
  • The same email can have several accounts depending on the sign-in method
  • The account is shared with Grok, but billing is separate