[Integrations](https://spiral.ai/integrations) › [Gemini](https://spiral.ai/integrations/gemini) › [xAI documentation page index](https://spiral.ai/integrations/gemini/xai-documentation-page-index)

# How to Use xAI documentation page index in Gemini

Returns the xAI documentation page index, organized by section. Use it to map the available guides or find pages across Grok API, Grok Build, and Grok Bot documentation.

|  |  |
| --- | --- |
| Model | xAI documentation page index |
| Available through | Alexandria |
| Category | Developer |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with xAI documentation page index in Gemini

- Use xAI documentation page index to list the official guides about Grok voice features. Organize the links into speech recognition, speech generation, and spoken conversations.
- Use xAI documentation page index to look this up and give me the result as a table.
- Pull the latest numbers from xAI documentation page index and tell me what changed since last week.
- Check xAI documentation page index and summarize what you find in three bullet points.
- Pull the newest data from xAI documentation page index and give me the result as a table.

## How to set up xAI documentation page index in Gemini

Pick the way that suits you. Each takes about two minutes.

### Use the Gemini connector

1. **Open Connected Apps**: On your computer, go to gemini.google.com. At the bottom, click Settings › Connected Apps. If you don't see Connected Apps, click Personal Intelligence first, then Connected Apps.

2. **Add Spiral as a custom app**: Under Custom apps, click Add a custom app and paste this MCP server URL:

```text
https://api.spiral.ai/mcp
```

3. **Sign in to Spiral and approve**: Follow the on-screen instructions. Spiral opens: sign in, pick the organization and click Authorize. No API key.

### Use the Spiral skill

1. **Send Gemini this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run xAI documentation page index**: One request; the result comes back by polling or a webhook.

```bash
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/list_pages",
    "input": {
      "q": "<q>"
    }
  }'
```

Then paste one of the prompts above: Gemini finds xAI documentation page index on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/gemini

## xAI documentation page index tools and prices

- [xAI (Grok API docs and x.ai news) · List pages](https://spiral.ai/tools/alexandria/x-ai/developer-docs/list_pages) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| q |  | — | Case-insensitive text to match. |
| url |  | — | A docs.x.ai URL whose path is used as the prefix; https://docs.x.ai/llms.txt means no prefix. |
| prefix |  | — | Docs path prefix, e.g. `developers/model-capabilities`. |
| section |  | — | Section name from llms.txt, case-insensitive, e.g. `Grok Bot`. |

## What can you do with xAI documentation page index in Gemini?

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.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All Gemini guides](https://spiral.ai/integrations/gemini)

## xAI documentation page index in other agents

- [Amp](https://spiral.ai/integrations/amp/xai-documentation-page-index)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/xai-documentation-page-index)
- [Claude](https://spiral.ai/integrations/claude-desktop/xai-documentation-page-index)
- [Claude Code](https://spiral.ai/integrations/claude-code/xai-documentation-page-index)
- [Cline](https://spiral.ai/integrations/cline/xai-documentation-page-index)
- [Codex](https://spiral.ai/integrations/codex/xai-documentation-page-index)
- [Cursor](https://spiral.ai/integrations/cursor/xai-documentation-page-index)
- [Devin](https://spiral.ai/integrations/devin/xai-documentation-page-index)
- [dots](https://spiral.ai/integrations/dots/xai-documentation-page-index)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/xai-documentation-page-index)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/xai-documentation-page-index)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/xai-documentation-page-index)
- [goose](https://spiral.ai/integrations/goose/xai-documentation-page-index)
- [Grok](https://spiral.ai/integrations/grok/xai-documentation-page-index)
- [Grok Build](https://spiral.ai/integrations/grok-build/xai-documentation-page-index)
- [Hermes](https://spiral.ai/integrations/hermes/xai-documentation-page-index)
- [Instinct](https://spiral.ai/integrations/instinct/xai-documentation-page-index)
- [Manus](https://spiral.ai/integrations/manus/xai-documentation-page-index)
- [Muse](https://spiral.ai/integrations/muse/xai-documentation-page-index)
- [Muse Code](https://spiral.ai/integrations/muse-code/xai-documentation-page-index)
- [n8n](https://spiral.ai/integrations/n8n/xai-documentation-page-index)
- [Notion](https://spiral.ai/integrations/notion/xai-documentation-page-index)
- [OpenClaw](https://spiral.ai/integrations/openclaw/xai-documentation-page-index)
- [opencode](https://spiral.ai/integrations/opencode/xai-documentation-page-index)
- [Perplexity](https://spiral.ai/integrations/perplexity/xai-documentation-page-index)
- [Raycast](https://spiral.ai/integrations/raycast/xai-documentation-page-index)
- [VS Code](https://spiral.ai/integrations/vscode/xai-documentation-page-index)
- [Windsurf](https://spiral.ai/integrations/windsurf/xai-documentation-page-index)
- [Zapier](https://spiral.ai/integrations/zapier/xai-documentation-page-index)

## More Gemini guides

- [xAI company and product page](https://spiral.ai/integrations/gemini/xai-company-and-product-page)
- [xAI documentation search](https://spiral.ai/integrations/gemini/xai-documentation-search)
- [xAI API release notes](https://spiral.ai/integrations/gemini/xai-api-release-notes)
- [xAI model pricing documentation](https://spiral.ai/integrations/gemini/xai-model-pricing-documentation)
- [npm, PyPI, crates.io and Maven package details](https://spiral.ai/integrations/gemini/npm-pypi-crates-io-and-maven-package-details)
- [xAI news article](https://spiral.ai/integrations/gemini/xai-news-article)

## Questions about xAI documentation page index in Gemini

**Can Gemini use xAI documentation page index?**

Yes. Add Spiral to Gemini as an MCP server, and Gemini can find and run xAI documentation page index like any built-in tool.

**How much does xAI documentation page index cost in Gemini?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Gemini plan is separate.

**Do I need an Alexandria account to use xAI documentation page index in Gemini?**

No. Spiral runs xAI documentation page index 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 page index in Gemini?**

About two minutes: open Connected Apps, then add Spiral as a custom app, then sign in to Spiral and approve.

**Does Gemini wait while xAI documentation page index runs?**

xAI documentation page index runs in the background. Gemini 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.

