---
title: "What does the Grok API cost per million tokens?"
description: "Grok API prices in November 2026: grok-4.7 costs $2 input and $6 output per million tokens. Compare cached input, long context, tools, storage and batch rates."
image: "https://bombos.ai/assets/og-en-v2.png"
---

# What does the Grok API cost per million tokens?

Short answer

As of November 2026, xAI's flagship grok-4.7 costs $2.00 per million input tokens, $0.50 for cached input and $6.00 per million output tokens. The cheaper grok-4.3 and grok-4.20 models cost $1.25 in and $2.50 out with a 1M context window. Long-context rates apply from 200k prompt tokens; the listed grok-4.x models receive a 20 percent batch discount.

*Piet Baudoin · published November 16, 2026 · November 16, 2026*

## Token prices per model, November 2026

All prices are in US dollars per million tokens, from xAI’s developer pricing page. The long-context rate applies once a request reaches 200k prompt tokens, and then to every token in that request.

| Model | Context | Input | Cached input | Output | Input / cached / output from 200k |
| --- | --- | --- | --- | --- | --- |
| grok-4.7 | 500k | $2.00 | $0.50 | $6.00 | $4.00 / $1.00 / $12.00 |
| grok-4.6 | 500k | $2.00 | $0.50 | $6.00 | $4.00 / $1.00 / $12.00 |
| grok-4.5 | 500k | $2.00 | $0.30 | $6.00 | $4.00 / $0.60 / $12.00 |
| grok-4.3 | 1M | $1.25 | $0.20 | $2.50 | $2.50 / $0.40 / $5.00 |
| grok-4.20-0309-reasoning and non-reasoning | 1M | $1.25 | $0.20 | $2.50 | $2.50 / $0.40 / $5.00 |
| grok-4.20-multi-agent-0309 | 1M | $1.25 | $0.20 | $2.50 | $2.50 / $0.40 / $5.00 |
| grok-build-0.1 | 256k | $1.00 | $0.20 | $2.00 | $2.00 / $0.40 / $4.00 |

Batch requests get 20 percent off on the grok-4.x models; results usually arrive within 24 hours and batch traffic does not count against your rate limits.

## The costs that are not tokens

Agentic requests call server-side tools, and each call has its own fee on top of tokens.

| Tool or resource | Price |
| --- | --- |
| Web Search | $5 per 1,000 calls |
| Code Execution | $5 per 1,000 calls |
| File attachments search | $5 per 1,000 calls |
| Collections Search | $2.50 per 1,000 calls |
| X Search | $5 per 1,000 posts, $10 per 1,000 profiles |
| Remote MCP tools | No call fee, tokens only |
| File storage | $0.025 per GiB per day |
| Collections storage | $0.10 per GiB per day |
| Downloads | $0.20 per GiB |

A model that decides to search five times in one answer bills five tool calls. When you attach files to a request, Grok runs `attachment_search` as often as it thinks it needs to, and each run is a tool call.

## A worked example

Hypothetical workload: an internal support agent on grok-4.7 handles 1,000 questions a day. Each question sends 20k tokens of instructions and context and gets 1k tokens back, and makes two Collections searches.

1.  Input: 20M tokens x $2.00 = $40.00
2.  Output: 1M tokens x $6.00 = $6.00
3.  Collections Search: 2,000 calls x $2.50 / 1,000 = $5.00
4.  Total: about $51 per day, before caching

If the 20k of instructions is identical each time and served from cache, most of that input drops to $0.50 per million, and the input line falls to roughly a quarter. Caching repeated context can reduce input costs; its effect depends on cache hits and the share of output and tool costs.

## The common mistake: paying long-context rates by accident

Because the 200k threshold reprices the whole request, a team that stuffs every document into every prompt pays double on all tokens, not just the overflow. Keeping prompts under 200k, and fetching only the relevant pieces through Collections or retrieval, usually costs less than the “send it all” approach, even after paying for search calls.

## Which model to start with

