Problem
The model info hardcoded in handle_grok_models() (server.py:1213-1267) no longer matches the xAI docs.
Pricing/Context discrepancies
| Model |
xBridge says |
xAI docs say |
| grok-4.20-0309-reasoning |
2M ctx, $2.00/$6.00 |
1M ctx, $1.25/$2.50 |
| grok-4.20-0309-non-reasoning |
2M ctx, $2.00/$6.00 |
1M ctx, $1.25/$2.50 |
| grok-4.20-multi-agent-0309 |
2M ctx, $2.00/$6.00 |
1M ctx, $1.25/$2.50 |
Docs show grok-4.20 family received a price cut and context reduction. xBridge is stale.
Missing models
grok-build-0.1 — fast coding model (256k ctx, $1.00/$2.00), released May 2026
grok-imagine-image-quality — premium image model ($0.05/img)
grok-imagine-video-1.5 — newer video model ($0.080/sec, supports 1080p)
All three should be added to AVAILABLE_MODELS, IMAGE_MODELS, or VIDEO_MODELS respectively, and documented in handle_grok_models() / handle_image_models().
Location
xbridge_mcp/server.py — handle_grok_models() (L1213-1267), IMAGE_MODELS (L64-67), VIDEO_MODELS (L69-71), AVAILABLE_MODELS (L41-57)
docs/wiki/Tools-Reference.md — model enum list (L20-21)
Acceptance criteria
Problem
The model info hardcoded in
handle_grok_models()(server.py:1213-1267) no longer matches the xAI docs.Pricing/Context discrepancies
Docs show grok-4.20 family received a price cut and context reduction. xBridge is stale.
Missing models
grok-build-0.1— fast coding model (256k ctx, $1.00/$2.00), released May 2026grok-imagine-image-quality— premium image model ($0.05/img)grok-imagine-video-1.5— newer video model ($0.080/sec, supports 1080p)All three should be added to
AVAILABLE_MODELS,IMAGE_MODELS, orVIDEO_MODELSrespectively, and documented inhandle_grok_models()/handle_image_models().Location
xbridge_mcp/server.py—handle_grok_models()(L1213-1267),IMAGE_MODELS(L64-67),VIDEO_MODELS(L69-71),AVAILABLE_MODELS(L41-57)docs/wiki/Tools-Reference.md— model enum list (L20-21)Acceptance criteria
grok-build-0.1added toAVAILABLE_MODELSgrok-imagine-image-qualityadded toIMAGE_MODELSgrok-imagine-video-1.5added toVIDEO_MODELSgrok-image-modelshandler updated to describe the new modelshandle_grok_models()pricing/context text matches docs