Vigia

xAI API pricing: all models, per million tokens

Input and output prices per million tokens, context windows and retirement dates for 10 xAI models, from the OpenRouter catalog. Updated automatically.

ModelInput / 1MOutput / 1MContext
x-ai/grok-4.7US$ 2.00US$ 6.00500,000
x-ai/grok-4.7:batchUS$ 1.60US$ 4.80500,000
x-ai/grok-4.6US$ 2.00US$ 6.00500,000
x-ai/grok-4.6:batchUS$ 1.60US$ 4.80500,000
x-ai/grok-4.5US$ 2.00US$ 6.00500,000
x-ai/grok-build-0.1US$ 1.00US$ 2.00256,000
x-ai/grok-4.3US$ 1.25US$ 2.501,000,000
x-ai/grok-4.3:batchUS$ 1.00US$ 2.001,000,000
x-ai/grok-4.20-multi-agentUS$ 1.25US$ 2.502,000,000
x-ai/grok-4.20US$ 1.25US$ 2.502,000,000

Reference prices from OpenRouter (aggregator); they may differ from the provider's direct pricing.

Give your AI agent these facts

Vigia is a free MCP server: your coding agent checks versions, breaking changes and vulnerabilities before it writes code. No signup, no API key.

claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp

Add to CursorAdd to VS Code★ Star on GitHub

Any other MCP client
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }

Agent skill (SKILL.md): tells the agent when to use Vigia · GitHub Action for pull requests

For agents

GET https://vigia.coredls.cloud/v1/models?provider=x-ai