xAI

Grok 2

Grok 2 is a demonstration listing for text workflows.

You send text. It returns text. It keeps 131k of context and can write up to 8k tokens back.

  • chat
  • text
Context
131k
Max output
8k
Input
text
Output
text
Latency
balanced
Status
available

Choose how much you pay

Any amount from ₹10 to ₹9,899.

₹10 – ₹9,899

₹500

Same request. This model.

Keep the client you already use. The model id is the only line that changes.

const response = await client.chat({
  model: "grok-2",
  messages: [{ role: "user", content: "Summarize this brief." }],
});