Skip to content
Surfacedd

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

  1. Sign up or sign in at console.x.ai.
  2. 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".
  3. Open the API Keys page and create a key.
  4. 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.

API keys settings with the xAI card Connected for Grok answers, showing its per-answer estimate and the last four characters of the keyAPI keys settings with the xAI card Connected for Grok answers, showing its per-answer estimate and the last four characters of the key
Sample workspace, fictional brand

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.

ModelTierInput per 1M tokensOutput per 1M tokensPer 1,000 searchesEst. 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.7flagship$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 seeWhat it meansWhat to do
InvalidxAI rejected the key (401)Re-enter it or create a new key
Billing neededNo credit on the team (402/403)Add credit in the xAI console
Rate limitedToo many requests at onceSurfacedd retries with backoff; lower xAI's parallel requests if it persists
Model unavailableThe chosen Grok model isn't available to youPick another model from the list
Location not appliedxAI's web search takes no locationNothing 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".

Sources

  1. xAI: Quickstart (console, API keys, credits) docs.x.ai · checked
  2. xAI: Cost tracking docs.x.ai · checked
  3. xAI: Citations docs.x.ai · checked
  4. xAI: Pricing docs.x.ai · checked

Keep reading

How we research, write and correct pages: read our editorial policy.

All docs