How to Use xAI documentation search in ChatGPT
Finds xAI documentation for a Grok API topic such as structured outputs, function calling, or prompt caching. Use it for a focused question when browsing the full page index would take longer.
Prompts to try with xAI documentation search in ChatGPT
Copy an example into ChatGPT, or ask in your own words.
Use xAI documentation search to find official references explaining Grok function calling. Give me a short reading list with a reason to open each result.
Use xAI documentation search to find the official guides for Grok structured outputs and JSON schemas. Show the most relevant documentation references.
Use xAI documentation search to look this up and give me the result as a table.
Pull the latest numbers from xAI documentation search and tell me what changed since last week.
Check xAI documentation search and summarize what you find in three bullet points.
How to set up xAI documentation search in ChatGPT
Pick the way that suits you. Each takes about two minutes.
Use the ChatGPT connector
- Add a custom MCP server
In ChatGPT open Plugins, then Add › Add custom MCP server. Name it Spiral, paste this URL and keep Authentication on OAuth. Tick I understand and want to continue, then click Create.
https://api.spiral.ai/mcp
- Click Connect
ChatGPT asks to connect Spiral. Connect takes you to Spiral in your browser.
- Sign in to Spiral and approve
Sign in, pick the organization ChatGPT should use and click Authorize. Spiral gives the connection its own API key; ChatGPT never sees it, and you can remove the connection under Settings › Connected apps.
Use the Spiral skill
- Send ChatGPT this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run xAI documentation search
One request; the result comes back by polling or a webhook.
curl https://api.spiral.ai/v1/runs \ -H "Authorization: Bearer $SPIRAL_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "provider": "alexandria", "model": "x-ai/developer-docs/search_docs", "input": { "query": "<query>" } }'
Then paste one of the prompts above: ChatGPT finds xAI documentation search on Spiral, shows the price and runs it.
xAI documentation search providers and prices
Spiral runs xAI documentation search through Alexandria. Open a card for today's price, with every fee included.
Settings you can ask for
Ask ChatGPT for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Limit | 1 to 20 | Maximum results (default 5). |
Every API field of xAI (Grok API docs and x.ai news) · Search docs is on its tool page: open its card above.
What can you do with xAI documentation search in ChatGPT?
Build a source-linked briefing for a Grok API decision. A chat assistant can organize documentation topics, find relevant change announcements, and identify the billing categories a proposed workload needs to consider.
Prepare a Grok integration review
Build a review packet with relevant documentation links, recent API changes, and the published billing categories that apply to the proposed workload.
Plan a model migration
Find retirement announcements and replacement guides, then identify the pricing documentation and implementation topics the migration review needs.
Maintain a team documentation directory
Organize official Grok documentation by topic, locate missing references through search, and use release announcements to identify links that need review.
Write an operations runbook
Collect official references for batch processing, storage, and tool use. Include relevant change announcements and billing categories so operators know which documentation supports each procedure.
Review an existing Grok workload
Compare a workload's documented assumptions with current xAI references, published pricing documentation, and release announcements to produce a concrete review checklist.
Check a workload estimator's assumptions
Identify the published billing categories behind an estimator, locate explanatory documentation, and review release notes for changes that warrant updating its assumptions.
More on xAI documentation search and ChatGPT
Overview
xAI documentation search in other agents
Questions about xAI documentation search in ChatGPT
Can ChatGPT use xAI documentation search?
Yes. Add Spiral to ChatGPT as an MCP server, and ChatGPT can find and run xAI documentation search like any built-in tool.
How much does xAI documentation search cost in ChatGPT?
$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your ChatGPT plan is separate.
Do I need an Alexandria account to use xAI documentation search in ChatGPT?
No. Spiral runs xAI documentation search on its own Alexandria account. You sign in to Spiral once and never paste a key.
How long does it take to set up xAI documentation search in ChatGPT?
About two minutes: add a custom MCP server, then click Connect, then sign in to Spiral and approve.
Does ChatGPT wait while xAI documentation search runs?
xAI documentation search runs in the background. ChatGPT starts the run, checks on it and gives you the json when it's ready.
Does xAI documentation cover more than API reference pages?
Yes. The official index includes Grok models, SDKs, guides, pricing, and application documentation as well as REST references.
Can I read the original documentation as Markdown?
Yes. xAI publishes every documentation page as Markdown by appending .md to the page URL.
How far back does the developer change archive go?
The published archive includes November 2024 entries, including the announcement of LangChain support. It provides historical announcements alongside more recent changes.
Does xAI document exact model retirement deadlines?
Yes. Its May 2026 retirement guide specifies May 15, 2026 at 12:00 PM Pacific, so a retirement can have a precise cutoff rather than just a month.
Does a model appearing in the docs mean everyone can use it?
No. xAI says model access can vary with geographical location and account limitations. The public documentation describes the offering without guaranteeing individual availability.
Start using xAI documentation search in ChatGPT
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into ChatGPT:
set up https://spiral.ai/SKILL.md


