[Integrations](https://spiral.ai/integrations) › [n8n](https://spiral.ai/integrations/n8n) › [xAI model pricing documentation](https://spiral.ai/integrations/n8n/xai-model-pricing-documentation)

# How to Use xAI model pricing documentation in n8n

Returns xAI's published pricing documentation covering tokens, tools, batch processing, and storage. Use it to identify the billing categories a Grok workload needs to account for.

|  |  |
| --- | --- |
| Model | xAI model pricing documentation |
| Available through | Alexandria |
| Category | Developer |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, with a Spiral API key |

## Prompts to try with xAI model pricing documentation in n8n

- Every Friday, use xAI model pricing documentation to compare the published billing categories and explanatory notes with the previous check. Summarize changes without quoting monetary amounts.
- Every Monday at 9am: use xAI model pricing documentation to look this up and give me the result as a table.
- Pull the latest numbers from xAI model pricing documentation and tell me what changed since last week.
- Check xAI model pricing documentation and summarize what you find in three bullet points.
- Pull the newest data from xAI model pricing documentation and give me the result as a table.

## How to set up xAI model pricing documentation in n8n

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

### Use the Spiral skill

1. **Send n8n 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 Spiral's MCP server

1. **Create a key**: Create a key under API keys in the console.

2. **Add an MCP Client node**: In a workflow, add an MCP Client node (or, under an AI Agent node, an MCP Client Tool) and set:

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

3. **Pick a tool**: The node lists Spiral's tools. In an MCP Client node pick one, such as `run`, and give it its arguments:

```json
{
  "provider": "fal",
  "model": "fal-ai/flux/schnell",
  "input": { "prompt": "a lighthouse at dawn" },
  "wait": true
}
```

4. **Run xAI model pricing documentation in a workflow step**: Give the step an instruction like the ones below and run it on your trigger or schedule. Spiral finds xAI model pricing documentation, prices it and runs it each time the step fires.

### 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 model pricing documentation**: 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/model_pricing",
    "input": {}
  }'
```

Then paste one of the prompts above: n8n finds xAI model pricing documentation on Spiral, shows the price and runs it.

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

## xAI model pricing documentation tools and prices

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

## What can you do with xAI model pricing documentation in n8n?

Maintain a recurring review of xAI's published documentation and announcements. A scheduled agent can compare retrieved material with its previous results and flag documentation changes relevant to a Grok workload.

### 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.

### 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.

## Overview

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

## xAI model pricing documentation in other agents

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

## More n8n guides

- [xAI documentation search](https://spiral.ai/integrations/n8n/xai-documentation-search)
- [xAI news article](https://spiral.ai/integrations/n8n/xai-news-article)
- [xAI documentation page index](https://spiral.ai/integrations/n8n/xai-documentation-page-index)
- [xAI news index](https://spiral.ai/integrations/n8n/xai-news-index)
- [xAI company and product page](https://spiral.ai/integrations/n8n/xai-company-and-product-page)
- [Action product details](https://spiral.ai/integrations/n8n/action-product-details)

## Questions about xAI model pricing documentation in n8n

**Can n8n use xAI model pricing documentation?**

Yes. Add Spiral to n8n as an MCP server, and n8n can find and run xAI model pricing documentation like any built-in tool.

**How much does xAI model pricing documentation cost in n8n?**

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

**Do I need an Alexandria account to use xAI model pricing documentation in n8n?**

You need no Alexandria account. n8n uses one Spiral API key for every tool, and Spiral runs xAI model pricing documentation on its own Alexandria account.

**How long does it take to set up xAI model pricing documentation in n8n?**

About two minutes: create a key, then add an MCP Client node, then pick a tool.

**Does n8n wait while xAI model pricing documentation runs?**

xAI model pricing documentation runs in the background. n8n 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.

