Quick Start
- 1
- 2Use the OpenRouter SDK or REST API to call
x-ai/grok-4.5— see the documentation for request format. - 3
Code Examples
About OpenRouter
OpenRouter provides a unified interface for Large Language Models with better pricing, improved uptime, and no subscription requirements. Route across providers for cost optimization and reliability.
OpenRouter is a multi-provider LLM aggregator offering unified API access to 300+ models from all major labs and emerging providers, with automatic failover for reliability.
Pricing on OpenRouter
| Type | Price (per 1M) |
|---|---|
| Input tokens | $2.00 |
| Output tokens | $6.00 |
Capabilities
About Grok 4.5
Grok 4.5 is xAI/SpaceXAI's July 2026 flagship model for coding, agentic tasks, and knowledge work. It is publicly available as grok-4.5 through the xAI API and Grok Build, supports configurable low/medium/high reasoning, function calling, web search, X search, code execution, prompt caching, and a 500k-token context window. xAI tiered pricing applies at a 200K prompt threshold: <=200K prompts at $2.00/$0.50 cached/$6.00 per 1M tokens (input/cached input/output), and prompts above 200K at $4.00/$1.00/$12.00; EU API-console availability was not yet live on launch day.