All Models
xAI

Grok 2

high

by xAI

Model ID:grok-2

Witty, slightly rebellious. Available through the llmair OpenAI-compatible API at https://api.llmair.ai/v1.

Modality
text
Price / 1M
$2.00 in
$6.00 out
Context
128K
Provider
xAI

Quick Start

Call grok-2 via the OpenAI-compatible API.

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

Capabilities

Text Generation
Supported
Streaming
Supported
JSON Mode
Supported
Function Calling
Supported
System Prompts
Supported
×
Vision Input
Not supported
×
Image Generation
Not supported
×
Audio
Not supported
×
Embeddings
Not supported
×
Reasoning
Not supported

Pricing

All prices per 1 million tokens. Pay only for what you use.

TypePrice
Input (prompt)$2.0000 / 1M
Output (completion)$6.0000 / 1M

Best For

  • Witty, slightly rebellious

Limitations

  • No image input or output
  • No native audio processing
  • Lower reasoning depth than flagship models
  • No real-time internet access
  • Knowledge has a training cutoff