LLM Reference
OpenRouter

Using Grok 4.6 on OpenRouter

Implementation guide · Grok 4 · xAI

Serverless

OpenRouter exposes Grok 4.6 through model ID x-ai/grok-4.6. Use the setup steps, sourced pricing, capabilities, and official provider links below to validate this route before deployment.

Last refreshed 2026-08-24. Next refresh: weekly.

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.6 — 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.

Pricing on OpenRouter

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

Capabilities

VisionMultimodalReasoningJSON / Tool useStructured OutputsCode ExecutionPrompt Caching

About Grok 4.6

Grok 4.6 is xAI/SpaceXAI's August 2026 frontier model for coding, agentic tasks, and knowledge work. It is publicly available as grok-4.6 on the xAI API and is also offered in Cursor and Grok Build. Official docs list text and image input, text output, a 500,000-token context window, no published text output limit, function calling, structured outputs, prompt caching, code execution, web search, X search, and configurable reasoning effort (low, medium, high default, or xhigh). Knowledge cutoff is February 1, 2026. Batch API is not supported.

Model Specs

Released2026-08-12
Context500k
Knowledge cutoff2026-02

Provider

OpenRouter
OpenRouter

OpenRouter, Inc.

New York, NY, USA