← Models
Grok

grok-4

by xAI·served through Manthan

grok-4

xAI's flagship reasoning model in the Grok 4 line, a natively reasoning model with strong performance on math, science, coding, and agentic tool use, and access to real-time information. It offers a large context window (around 256K tokens) and multimodal input. It targets demanding analytical, research, and agentic workloads.

MODALITY

Text

CONTEXT

—

INPUT / 1M

$3.00

OUTPUT / 1M

$15.00

pin by id

PRICING

You're billed per token at the rate above, in USD. Charges fold into your single prepaid balance — no separate provider account. You pay the model's market price, with no extra charge.

Input$3.00 / 1M tokens
Output$15.00 / 1M tokens

CALL IT

Drop-in OpenAI shape — point any OpenAI SDK at api.incord.ai/v1/cloud and set model to this id.

curl https://api.incord.ai/v1/cloud/chat/completions \
  -H "Authorization: Bearer $INCORD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "grok-4",
    "messages": [{ "role": "user", "content": "Hello" }]
  }'
from openai import OpenAI

client = OpenAI(
    base_url="https://api.incord.ai/v1/cloud",
    api_key="$INCORD_API_KEY",
)
resp = client.chat.completions.create(
    model="grok-4",
    messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)