How to Use OpenRouter model pricing data in Grok
Returns a model's published pricing data for comparison and analysis. Use it to examine the billing dimensions separately from model capabilities and performance.
Prompts to try with OpenRouter model pricing data in Grok
Copy an example into Grok, or ask in your own words.
Use OpenRouter model pricing data for anthropic/claude-sonnet-4 and explain which billing dimensions the response distinguishes.
Use OpenRouter model pricing data to look this up and give me the result as a table.
Pull the latest numbers from OpenRouter model pricing data and tell me what changed since last week.
Check OpenRouter model pricing data and summarize what you find in three bullet points.
Pull the newest data from OpenRouter model pricing data and give me the result as a table.
How to set up OpenRouter model pricing data in Grok
Pick the way that suits you. Each takes about two minutes.
Use the Grok connector
- Add a custom connector
In Grok open Settings › Connect Apps, then Add a custom connector. Name it Spiral, paste this URL, leave Headers empty and click Add MCP.
https://api.spiral.ai/mcp
- Sign in to Spiral and approve
Grok opens Spiral: sign in, pick the organization and click Authorize. Spiral gives the connection its own API key; Grok never sees it, and you can remove the connection under Settings › Connected apps.
- Check that it is connected
Connect Apps › Custom shows Spiral as Connected. It works in every Grok chat and Grok bot.
Use the Spiral skill
- Send Grok 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 OpenRouter model pricing data
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": "openrouter-ai/model-marketplace/get_model_pricing", "input": { "permaslug": "<permaslug>" } }'
Then paste one of the prompts above: Grok finds OpenRouter model pricing data on Spiral, shows the price and runs it.
OpenRouter model pricing data providers and prices
Spiral runs OpenRouter model pricing data through Alexandria. Open a card for today's price, with every fee included.
Settings you can ask for
Ask Grok for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Range | 3m | 3m | History window the model page offers. |
Every API field of OpenRouter · Get model pricing is on its tool page: open its card above.
What can you do with OpenRouter model pricing data in Grok?
Turn OpenRouter catalog results into a readable model comparison for a product decision. A chat app can explain published capabilities and measurements, with the source's coverage limits kept visible.
Review an author's model lineup
Compare Anthropic's listed models, inspect individual specifications and pricing data, and use OpenRouter documentation to interpret the differences.
Prepare a model migration review
Search for replacements, review the author's catalog, compare model details and pricing data, and summarize the provider policies relevant to the shortlist.
Maintain an internal model comparison
Refresh a shortlist with published specifications, pricing data, usage statistics, and serving endpoint measurements. Use the documentation to keep metric definitions consistent.
Plan an evaluation within one author's catalog
List an author's models, compare their published specifications, inspect pricing data and observed usage, and check serving endpoint limits to choose candidates for testing.
Write a model selection brief
Combine catalog search, an author's listed models, pricing data, usage statistics, provider policies, and documentation into a source-based brief for a product team.
More on OpenRouter model pricing data and Grok
Overview
OpenRouter model pricing data in other agents
Questions about OpenRouter model pricing data in Grok
Can Grok use OpenRouter model pricing data?
Yes. Add Spiral to Grok as an MCP server, and Grok can find and run OpenRouter model pricing data like any built-in tool.
How much does OpenRouter model pricing data cost in Grok?
$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Grok plan is separate.
Do I need an Alexandria account to use OpenRouter model pricing data in Grok?
No. Spiral runs OpenRouter model pricing data on its own Alexandria account. You sign in to Spiral once and never paste a key.
How long does it take to set up OpenRouter model pricing data in Grok?
About two minutes: add a custom connector, then sign in to Spiral and approve, then check that it is connected.
Does Grok wait while OpenRouter model pricing data runs?
OpenRouter model pricing data runs in the background. Grok starts the run, checks on it and gives you the json when it's ready.
Does OpenRouter's default model list cover every output type?
The documented default list covers text generation. OpenRouter also documents a broader listing across all modalities, including image, video, text, and speech.
How quickly does OpenRouter update model information?
OpenRouter says it publishes model information as soon as it confirms it. That statement does not establish a fixed hourly or daily refresh schedule.
What time period do performance measurements cover?
The routing guide describes rolling five-minute percentiles, while the endpoint response schema defines latency percentiles over 30 minutes. These are different measurement windows, so comparisons need to use the same window.
Does the context window apply only to the input?
Input and output share the context window. A long input therefore reduces the space available for the response, even when the model lists a larger maximum output ceiling.
Are OpenRouter's coding and agentic benchmark fields still populated?
The current schema says Artificial Analysis retired its Coding Index and Agentic Index. Both fields are null for every model.
Start using OpenRouter model pricing data in Grok
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Grok:
set up https://spiral.ai/SKILL.md


