[Integrations](https://spiral.ai/integrations) › [Grok Build](https://spiral.ai/integrations/grok-build) › [OpenRouter model details](https://spiral.ai/integrations/grok-build/openrouter-model-details)

# How to Use OpenRouter model details in Grok Build

Returns details for one OpenRouter model, including its context window and input and output capabilities. Use it to inspect a specific model after finding candidates in the catalog.

|  |  |
| --- | --- |
| Model | OpenRouter model details |
| 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 OpenRouter model details in Grok Build

- Use OpenRouter model details for anthropic/claude-sonnet-4 and compare its context window with the document sizes in this project's fixtures.
- Use OpenRouter model details to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from OpenRouter model details and tell me what changed since last week.
- Check OpenRouter model details and summarize what you find in three bullet points.
- Pull the newest data from OpenRouter model details and give me the result as a table.

## How to set up OpenRouter model details in Grok Build

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

### Use Spiral's MCP server

1. **Add the server**: Add `--scope project` to add Spiral to the current repository only. No header and no client ID or secret: Grok registers itself with Spiral.

```bash
grok mcp add --transport http spiral https://api.spiral.ai/mcp
```

2. **Sign in**: Start `grok` and run `/mcps`. Select Spiral and press `i`. Your browser opens: sign in to Spiral, pick the organization and click Authorize. No API key.

3. **Check it**

```bash
grok mcp doctor spiral
```

### Use the Spiral skill

1. **Send Grok Build 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 OpenRouter model details**: 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": "openrouter-ai/model-marketplace/get_model",
    "input": {
      "model": "<model>"
    }
  }'
```

Then paste one of the prompts above: Grok Build finds OpenRouter model details on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/grok-build

## OpenRouter model details tools and prices

- [OpenRouter · Get model](https://spiral.ai/tools/alexandria/openrouter-ai/model-marketplace/get_model) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| url |  | — | Alternatively the model page URL, e.g. https://openrouter.ai/typesafe/jev-1.13. Pattern: ^https?://. |
| model |  | — | Model slug `author/name`, e.g. `typesafe/jev-1.13`; a variant suffix (`openai/gpt-6-luna:batch`) or a router alias like `~typesafe/jev-latest` is accepted. Pattern: ^~?[A-Za-z0-9][A-Za-z0-9._-]*/[A-Za-z0-9][A-Za-z0-9._-]*(:[a-z0-9-]+)?$. |

## What can you do with OpenRouter model details in Grok Build?

Build a model selection report around the requirements in your project. An agent can compare OpenRouter catalog evidence with your document sizes and output needs, then identify candidates for testing.

### Choose a model for document summaries

Find candidates, compare their context windows and output capabilities, inspect serving limits, and review usage statistics before selecting models for a document-summary evaluation.

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

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All Grok Build guides](https://spiral.ai/integrations/grok-build)

## OpenRouter model details in other agents

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

## More Grok Build guides

- [OpenRouter documentation page](https://spiral.ai/integrations/grok-build/openrouter-documentation-page)
- [OpenRouter model endpoint details](https://spiral.ai/integrations/grok-build/openrouter-model-endpoint-details)
- [OpenRouter author model catalog](https://spiral.ai/integrations/grok-build/openrouter-author-model-catalog)
- [OpenRouter model pricing data](https://spiral.ai/integrations/grok-build/openrouter-model-pricing-data)
- [OpenReview venue directory](https://spiral.ai/integrations/grok-build/openreview-venue-directory)
- [OpenRouter model search](https://spiral.ai/integrations/grok-build/openrouter-model-search)

## Questions about OpenRouter model details in Grok Build

**Can Grok Build use OpenRouter model details?**

Yes. Add Spiral to Grok Build as an MCP server, and Grok Build can find and run OpenRouter model details like any built-in tool.

**How much does OpenRouter model details cost in Grok Build?**

$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 Build plan is separate.

**Do I need an Alexandria account to use OpenRouter model details in Grok Build?**

No. Spiral runs OpenRouter model details 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 details in Grok Build?**

About two minutes: add the server, then sign in, then check it.

**Does Grok Build wait while OpenRouter model details runs?**

OpenRouter model details runs in the background. Grok Build 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.

