Inspects Grok Bot templates and existing teammates for malicious intent, hidden instructions, dangerous skills, and unattended routines. Issues a pass, warn, or fail verdict. Read-on…
- Connects to: No apps named
- Asks first
- On demand· usage when run
Independent directorynot affiliated with xAI
Catalog refreshed Nobody pays to be listed or rankedSponsor a slot
API Calculator
Estimate what a custom bot or script will actually spend on the xAI API before you ship it. Every rate below — including Grok 4.7, Grok 4.3, Grok 4.20, Grok Build 0.1, the 200,000-token long-context doubling cliff, 20% Batch API discounts and server-side tool fees — was checked directly against xAI's developer docs on 22 November 2026.
Looking for the consumer Grok Bot app plans instead of pay-as-you-go API tokens? See our Grok Bot subscription pricing guide ($30 Premium, $100 Super and $200 Ultra per month).
Pick a preset or enter your token volume, prompt-cache hit rate, Batch API mode and server-side tools. Rates verified against docs.x.ai on 2026-11-22.
Running personal automations instead of building an API backend? Compare with Grok Bot subscription plans ($30–$200/mo).
| Model | Context | Per request | 30-day estimate | Relative cost | Tier 0 cap |
|---|---|---|---|---|---|
grok-4.7 | 500k | $0.0098 | $2.94 | 150 RPS · 50M TPM | |
grok-4.6 | 500k | $0.0098 | $2.94 | 150 RPS · 50M TPM | |
grok-4.5 | 500k | $0.0094 | $2.82 | 150 RPS · 50M TPM | |
grok-4.3 | 1,000k | $0.0049 | $1.47 | 37 RPS · 10M TPM | |
grok-4.20-0309-reasoning | 1,000k | $0.0049 | $1.47 | 37 RPS · 10M TPM | |
grok-4.20-0309-non-reasoning | 1,000k | $0.0049 | $1.47 | 37 RPS · 10M TPM | |
grok-4.20-multi-agent-0309 | 1,000k | $0.0049 | $1.47 | 37 RPS · 10M TPM | |
grok-build-0.1 | 500k | $0.0040 | $1.20 | 37 RPS · 10M TPM |
Every current xAI text model uses two price tiers split at 200,000 prompt tokens. Crossing 200k tokens doubles input, cached input and output rates for the entire request, not only the tokens past 200k. Keeping prompts under 200k — or using prompt caching and tighter context — is the single biggest lever on API spend.
| Item | Context | Short (<200k) In / Cache / Out | Long (≥200k) In / Cache / Out | Batch API |
|---|---|---|---|---|
| grok-4.7Current flagship | 500k | $2.00 / $0.50 / $6.00 | $4.00 / $1.00 / $12.00 | 20% off |
| grok-4.6 | 500k | $2.00 / $0.50 / $6.00 | $4.00 / $1.00 / $12.00 | 20% off |
| grok-4.5 | 500k | $2.00 / $0.30 / $6.00 | $4.00 / $0.60 / $12.00 | 20% off |
| grok-4.31M context | 1M | $1.25 / $0.20 / $2.50 | $2.50 / $0.40 / $5.00 | 20% off |
| grok-4.20-0309 (reasoning / non-reasoning / multi-agent)1M context | 1M | $1.25 / $0.20 / $2.50 | $2.50 / $0.40 / $5.00 | 20% off |
| grok-build-0.1Lowest token rate | 500k | $1.00 / $0.20 / $2.00 | $2.00 / $0.40 / $4.00 | No batch discount |
Grok models on the API have no live access to current events unless you enable server-side tools. Requests that use xAI's built-in tools pay both model tokens (input, cached, reasoning, completion) and per-invocation tool fees.
One notable exception for builders: Remote MCP tools carry $0 per-invocation fee — you pay only for the tokens processed when Grok reads tool schemas and responses. You can connect our read-only Grok Bot Templates MCP server at `https://www.grokbottemplates.dev/api/mcp` with zero tool surcharge.
| Item | Tool name | Billing basis | Price |
|---|---|---|---|
| Web Search | `web_search` | Per 1,000 calls (includes image search) | $5.00 / 1k calls |
| X Search | `x_search` | Per item returned (including parent & quoted posts) | $5 / 1k posts · $10 / 1k profiles |
| Code Execution | `code_execution` | Per 1,000 sandbox calls | $5.00 / 1k calls |
| File Attachments Search | `attachment_search` | Per 1,000 calls | $5.00 / 1k calls |
| Collections Search (RAG) | `collections_search` | Per 1,000 queries | $2.50 / 1k queries |
| Remote MCP Tools | `mcp` (Streamable HTTP / SSE) | Tokens only — no invocation fee | $0 tool fee |
xAI assigns API teams to Tier 0 through Tier 4 based on cumulative spend since 1 January 2026 ($0, $50, $250, $1,000 and $5,000). Once unlocked, tiers never downgrade. Batch API jobs run asynchronously (typically within 24 hours), save 20% on eligible models and do not count against per-minute rate limits.
Choose Grok Bot (plans from $30/month) when you want a persistent cloud computer, built-in Gmail/Calendar/Slack/GitHub apps, approval cards and ready-made templates. Choose the xAI API when you are building your own software, running high-volume batch jobs or need predictable per-token billing without a weekly pool.
| Item | Cumulative spend | Grok 4.7 / 4.6 / 4.5 (RPS · TPM) | Grok 4.3 / 4.20 (RPS · TPM) |
|---|---|---|---|
| Tier 0 | $0 (default) | 150 RPS · 50M TPM | 37 RPS · 10M TPM |
| Tier 1 | $50 | 172 RPS · 53M TPM | 50 RPS · 15M TPM |
| Tier 2 | $250 | 208 RPS · 60M TPM | 75 RPS · 25M TPM |
| Tier 3 | $1,000 | 312 RPS · 74M TPM | 125 RPS · 45M TPM |
| Tier 4 | $5,000 | 500 RPS · 100M TPM | 208 RPS · 85M TPM |
Sources: xAI API rate limitsxAI API pricingThe X Subscription: pricing
No. The xAI Developer API is billed separately through console.x.ai using prepaid credits or invoices, while Grok Bot and Grok app plans live on The X Subscription ($30 Premium, $100 Super, $200 Ultra). You cannot spend consumer weekly usage pools on API token calls.
On xAI's text models, any request whose prompt reaches 200,000 tokens or more is billed at the higher long-context rate for every token in that request — input, cached input and output — not just the tokens above 200,000. On grok-4.7 that doubles input from $2 to $4 per million.
Source: xAI API pricing
Grok 4.3 and the Grok 4.20 variants (reasoning, non-reasoning and multi-agent) all support a 1,000,000-token context window at $1.25 input and $2.50 output per million tokens under 200k. Grok 4.7, 4.6, 4.5 and Grok Build 0.1 support 500,000 tokens.
Grok 4.7, 4.6, 4.5, 4.3 and the Grok 4.20 models all receive 20% off standard rates across input, cached, reasoning and output tokens on the Batch API, and batch calls do not count against per-minute rate limits. Grok Build 0.1 has no batch discount.
Source: xAI API pricing
Checked
Product facts on this page come from these pages, each read on the date shown. Pages marked first-party are published by xAI or Cursor; we quote community reports only for known bugs.
Prefer ready-made templates over building a custom API wrapper? Start from an engineering listing or browse all engineering bots.
Inspects Grok Bot templates and existing teammates for malicious intent, hidden instructions, dangerous skills, and unattended routines. Issues a pass, warn, or fail verdict. Read-on…
Text your bot a coding task from anywhere: it hands it to Claude Code on your Mac, runs an adversarial reviewer in its own tab, and pings you with results. A real-world gate hook hol…
Before connecting Gmail, Drive, Stripe, GitHub, or calendar to a Grok Bot (or right after Adding a marketplace template), run a minimum-scope checklist and return CLEAR or NEEDS ACTI…