Connect xAI so you can see what Grok says about you
Sign up at xAI's console, add credit, create a key and paste it. Grok then reports the exact cost of every answer, down to a ten-billionth of a dollar.
By the Surfacedd teamUpdated 3 min readMarkdown
On this page
Short answer
To get an xAI API key, sign in at console.x.ai, load your team with prepaid credit, then create a key on the API Keys page. Paste it into Surfacedd's xAI card to track Grok. Every xAI response reports its exact billed cost in ticks, where one US dollar is 10 billion ticks, and Surfacedd records that figure.
Your xAI key lets Surfacedd ask Grok your prompts with xAI's web search tool, and store the answer, the pages it cited and every other URL its search touched. Surfacedd uses web search only: xAI's separate X Search tool, which searches posts on X and bills per post, stays off, so Grok's results compare cleanly with the other web-grounded engines.
Create the key
- Sign up or sign in at console.x.ai.
- Load your team with prepaid credit in the console's billing section. xAI's quickstart says to "load it with credits to start using the API".
- Open the API Keys page and create a key.
- Copy it; store it somewhere safe if you'll need it again.
Set a spend limit
Because the API runs on prepaid credit, the balance you load is your ceiling. Keep it modest while you try Grok out. Surfacedd estimates each run before it starts and can pause schedules at an in-app budget for xAI alone, so you can cap Grok separately from the other engines.
Paste and test
Paste the key into the xAI card in onboarding or Settings › API keys. The free check lists the models your key can use; after it passes, the key is saved to your system keychain and shown only by its last four characters. The optional Test search runs one grounded answer and shows its exact cost, reported by xAI.


What it costs here
xAI bills each web search call plus tokens, and every response carries usage.cost_in_usd_ticks: the actual billed amount for that request, after discounts, including every tool call in the answer. One US dollar is 10,000,000,000 ticks; Surfacedd divides and records the result.
| Model | Tier | Input per 1M tokens | Output per 1M tokens | Per 1,000 searches | Est. per answer |
|---|---|---|---|---|---|
| Grok 4.3 (default) | cheap | $1.25 | $2.50 | $5.00 | $0.0201 |
| Grok 4.20 (non-reasoning) | cheap | $1.25 | $2.50 | $5.00 | $0.0201 |
| Grok 4.7 | flagship | $2.00 | $6.00 | $5.00 | $0.0310 |
Estimates assume about 10,300 input and 900 output tokens and 1 search per answer, at xAI's list prices on 2026-11-23 (UTC), price table 2026-11-13.1.
On the default model (Grok 4.3) one answer costs about $0.0201 by our estimate. Grok can run more than one search per answer, so the reported cost afterwards is the number to trust.
Before your first Grok report
- Start small. Try Grok on ten to twenty prompts for a few weekly runs and compare its shortlist with ChatGPT's and Perplexity's on the by-engine view. If it names the same brands, it adds little; if it differs, it's showing you sources the others don't weigh.
- Write locations into prompts. xAI's web search takes no location, so "best accountant in Leeds" works where "best accountant" with a Leeds market doesn't.
- Watch searches per answer. Grok can search more than once per answer. The reported cost tells you what that does to your bill after the first run, and the estimate calibrates from it.
Troubleshooting
| What you see | What it means | What to do |
|---|---|---|
| Invalid | xAI rejected the key (401) | Re-enter it or create a new key |
| Billing needed | No credit on the team (402/403) | Add credit in the xAI console |
| Rate limited | Too many requests at once | Surfacedd retries with backoff; lower xAI's parallel requests if it persists |
| Model unavailable | The chosen Grok model isn't available to you | Pick another model from the list |
| Location not applied | xAI's web search takes no location | Nothing to fix; every Grok answer is labelled this way |
Notes specific to Grok
- Grok puts numbered
[[1]](url)links into answers by default. Surfacedd switches them off and removes any that remain, so answers read like the other engines'. - xAI's citation titles are the citation numbers, not page titles; Surfacedd fetches real titles separately.
- xAI lists every URL its search touched, including ones it judged irrelevant. Surfacedd keeps those as "read but not cited".
Related docs
Sources
Keep reading
- EnginesSee when Grok recommends you, and how to show up more oftenSurfacedd asks Grok your buyers' questions through xAI's API with web search on, records the pages it cited and every URL it touched, and takes the cost from xAI's own figure for each answer.Read
- DocsKnow what a report will cost before you run itEvery run shows an estimate with a range before it starts, every answer records what it actually cost, and budgets can pause schedules before they overspend. You pay providers their list price; Surfacedd adds nothing.Read
- DocsFix provider errors fast: what each message means and what to doSurfacedd turns every provider error into one sentence and one button. This page lists them all, per provider, with the underlying code, whether Surfacedd retries, and what to do.Read
- ProductPay AI providers at cost, and see the price before every runSurfacedd runs on your own OpenAI, Anthropic, Perplexity, Google, xAI, Meta and DataForSEO keys. Each provider bills you its list price, and the app prices every run before it starts.Read
How we research, write and correct pages: read our editorial policy.