Compare grok-4.3, grok-4.20, grok-4.7 and grok-build-0.1 on your own tasks, using the table to account for token prices and context limits. grok-4.7 costs 1.6 times as much for input and 2.4 times as much for output as grok-4.3, so the quality gain has to be worth it for your work. A Dutch version with more on model choice is at [wat kost de Grok API](https://bombos.ai/vragen/grok/grok-api-kosten/).

## What this means for a team

Repeated instructions and documents add input costs; the largest cost category depends on the workload. Each agent your team builds on Grok carries its own copy of that context, and so does every agent built on Claude or OpenAI next to it. The [Grok Enterprise pricing page](https://bombos.ai/en/questions/grok/grok-enterprise-pricing/) covers what the chat seats add on top.

## Where Bombos fits

Bombos gives every agent and AI tool a team uses one shared memory, so an agent can fetch the few pieces of team knowledge and learned rules a task needs instead of carrying the whole background in every prompt. It works with Grok, Claude, OpenAI models and your own agents, in our cloud or on your own server. A single developer can try it first with their own agents.

## Related questions

Is the Grok API included in a Grok Business seat?

No. Grok Business and Enterprise seats cover chat in grok.com and the apps. API usage is billed separately per token through the xAI console.

What happens when a request reaches 200k prompt tokens?

Every token in that request, not just the part above 200k, is billed at the long-context rate. For grok-4.7 that is $4.00 input, $1.00 cached and $12.00 output per million.

Do Remote MCP tools cost extra?

There is no per-call fee for Remote MCP tools on the pricing page; you pay for the tokens the tool definitions and results add to the request.

Is there a cheaper model for coding?

grok-build-0.1 is listed at $1.00 input and $2.00 output per million tokens with a 256k context window. No batch discount is listed for it.

## Sources

1.  [xAI docs: Models and pricing](https://docs.x.ai/developers/pricing)
2.  [xAI docs: Models](https://docs.x.ai/docs/models)
3.  [xAI docs: Files](https://docs.x.ai/developers/files)

## What does your AI forget?

1.  01You tell us which AI you use and where it keeps starting over.
2.  02We show what a shared memory changes there, on your own examples.
3.  03You keep the plan, with or without Bombos.

![Piet Baudoin](https://bombos.ai/assets/team/piet-klein.jpg)

**Piet Baudoin**You talk to Piet, from the Bombos teamDutch team from Utrecht and Nijmegen · data in Europe

## More questions about Grok for business

-   [How much does Grok Business and Grok Enterprise cost for a team?](https://bombos.ai/en/questions/grok/grok-enterprise-pricing/)
-   [How do you connect Grok to your company's own documents and tools?](https://bombos.ai/en/questions/grok/connect-grok-to-company-knowledge/)
-   [What is Grok Enterprise and how is it different from Grok Business?](https://bombos.ai/en/questions/grok/grok-business-vs-grok-enterprise/)
-   [What is Grok Business, and how do you set it up for a team?](https://bombos.ai/en/questions/grok/what-is-grok-business/)
-   [Can a business use Grok Bot as a shared bot for the whole team?](https://bombos.ai/en/questions/grok/grok-bot-for-business/)
-   [Grok Business or SuperGrok: which one does someone at work need?](https://bombos.ai/en/questions/grok/grok-business-vs-supergrok/)
-   [Grok or ChatGPT for business: which team plan fits?](https://bombos.ai/en/questions/grok/grok-vs-chatgpt-for-business/)
-   [Does Grok train on business data, and is Grok Enterprise safe for company data?](https://bombos.ai/en/questions/grok/is-grok-safe-for-company-data/)

[All questions about Grok for business →](https://bombos.ai/en/questions/grok/)


---

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://bombos.ai/#organization","name":"Bombos","url":"https://bombos.ai/","logo":"https://bombos.ai/assets/bombos-bee.png","description":"Bombos is the memory layer under every AI your team uses. One shared memory for Claude, ChatGPT, Copilot, Cursor and your own agents, that learns how you work.","sameAs":["https://www.linkedin.com/company/bombos-ai","https://www.youtube.com/@truebombos","https://www.instagram.com/truebombos/","https://bsky.app/profile/bombostrue.bsky.social","https://www.threads.com/@truebombos","https://mastodon.social/@Bombos","https://www.tiktok.com/@truebombos","https://t.me/truebombos","https://www.pinterest.com/truebombos/","https://github.com/bombos-ai","https://linktr.ee/bombos.ai","https://bombosai.substack.com","https://hashnode.com/@bombosai","https://hackernoon.com/u/bombos","https://dev.to/bombos"],"email":"info@bombos.ai","areaServed":["NL","Europe"],"knowsLanguage":["nl","en"],"contactPoint":{"@type":"ContactPoint","email":"info@bombos.ai","contactType":"sales","url":"https://bombos.ai/en/contact/","availableLanguage":["nl","en"]}},{"@type":"WebSite","@id":"https://bombos.ai/#website","name":"Bombos","url":"https://bombos.ai/","inLanguage":["nl-NL","en"],"publisher":{"@id":"https://bombos.ai/#organization"}}]}

{"@context":"https://schema.org","@type":"Article","headline":"What does the Grok API cost per million tokens?","description":"Grok API prices in November 2026: grok-4.7 costs $2 input and $6 output per million tokens. Compare cached input, long context, tools, storage and batch rates.","abstract":"As of November 2026, xAI's flagship grok-4.7 costs $2.00 per million input tokens, $0.50 for cached input and $6.00 per million output tokens. The cheaper grok-4.3 and grok-4.20 models cost $1.25 in and $2.50 out with a 1M context window. Long-context rates apply from 200k prompt tokens; the listed grok-4.x models receive a 20 percent batch discount.","datePublished":"2026-11-16T00:00:00.000Z","dateModified":"2026-11-16T00:00:00.000Z","author":{"@type":"Person","name":"Piet Baudoin"},"publisher":{"@type":"Organization","@id":"https://bombos.ai/#organization","name":"Bombos","logo":{"@type":"ImageObject","url":"https://bombos.ai/assets/bombos-bee.png"}},"image":"https://bombos.ai/assets/og-en-v2.png","mainEntityOfPage":"https://bombos.ai/en/questions/grok/grok-api-pricing/","inLanguage":"en-US","isPartOf":{"@type":"CollectionPage","name":"Grok for business","url":"https://bombos.ai/en/questions/grok/"},"citation":[{"@type":"CreativeWork","name":"xAI docs: Models and pricing","url":"https://docs.x.ai/developers/pricing"},{"@type":"CreativeWork","name":"xAI docs: Models","url":"https://docs.x.ai/docs/models"},{"@type":"CreativeWork","name":"xAI docs: Files","url":"https://docs.x.ai/developers/files"}]}

{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Bombos","item":"https://bombos.ai/en/"},{"@type":"ListItem","position":2,"name":"Questions","item":"https://bombos.ai/en/questions/"},{"@type":"ListItem","position":3,"name":"Grok for business","item":"https://bombos.ai/en/questions/grok/"},{"@type":"ListItem","position":4,"name":"What does the Grok API cost per million tokens?","item":"https://bombos.ai/en/questions/grok/grok-api-pricing/"}]}

{"@context":"https://schema.org","@type":"FAQPage","mainEntity":[{"@type":"Question","name":"Is the Grok API included in a Grok Business seat?","acceptedAnswer":{"@type":"Answer","text":"No. Grok Business and Enterprise seats cover chat in grok.com and the apps. API usage is billed separately per token through the xAI console."}},{"@type":"Question","name":"What happens when a request reaches 200k prompt tokens?","acceptedAnswer":{"@type":"Answer","text":"Every token in that request, not just the part above 200k, is billed at the long-context rate. For grok-4.7 that is $4.00 input, $1.00 cached and $12.00 output per million."}},{"@type":"Question","name":"Do Remote MCP tools cost extra?","acceptedAnswer":{"@type":"Answer","text":"There is no per-call fee for Remote MCP tools on the pricing page; you pay for the tokens the tool definitions and results add to the request."}},{"@type":"Question","name":"Is there a cheaper model for coding?","acceptedAnswer":{"@type":"Answer","text":"grok-build-0.1 is listed at $1.00 input and $2.00 output per million tokens with a 256k context window. No batch discount is listed for it."}}]}
```
