fix: update xAI model metadata for grok-4.20-0309-reasoning#568
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Caitlin Pinn (cpinn)
approved these changes
May 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fix: update xAI model metadata for grok-4.20-0309-reasoning
Closes #567
Source issue: #567
Summary
grok-4.20-0309-reasoninggrok-4.20-0309-reasoningVerified metadata
Verification notes
Verification
Official source verification
grok-4.20-0309-reasoningas an active modelgrok-4.20-0309-non-reasoningandgrok-4.20-multi-agent-0309Fields verified and changed
input_cost_per_mil_tokensoutput_cost_per_mil_tokensmax_input_tokensFields NOT changed (not verifiable from official source)
input_cache_read_cost_per_mil_tokens(0.2) — xAI docs do not publish cache pricing; retaining existing valuemax_output_tokens(2000000) — xAI docs do not publish max output tokens; retaining existing valuemultimodal(true) — xAI docs mention image input support generically but do not confirm per-model; retaining existing valuereasoning(true) — implied by model name suffix; retaining existing valuesync_models (LiteLLM) cross-check
The LiteLLM model_prices_and_context_window_backup.json catalog contains no entries for any xAI or grok model. There are zero entries with
litellm_providercontaining "xai" and zero entries with "grok" in the key name. Therefore no numeric cross-check is possible. All proposed values are sourced directly from the official xAI documentation at https://docs.x.ai/developers/models.Models NOT covered by this issue
The following beta variants from the original issue table are not updated because they no longer appear on the official xAI models page:
grok-4.20-beta-0309-non-reasoning— replaced bygrok-4.20-0309-non-reasoningon official docsgrok-4.20-beta-0309-reasoning— no longer listed;grok-4.20-0309-reasoning(non-beta) is the current active modelgrok-4.20-multi-agent-beta-0309— replaced bygrok-4.20-multi-agent-0309on official docsThese beta models may need deprecation or removal in a separate issue.
sync_models vs proposed update
sync_models cross-check found differences. Official provider verification was used for the applied values, and sync_models discrepancies are listed below for review.