Quick answer
The Grok API charges per token from prepaid credits. The flagship Grok 4.7 costs $2.00 per million input tokens and $6.00 per million output tokens, and the cheaper Grok 4.3 costs $1.25 and $2.50. Web search and X search add $5 per 1,000 calls. To get a key, sign up at console.x.ai, buy credits and create a key on the API Keys page. There is no published free tier, and a paid Grok app plan does not cover API usage. Rates are from SpaceXSI’s API pricing page, checked November 19, 2026.
Key takeaways
- Prompts over 200K tokens cost double, so keep long jobs under that line where you can.
- Batch requests are 20% off and do not count toward rate limits.
- By default your requests stop when prepaid credits run out, which protects you from a surprise bill.
- Rate limits rise automatically as your total spend passes $50, $250, $1,000 and $5,000.
- Screening 100 CVs with Grok 4.3 costs about 50 cents in tokens.
How much does the Grok API cost per token?
Every text model has three prices: fresh input, cached input (repeated text such as a long system prompt) and output. Each doubles once a prompt passes 200K tokens. Prices are in US dollars per million tokens.
| Model | Input | Cached input | Output | Over 200K prompt tokens |
|---|---|---|---|---|
| Grok 4.7 | $2.00 | $0.50 | $6.00 | $4.00 / $1.00 / $12.00 |
| Grok 4.6 | $2.00 | $0.50 | $6.00 | $4.00 / $1.00 / $12.00 |
| Grok 4.5 | $2.00 | $0.30 | $6.00 | $4.00 / $0.60 / $12.00 |
| Grok 4.3 | $1.25 | $0.20 | $2.50 | $2.50 / $0.40 / $5.00 |
| Grok 4.20 (0309 variants) | $1.25 | $0.20 | $2.50 | $2.50 / $0.40 / $5.00 |
| Grok Build 0.1 | $1.00 | $0.20 | $2.00 | $2.00 / $0.40 / $4.00 |
Grok 4.7 is the flagship, with a 500K token context window and a May 2026 knowledge cutoff, according to SpaceXSI’s models page. For most recruiting and business tasks, Grok 4.3 is the better value: it costs about 60% less on output.
What do Grok’s tools and extras cost?
| Item | Price |
|---|---|
| Web Search | $5 per 1,000 calls |
| X Search | $5 per 1,000 posts, $10 per 1,000 profiles |
| Code Execution | $5 per 1,000 calls |
| File Attachments | $5 per 1,000 calls |
| Collections Search | $2.50 per 1,000 calls |
| Batch API | 20% off listed models |
| Priority Processing | 2x standard rates |
| US regional endpoint | 1.1x token rates on Grok 4.7 and Grok 4.6 |
| Image generation | From $0.02 per image |
| Video generation | From $0.02 per second |
| Text to speech | $15 per million characters |
| Speech to text | $0.10 per hour, $0.20 streaming |
| Files storage | $0.025 per GiB per day |
One fee people miss: a request blocked for breaking the usage guidelines before generation costs $0.05 in the Responses API. Remote MCP tools and image understanding are billed by tokens only.
What does the Grok API cost for real recruiting jobs?
Token prices only make sense next to a job. We worked out three common recruiting tasks from the published rates, assuming prompts under 200K tokens and no caching. Your numbers will move with prompt length.
| Job | Assumption | Grok 4.3 | Grok 4.7 |
|---|---|---|---|
| Screen 100 CVs against a job description | 3,000 tokens in, 500 out per CV | About $0.50 | About $0.90 |
| Same job through the Batch API | 20% off | About $0.40 | About $0.72 |
| 50 company briefs with live search | 4,000 in, 800 out, 2 web searches each | Not calculated | About $0.64 tokens plus $0.50 search |
The cost of tokens is rarely the problem. The risks are a loop that calls the API thousands of times, and candidate data sent somewhere it should not go. Set a spend cap first and read our AI resume screening guide for the bias and legal rules before you automate screening.
How do you get a Grok API key?
It takes about five minutes. These steps follow SpaceXSI’s developer quickstart.
- Sign up at console.x.ai. You start in a Personal Team, which is where usage is billed.
- Add credits. Go to Billing, then API spend management, and buy prepaid credits. Apply a promo code there if you have one.
- Create the key. Open the API Keys page and click Create API key.
- Store it safely. Save it as an environment variable named XAI_API_KEY or in a .env file, never in a shared doc or a Grok Bot chat.
- Point your tool at Grok. The base URL is https://api.x.ai/v1, and the API works with the OpenAI SDKs, so many tools only need the URL and key changed.
If several people will use the key, invite them to a shared team instead of passing the key around. Team admins can add members by email and auto join anyone with your company’s email domain, per the Grok FAQ. Deleting a team also deletes its prepaid credits.
Is the Grok API free?
No. SpaceXSI’s quickstart and billing docs do not mention free credits or a free tier, and the console needs credits before requests go through. Plus and higher plans on The X Subscription include API access, but SpaceXSI’s pricing page says usage is billed separately at standard model rates.
WHAT IS FREE Creating an account, reading the docs, Tier 0 rate limits and the free Grok app.
WHAT IS NOT Every API request, tool call and stored file. “Free Grok API key” sites are not official; avoid them.
How does Grok API billing work?
By default, you pay in advance. Usage comes out of prepaid credits, and requests are rejected once the balance hits zero, because the invoiced billing limit starts at $0. You can turn on Auto Top Up with a $5 minimum and a monthly cap, and you get a warning at 80% of that cap. Monthly invoicing is off by default and has to be requested from sales or on the Billing page.
API credits are not refundable, so start small. Buying credits or paying an invoice also counts toward your rate limit tier.
What are the Grok API rate limits?
Each model has a requests per second limit and a tokens per minute limit. Your tier rises with total API spend since January 1, 2026, and never drops, according to SpaceXSI’s rate limits page.
| Tier | Total spend to unlock | Example on Grok 4.5 |
|---|---|---|
| Tier 0 | $0 (default) | 150 requests a second, 50M tokens a minute |
| Tier 1 | $50 | Higher |
| Tier 2 | $250 | Higher |
| Tier 3 | $1,000 | Higher |
| Tier 4 | $5,000 | 500 requests a second, 100M tokens a minute |
| Enterprise | On request | Custom |
Going over a limit returns an HTTP 429 error, and SpaceXSI recommends retrying with a growing wait between attempts. Tier 0 limits are already far beyond what a recruiting desk or small business tool needs.
Is the Grok API cheaper than Claude or ChatGPT?
Against Claude, Grok is cheaper on output at the same input price: Grok 4.7 charges $6.00 per million output tokens and Claude Sonnet 5.5 charges $10.00, with both at $2.00 for input on Claude’s pricing page. Claude Haiku 5.5 is cheaper than any Grok model for simple jobs, and Claude reads up to 1M tokens per request against 500K on Grok 4.7. Our Grok vs Claude guide compares the apps as well as the APIs.
Do you need the API, or is the Grok app enough?
Most recruiters do not need the API. The Grok app, connectors and Grok Bot cover research, drafting and routines without code; see our Grok pricing guide for those plans. The API makes sense when you are building something: a screening script, a Discord bot, a Zapier or n8n step, or a tool in your own ATS. Our build vs buy guide lists small recruiting tools worth building yourself.
Grok API questions people ask
Where do I find my Grok API key?
In the xAI console at console.x.ai, under your team’s API Keys page. If you lose a key, create a new one and delete the old one.
Is the Grok API included with SuperGrok or Premium?
Access is, usage is not. API calls come out of separate prepaid credits at standard rates.
Which Grok API model should I use?
Grok 4.3 for everyday text jobs, Grok 4.7 for harder reasoning or long documents, and Grok Build 0.1 for coding.
Does the Grok API work with the OpenAI SDK?
Yes. Set the base URL to https://api.x.ai/v1 and use your xAI key.
Can I stop the Grok API from overspending?
Yes. Leave invoiced billing off so requests stop at zero credits, and set a monthly cap on Auto Top Up.
Can the Grok API search X?
Yes, through the X Search tool at $5 per 1,000 posts or $10 per 1,000 profiles, on top of token costs.
Featured
How it worksHappierleads FeaturedPerson-level B2B website visitor identification.
Tomba FeaturedFind and verify emails on one credit meter.
Featured slots never change our picks or rankings.
Free newsletter
Get the Work Insiders weekly
One email a week: the recruiting and HR tech news that mattered, the tools we just added to the directory, and one practical guide. No spam, and you can unsubscribe in one click.

