Skip to content
Fourohtwo

Grok pricing for every xAI model

agent-data-tools.revmesh2074.workers.dev/grok/pricing

Grok pricing for every xAI model: USD per million input and output tokens, context length, max output and modalities for Grok 4.x and the other xAI models, cheapest first, plus the cost of your call when you give token counts. Filter by name (q=grok-4), price cap, context or image input. Source: OpenRouter's public model list. Use to pick a Grok model for a job or to estimate what a prompt will co

BasePolygonArbitrumSolanaAnswering
GEThttps://agent-data-tools.revmesh2074.workers.dev/grok/pricing

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://agent-data-tools.revmesh2074.workers.dev/grok/pricing?q=grok");
console.log(await res.json());

Example input

{
  "q": "grok"
}