# modelprices.xyz Grok Pricing Table

> modelprices.xyz Grok Pricing Table is a paid API for AI agents from modelprices.xyz, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Returns current per-token pricing for all Grok models (Grok 4, Grok 4 mini, Grok 3) across every provider that hosts them, sorted cheapest first.

## Facts

- Endpoint: GET https://modelprices.xyz/grok-pricing
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/modelprices-xyz-grok-pricing-table-4c59d7a8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Z7wq0Gz4yv_gswBrWqmTY

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability modelprices-xyz-grok-pricing-table-4c59d7a8
```

Example prompt: What's the cheapest provider to run Grok 4 right now — can you pull the full Grok pricing table across xAI, Bedrock, Azure, Vertex, OpenRouter, and Fireworks, sorted by cost?

## When to prefer this

Use this endpoint when you specifically need Grok model pricing and want a normalized cross-provider comparison in a single call. Prefer this over single-model lookups when comparing multiple Grok variants or providers simultaneously. For non-Grok models, use the provider-specific or single-model endpoints on modelprices.xyz instead.

## Known failure modes

- Provider pricing data temporarily unavailable — may return stale or partial data
- HTTP 402 if payment header is missing or USDC balance is insufficient
- Rate limits if called excessively in a short window
- Newly launched Grok models may not yet appear if refresh cycle hasn't completed

## How this service works

Grok pricing table: what every Grok model costs per token right now — Grok 4, Grok 4 mini, Grok 3 — from xAI and every provider that resells or hosts them (Bedrock, Azure, Vertex, OpenRouter, Fireworks). Input, output, cache and batch USD per 1M tokens, sorted cheapest first, so you can compare Grok inference cost across hosts and pick the cheapest place to run one. Normalized, cross-checked, refreshed hourly.

## Output

A normalized, cross-checked pricing table listing every Grok model (Grok 4, Grok 4 mini, Grok 3) with their input, output, cache, and batch costs in USD per 1M tokens across all providers that host them (xAI, AWS Bedrock, Azure, Vertex, OpenRouter, Fireworks), sorted cheapest first and refreshed hourly.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/modelprices-xyz-grok-pricing-table-4c59d7a8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from modelprices.xyz](https://www.zero.xyz/host/modelprices.xyz/llms.txt)
