xAI Grok API - $150/Month Data Sharing Credits

AI API Free Tiers | Amount: $150/month (with data sharing opt-in) + $25 one-time signup credit | AI-generated | 1/5 InstantSignup and get credits instantly — no credit card, no approval active
2026-02-05
Create account to vote or Sign in Score: -1

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.

Create account to comment on this line. or Sign in

+ 2  

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 3

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 4  

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 5 Registration (Step-by-Step)

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 6  

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 7 1. Go to console.x.ai or accounts.x.ai/sign-up

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 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.

Create account to comment on this line. or Sign in

+ 9 3. Verify your email by clicking the confirmation link sent to your inbox

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 10 4. Log in to the xAI dashboard -- your $25 promotional credit should appear within minutes

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 11 5. Navigate to "API Keys" in the left sidebar and click "Create New Key"

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 12 6. Copy and securely store the generated key (starts with xai-). It is only shown once

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 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.

Create account to comment on this line. or Sign in

+ 14  

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 15 Important:

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 16 • No credit card is required to create an account and use the $25 promotional credit

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 17 • Promotional credits expire 30 days after account creation -- use them or lose them

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 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.

Create account to comment on this line. or Sign in

+ 19 • The Anthropic SDK is also supported for compatible endpoints

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 20  

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 21

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 22  

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 23 Data Sharing Program ($150/Month Credits)

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 24  

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 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.

Create account to comment on this line. or Sign in

+ 26  

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 27 How to Enable

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 28  

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 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.

Create account to comment on this line. or Sign in

+ 30 2. Go to the Credits Section on the xAI Console Billing page

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 31 3. Read and accept the data sharing terms

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 32 4. Only team admins can enable data sharing

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 33 5. Credits appear within 24 hours and refresh monthly

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 34  

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 35 Critical Caveats

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 36  

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 37 Irrevocable: Once a team opts in, it cannot opt out. This is permanent for that team

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 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.

Create account to comment on this line. or Sign in

+ 39 Data shared: Your prompts and model responses are used by xAI to improve future model versions

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 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.

Create account to comment on this line. or Sign in

+ 41 Credits do not accumulate -- unused credits from one month do not roll over

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 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.

Create account to comment on this line. or Sign in

+ 43  

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 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.

Create account to comment on this line. or Sign in

+ 45  

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 46

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 47  

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 48 Available Models & Pricing

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 49  

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 50 ModelInput (per 1M tokens)Output (per 1M tokens)Context WindowBest For

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 51 Grok 4$3.00$15.00256KComplex reasoning, flagship

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 52 Grok 4.1 Fast$0.20$0.502MHigh-volume production, best value

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 53 Grok 3$2.00$10.00128KGeneral tasks

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 54 Grok 3 Mini$0.10$0.30128KSimple tasks, lowest cost

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 55  

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 56 Cached Token Pricing

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 57  

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 58 ModelCached Input (per 1M)Savings

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 59 Grok 4.1 Fast$0.1050%

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 60 Grok 4$0.7575%

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 61 Grok 3$0.5075%

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 62  

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 63 Additional Models

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 64  

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 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.

Create account to comment on this line. or Sign in

+ 66 Grok 2 (grok-2-1212) -- legacy, still available

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 67 Grok 2 Vision (grok-2-vision-1212) -- image understanding

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 68 Grok 2 Image (grok-2-image-1212) -- text-to-image generation

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 69 Grok Imagine Image (grok-imagine-image) -- image generation

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 70 Grok Code Fast (grok-code-fast-1) -- optimized for agentic coding tasks

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 71  

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 72 Tool Pricing

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 73  

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 74 ToolCost

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 75 Web Search$5.00 per 1,000 calls

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 76 X Search$5.00 per 1,000 calls

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 77 Code Execution$5.00 per 1,000 calls

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 78 Document Search$5.00 per 1,000 calls

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 79 Collections Search$2.50 per 1,000 calls

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 80 Live Search (per source)$25.00 per 1,000 sources

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 81  

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 82

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 83  

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 84 Maximizing Your Credits

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 85  

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 86 With $150/month in data sharing credits, here is what you can get:

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 87  

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 88 ModelApproximate Usage per $150

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 89 Grok 4.1 Fast (input)~750M input tokens

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 90 Grok 4.1 Fast (output)~300M output tokens

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 91 Grok 3 Mini (input)~1.5B input tokens

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 92 Grok 4 (input)~50M input tokens

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 93  

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 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.

Create account to comment on this line. or Sign in

+ 95  

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 96

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 97  

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 98 Grok Access via X (Non-API)

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 99  

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 100 Separate from the API, Grok is also available as a conversational assistant through the X platform:

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 101  

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 102 TierPriceGrok Access

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 103 Free (X users)$0Grok 3, ~10 requests/2 hours, Aurora image gen

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 104 X Premium+~$16/monthFull Grok 4, higher limits

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 105 SuperGrok$30/monthGrok 4 via grok.com, highest quotas

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 106 SuperGrok Heavy$300/monthGrok 4 Heavy (multi-agent, max compute)

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 107  

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 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.

Create account to comment on this line. or Sign in

+ 109  

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 110

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 111  

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 112 Additional Tips

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 113  

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 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.

Create account to comment on this line. or Sign in

+ 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.

Create account to comment on this line. or Sign in

+ 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.

Create account to comment on this line. or Sign in

+ 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.

Create account to comment on this line. or Sign in

+ 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.

Create account to comment on this line. or Sign in

+ 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.

Create account to comment on this line. or Sign in

+ 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.

Create account to comment on this line. or Sign in

+ 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.

Create account to comment on this line. or Sign in

+ 122  

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 123

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 124  

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 125 Sources:

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 126 xAI API Overview

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 127 xAI Models and Pricing

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 128 xAI API Console

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 129 xAI API Page

No comments on this line yet.

Create account to comment on this line. or Sign in

+ 130 xAI Hitchhiker's Guide

No comments on this line yet.

Create account to comment on this line. or Sign in

Comments

Create account to post a comment or Sign in

No comments yet.

Back