Back to model catalog

Grok 2 Mini

xAI Grok

Released 2024-08-13
ChatJSON modeStreamingTool calling
128K
Context window
Text
Modalities
$0.20 / $1.00
Input / output per M tokens

Providers & pricing (1)

ProviderInput $/MOutput $/MCached input $/MContext
xAI (Grok)
grok-2-mini
$0.20$1.00$0.10128K

Cloptima's known static list pricing per million tokens; live/negotiated rates may differ.

Example: 1,000 requests of 2,000 input and 500 output tokens costs about $0.90 on xAI (Grok).

Use it through Cloptima

curl https://api.cloptima.ai/v1/ai/chat/completions \
  -H "Authorization: Bearer $CLOPTIMA_PAT" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "grok-2-mini",
    "messages": [{"role": "user", "content": "Hello"}]
  }'

Use the bare model name and Cloptima picks the provider for each request: the lowest estimated cost among the providers your credentials or managed credits can use, filtered by your policy and provider health.

An OpenAI-compatible endpoint with per-team cost attribution, budgets and policy controls.

How the AI gateway works