Skip to content
Not available in this workspace
OpenRouterOpenRouter
© 2026 OpenRouter, Inc

Product

  • Chat
  • Rankings
  • Benchmarks
  • Apps
  • Discover
  • Models
  • Collections
  • Providers
  • Pricing
  • Enterprise
  • Labs

Company

  • About
  • Blog
  • Careers
    Hiring
  • Privacy
  • Terms of Service
  • Support
  • Works With OR
  • Data

Developer

  • Documentation
  • API Reference
  • Developer Platform
  • Status

Connect

  • Discord
  • GitHub
  • LinkedIn
  • X
  • YouTube
Favicon for x-ai

xAI: Grok 4

x-ai/grok-4

Grok 4 is xAI's latest reasoning model with a 256k context window. It supports parallel tool calling, structured outputs, and both image and text inputs. Note that reasoning is not exposed, reasoning cannot be disabled, and the reasoning effort cannot be specified. Pricing increases once the total tokens in a given request is greater than 128k tokens. See more details on the xAI docs(opens in new tab)

Modalities

Context

256K

Released

Jul 9, 2025

Knowledge Cutoff

Jul 2025

About xAI: Grok 4

OpenRouter makes xAI: Grok 4 by SpaceXAI available through a unified, OpenAI-compatible API using the model ID x-ai/grok-4.

xAI: Grok 4 accepts images, text and files such as PDFs and returns text. It has a 256,000-token context window.

It was released on July 9, 2025; its knowledge cutoff is July 31, 2025.

More models from SpaceXAI

  • Grok 4.6
  • Grok Imagine Image 2.0
  • Grok STT 1.0

Frequently asked questions

Grok 4 is xAI's latest reasoning model with a 256k context window. It supports parallel tool calling, structured outputs, and both image and text inputs. Note that reasoning is not exposed, reasoning cannot be disabled, and the reasoning effort cannot be specified. Pricing increases once the total tokens in a given request is greater than 128k tokens. See more details on the xAI docs

Grok 4 has a 256,000 token context window.

Grok 4 accepts images, text and files such as PDFs as input and returns text.

Grok 4.6, Grok 4.5, Grok Build 0.1 and 3 more are other text models from SpaceXAI.

Grok 4 was released on July 9, 2025. Its knowledge cutoff is July 31, 2025.

ActivityFAQ

Activity

Token volume and request traffic to this model over time.