LLM Reference
OpenRouter

Using Grok 4.5 on OpenRouter

Implementation guide · Grok 4 · xAI

Serverless

Quick Start

  1. 1
    Create an account at OpenRouter and generate an API key.
  2. 2
    Use the OpenRouter SDK or REST API to call x-ai/grok-4.5 — see the documentation for request format.
  3. 3
    You'll be billed $2.00/1M input, $6.00/1M output tokens. See full pricing.

Code Examples

See OpenRouter documentation for integration details.

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

TypePrice (per 1M)
Input tokens$2.00
Output tokens$6.00

Capabilities

VisionMultimodalReasoningFunction CallingTool UseCode ExecutionPrompt Caching

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.

Model Specs

Released2026-07-08
Context500k

Provider

OpenRouter
OpenRouter

OpenRouter, Inc.

New York, NY, USA