Replicate ยท chat
grok-4
replicate/xai/grok-4
- Input price
- $7.20 / 1M tokens
- Output price
- $36.0 / 1M tokens
- Context window
- Not listed
- Lifecycle
- stable
grok-4 for OpenAI-compatible gateway routing
grok-4 is a Replicate chat model in the Ferro Labs live catalog with a Not listed context window, Not listed maximum output, and capabilities including Function Calling, JSON Mode, and Streaming.
Token pricing is listed as $7.20 / 1M tokens for input tokens and $36.0 / 1M tokens for output tokens. Route calls through the Ferro Labs AI Gateway by sending model as replicate/xai/grok-4 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": "replicate/xai/grok-4", "messages": [{"role": "user", "content": "Hello!"}]}'
Capabilities
- Function Calling
- JSON Mode
- Streaming
Modalities
Input
- Text
Output
- Text
More from Replicate
Catalog prices may change. Verify current provider terms before purchasing.