xAI Grok API - $150/Month Data Sharing Credits
Source: https://console.x.ai/
Description
Create account to comment on specific lines or Sign in
+ 1 xAI offers $25 in free promotional credits to every new API account, plus an optional $150/month in recurring credits for teams that opt into irrevocable data sharing. The API gives access to the full Grok model family -- from the budget Grok 3 Mini ($0.10/M input) to the flagship Grok 4 ($3/M input) -- with OpenAI- and Anthropic-compatible SDKs, so switching is straightforward. No X Premium subscription is required for API access; you just need an xAI account and credits.
No comments on this line yet.
+ 2
No comments on this line yet.
+
3
No comments on this line yet.
+ 4
No comments on this line yet.
+ 6
No comments on this line yet.
+ 7 1. Go to console.x.ai or accounts.x.ai/sign-up
No comments on this line yet.
+ 8 2. Click "Sign Up" -- you can register with email + password or use "Login with X" to authenticate via your X account
No comments on this line yet.
+ 9 3. Verify your email by clicking the confirmation link sent to your inbox
No comments on this line yet.
+ 10 4. Log in to the xAI dashboard -- your $25 promotional credit should appear within minutes
No comments on this line yet.
+ 11 5. Navigate to "API Keys" in the left sidebar and click "Create New Key"
No comments on this line yet.
+
12
6. Copy and securely store the generated key (starts with xai-). It is only shown once
No comments on this line yet.
+
13
7. Authenticate requests with Authorization: Bearer <your xAI API key> against the base URL https://api.x.ai
No comments on this line yet.
+ 14
No comments on this line yet.
+ 15 Important:
No comments on this line yet.
+ 16 • No credit card is required to create an account and use the $25 promotional credit
No comments on this line yet.
+ 17 • Promotional credits expire 30 days after account creation -- use them or lose them
No comments on this line yet.
+
18
• The API is OpenAI SDK-compatible: set base_url="https://api.x.ai/v1" in the OpenAI Python client and it works
No comments on this line yet.
+ 19 • The Anthropic SDK is also supported for compatible endpoints
No comments on this line yet.
+ 20
No comments on this line yet.
+
21
No comments on this line yet.
+ 22
No comments on this line yet.
+ 24
No comments on this line yet.
+ 25 The data sharing program is the main free credit offering. In exchange for letting xAI use your API inputs and outputs to train future models, you get $150/month in credits that work with all Grok models.
No comments on this line yet.
+ 26
No comments on this line yet.
+ 28
No comments on this line yet.
+ 29 1. Your team must have at least $5 in total prior API spend (promotional credits count toward this)
No comments on this line yet.
+ 30 2. Go to the Credits Section on the xAI Console Billing page
No comments on this line yet.
+ 31 3. Read and accept the data sharing terms
No comments on this line yet.
+ 32 4. Only team admins can enable data sharing
No comments on this line yet.
+ 33 5. Credits appear within 24 hours and refresh monthly
No comments on this line yet.
+ 34
No comments on this line yet.
+ 36
No comments on this line yet.
+ 37 • Irrevocable: Once a team opts in, it cannot opt out. This is permanent for that team
No comments on this line yet.
+ 38 • Workaround: You can create multiple teams -- opt one into data sharing for non-sensitive work and keep another team without data sharing for proprietary projects
No comments on this line yet.
+ 39 • Data shared: Your prompts and model responses are used by xAI to improve future model versions
No comments on this line yet.
+ 40 • Not suitable for: Proprietary code, confidential business data, personal information, or anything you would not want used in AI training
No comments on this line yet.
+ 41 • Credits do not accumulate -- unused credits from one month do not roll over
No comments on this line yet.
+ 42 • Geographic restrictions: Only available in eligible countries (xAI has not published a definitive list, but major markets in North America, Europe, and parts of Asia are generally supported)
No comments on this line yet.
+ 43
No comments on this line yet.
+ 44 Note: There have been reports (May 2025) that xAI ended the data sharing program. However, third-party trackers still list it as active. Check the xAI console directly at console.x.ai to confirm current availability before relying on this credit.
No comments on this line yet.
+ 45
No comments on this line yet.
+
46
No comments on this line yet.
+ 47
No comments on this line yet.
+ 49
No comments on this line yet.
+ 50 ModelInput (per 1M tokens)Output (per 1M tokens)Context WindowBest For
No comments on this line yet.
+ 51 Grok 4$3.00$15.00256KComplex reasoning, flagship
No comments on this line yet.
+ 52 Grok 4.1 Fast$0.20$0.502MHigh-volume production, best value
No comments on this line yet.
+ 53 Grok 3$2.00$10.00128KGeneral tasks
No comments on this line yet.
+ 54 Grok 3 Mini$0.10$0.30128KSimple tasks, lowest cost
No comments on this line yet.
+ 55
No comments on this line yet.
+ 57
No comments on this line yet.
+ 58 ModelCached Input (per 1M)Savings
No comments on this line yet.
+ 59 Grok 4.1 Fast$0.1050%
No comments on this line yet.
+ 60 Grok 4$0.7575%
No comments on this line yet.
+ 61 Grok 3$0.5075%
No comments on this line yet.
+ 62
No comments on this line yet.
+ 64
No comments on this line yet.
+
65
• Grok 3 Mini (grok-3-mini-beta, grok-3-mini-fast-beta) -- supports reasoning_effort parameter (low/high)
No comments on this line yet.
+
66
• Grok 2 (grok-2-1212) -- legacy, still available
No comments on this line yet.
+
67
• Grok 2 Vision (grok-2-vision-1212) -- image understanding
No comments on this line yet.
+
68
• Grok 2 Image (grok-2-image-1212) -- text-to-image generation
No comments on this line yet.
+
69
• Grok Imagine Image (grok-imagine-image) -- image generation
No comments on this line yet.
+
70
• Grok Code Fast (grok-code-fast-1) -- optimized for agentic coding tasks
No comments on this line yet.
+ 71
No comments on this line yet.
+ 73
No comments on this line yet.
+ 74 ToolCost
No comments on this line yet.
+ 75 Web Search$5.00 per 1,000 calls
No comments on this line yet.
+ 76 X Search$5.00 per 1,000 calls
No comments on this line yet.
+ 77 Code Execution$5.00 per 1,000 calls
No comments on this line yet.
+ 78 Document Search$5.00 per 1,000 calls
No comments on this line yet.
+ 79 Collections Search$2.50 per 1,000 calls
No comments on this line yet.
+ 80 Live Search (per source)$25.00 per 1,000 sources
No comments on this line yet.
+ 81
No comments on this line yet.
+
82
No comments on this line yet.
+ 83
No comments on this line yet.
+ 85
No comments on this line yet.
+ 86 With $150/month in data sharing credits, here is what you can get:
No comments on this line yet.
+ 87
No comments on this line yet.
+ 88 ModelApproximate Usage per $150
No comments on this line yet.
+ 89 Grok 4.1 Fast (input)~750M input tokens
No comments on this line yet.
+ 90 Grok 4.1 Fast (output)~300M output tokens
No comments on this line yet.
+ 91 Grok 3 Mini (input)~1.5B input tokens
No comments on this line yet.
+ 92 Grok 4 (input)~50M input tokens
No comments on this line yet.
+ 93
No comments on this line yet.
+ 94 For most indie developers and experimenters, Grok 4.1 Fast offers the best balance of capability and cost -- near-frontier intelligence at 15x less than Grok 4.
No comments on this line yet.
+ 95
No comments on this line yet.
+
96
No comments on this line yet.
+ 97
No comments on this line yet.
+ 99
No comments on this line yet.
+ 100 Separate from the API, Grok is also available as a conversational assistant through the X platform:
No comments on this line yet.
+ 101
No comments on this line yet.
+ 102 TierPriceGrok Access
No comments on this line yet.
+ 103 Free (X users)$0Grok 3, ~10 requests/2 hours, Aurora image gen
No comments on this line yet.
+ 104 X Premium+~$16/monthFull Grok 4, higher limits
No comments on this line yet.
+ 105 SuperGrok$30/monthGrok 4 via grok.com, highest quotas
No comments on this line yet.
+ 106 SuperGrok Heavy$300/monthGrok 4 Heavy (multi-agent, max compute)
No comments on this line yet.
+ 107
No comments on this line yet.
+ 108 These are conversational-only and do not provide API access. The API is a separate product with its own billing.
No comments on this line yet.
+ 109
No comments on this line yet.
+
110
No comments on this line yet.
+ 111
No comments on this line yet.
+ 113
No comments on this line yet.
+
114
• OpenAI SDK compatibility -- You can use the OpenAI Python/JS SDK by changing the base URL to https://api.x.ai/v1. This makes migration trivial if you are already using OpenAI
No comments on this line yet.
+ 115 • Spending limits -- Configure your invoiced spending limit at console.x.ai. The default is $0, which stops API access when credits run out (no surprise bills)
No comments on this line yet.
+
116
• Grok 4 is reasoning-only -- Unlike other models, Grok 4 always uses chain-of-thought reasoning. There is no non-reasoning mode, and the reasoning_effort parameter is not supported (it will return an error)
No comments on this line yet.
+ 117 • Image input -- Vision-capable models accept images up to 20 MB in jpg/jpeg/png format with no limit on quantity
No comments on this line yet.
+ 118 • Knowledge cutoff -- Grok 3 and Grok 4 have a knowledge cutoff of November 2024, but Live Search and Web Search tools can fetch real-time information
No comments on this line yet.
+ 119 • SpaceX acquisition -- As of February 2026, SpaceX has acquired xAI. This may affect future pricing and platform direction
No comments on this line yet.
+ 120 • Multiple teams strategy -- Create separate teams for sensitive vs. non-sensitive projects. Only opt into data sharing on teams handling non-confidential data
No comments on this line yet.
+ 121 • Credit card not required -- For the $25 signup credit and initial exploration, no payment method is needed. You only need to add a payment method for prepaid credits or invoiced billing beyond free credits
No comments on this line yet.
+ 122
No comments on this line yet.
+
123
No comments on this line yet.
+ 124
No comments on this line yet.
+ 125 Sources:
No comments on this line yet.
+ 126 • xAI API Overview
No comments on this line yet.
+ 127 • xAI Models and Pricing
No comments on this line yet.
+ 128 • xAI API Console
No comments on this line yet.
+ 129 • xAI API Page
No comments on this line yet.
+ 130 • xAI Hitchhiker's Guide
No comments on this line yet.
+ 131 • xAI Grok API Pricing Guide 2026 (aifreeapi.com)
No comments on this line yet.
+ 132 • Grok API Pricing Calculator (costgoat.com)
No comments on this line yet.
+ 133 • xAI Data Sharing Program (cloudcredits.io)
No comments on this line yet.
+ 134 • Grok AI Supported Countries (prexility.com)
No comments on this line yet.
+ 135 • xAI Pricing Explained (eesel.ai)
No comments on this line yet.
+ 136 • Grok Free Plans and Subscriptions (datastudios.org)
No comments on this line yet.