This model is currently paused and cannot be called via the API. Specs and prices reflect the last known state.
xai·chat· vision

Grok 4

xai/grok-4

xAI's flagship with live X (Twitter) data access and a reasoning mode.

At a glance

  • · $3.00 input / $15.00 output per 1M tokens (provider list price, billed in credits)
  • · Context window: 256,000 tokens
  • · OpenAI-compatible — model: "xai/grok-4" (provider: xai)
  • · Best for: Only top-tier model with direct access to X realtime data

Strengths

  • +Only top-tier model with direct access to X realtime data
  • +Strong reasoning, competitive with o1/o3 on math benchmarks
  • +Less refusal bias on political or controversial topics

Weaknesses

  • Code generation behind Sonnet 4.6 and GPT-5.4
  • Weaker structured-output guarantees than OpenAI/Anthropic

Use cases

  • Social media monitoring and realtime trend analysis
  • Research agents needing current X/Twitter data
  • Math and logic tasks via reasoning mode

Alternatives in the catalog

How to call it

Drop-in OpenAI-compatible. Just swap the `model` string and you're using this model.

curl https://www.getmorecredits.com/v1/chat/completions \
  -H "Authorization: Bearer $GMC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "xai/grok-4",
    "messages": [{ "role": "user", "content": "Hello!" }]
  }'

Good for

Frequently asked questions

How much does Grok 4 cost?

Input is $3.00 per million tokens; output is $15.00 per million tokens — provider list price. On getmorecredits.com you pay in credits, no subscription, no minimum spend.

What's the context window of Grok 4?

Grok 4 accepts up to 256,000 input tokens, with a maximum of 16,384 output tokens per response. That fits whole code repos or book-length documents into a single call.

What can Grok 4 do?

Grok 4 supports image input (vision), tool calling, reasoning mode. xAI's flagship with live X (Twitter) data access and a reasoning mode.

Is Grok 4 OpenAI-compatible?

Yes. On getmorecredits.com you call Grok 4 with the same request shape as OpenAI: POST /v1/chat/completions with "model": "xai/grok-4". Existing OpenAI SDKs (Python, Node, etc.) work by changing the base URL and API key.