xAI (Grok) ยท chat
grok-2-latest
xai/grok-2-latest
- Input price
- $2.00 / 1M tokens
- Output price
- $10.0 / 1M tokens
- Context window
- 131K tokens
- Lifecycle
- stable
grok-2-latest for OpenAI-compatible gateway routing
grok-2-latest is a xAI (Grok) chat model in the Ferro Labs live catalog with a 131K tokens context window, 131K tokens maximum output, and capabilities including Function Calling, JSON Mode, and Streaming.
Token pricing is listed as $2.00 / 1M tokens for input tokens and $10.0 / 1M tokens for output tokens. Route calls through the Ferro Labs AI Gateway by sending model as xai/grok-2-latest to the OpenAI-compatible chat completions endpoint. The catalog lists this model as stable for normal gateway routing.
OpenAI-compatible usage example
curl https://api.ferrolabs.ai/v1/chat/completions \
-H "Authorization: Bearer $GATEWAY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "xai/grok-2-latest", "messages": [{"role": "user", "content": "Hello!"}]}'
Capabilities
- Function Calling
- JSON Mode
- Streaming
Modalities
Input
- Text
Output
- Text
More from xAI (Grok)
Catalog prices may change. Verify current provider terms before purchasing.