LLM Reference
OpenRouter

Using Grok 4.7 on OpenRouter

Implementation guide · Grok 4 · xAI

Serverless

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

Last refreshed 2026-09-21. 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.7 — see the documentation for request format.
  3. 3
    You'll be billed $1.60/1M input, $4.80/1M output tokens. See full pricing.

Code Examples

See OpenRouter documentation for integration details.

Pricing on OpenRouter

TypePrice (per 1M)
Input tokens$1.60
Output tokens$4.80

Capabilities

VisionMultimodalReasoningJSON / Tool useStructured OutputsCode ExecutionPrompt Caching

About Grok 4.7

Grok 4.7 is xAI/SpaceXAI's September 21, 2026 frontier model for coding, agentic tasks, and knowledge work, succeeding Grok 4.6. Official docs publish API id grok-4.7 with 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 May 2026. Batch API is not supported.

Model Specs

Released2026-09-21
Context500k
Knowledge cutoff2026-05

Provider

OpenRouter
OpenRouter

OpenRouter, Inc.

New York, NY, USA