Grok 4 Latest

JSON →
xai llm
text

The latest stable version of the Grok 4 model.

context window 256K tokens
max output 256K tokens
input price $3 / 1M tokens
output price $15 / 1M tokens
streamingreasoningcode-generationfunction-callingtool-useprompt-caching
full doc /v1/models/grok-4-latest