Missing features identified from xAI docs audit
1. enable_image_search for grok-web-search
Released May 2026. Lets Grok search for images and embed them as markdown in responses. xBridge's handle_grok_web_search() (server.py:1146-1147) only passes enable_image_understanding — needs enable_image_search too.
if arguments.get("enable_image_search"):
web_search_tool["enable_image_search"] = True
Also add the parameter to the tool schema inputSchema.
2. Video generation missing failed status handling
handle_video_generate() -> make_video_request() (server.py:342-355) only handles "done" and "expired" statuses. The API also returns "failed" with an error object containing code and message. Currently a failed generation hangs until timeout.
Add handling for status == "failed" to surface the error immediately.
3. 1080p resolution support
grok-imagine-video-1.5 supports "1080p" resolution for image-to-video. The current VIDEO_RESOLUTIONS list (L86) is ["480p", "720p"]. Add "1080p".
4. grok-imagine-video-1.5 in video models
Only grok-imagine-video is in VIDEO_MODELS (L69-71) and available as the model enum. Add grok-imagine-video-1.5 for access to 1080p and newer capabilities.
5. grok-imagine-image-quality in image models
Only grok-imagine-image and grok-2-image-1212 are in IMAGE_MODELS (L64-67). Add grok-imagine-image-quality ($0.05/image).
Acceptance criteria
Missing features identified from xAI docs audit
1.
enable_image_searchfor grok-web-searchReleased May 2026. Lets Grok search for images and embed them as markdown in responses. xBridge's
handle_grok_web_search()(server.py:1146-1147) only passesenable_image_understanding— needsenable_image_searchtoo.Also add the parameter to the tool schema inputSchema.
2. Video generation missing
failedstatus handlinghandle_video_generate()->make_video_request()(server.py:342-355) only handles "done" and "expired" statuses. The API also returns "failed" with an error object containingcodeandmessage. Currently a failed generation hangs until timeout.Add handling for
status == "failed"to surface the error immediately.3. 1080p resolution support
grok-imagine-video-1.5supports "1080p" resolution for image-to-video. The currentVIDEO_RESOLUTIONSlist (L86) is["480p", "720p"]. Add "1080p".4.
grok-imagine-video-1.5in video modelsOnly
grok-imagine-videois inVIDEO_MODELS(L69-71) and available as the model enum. Addgrok-imagine-video-1.5for access to 1080p and newer capabilities.5.
grok-imagine-image-qualityin image modelsOnly
grok-imagine-imageandgrok-2-image-1212are inIMAGE_MODELS(L64-67). Addgrok-imagine-image-quality($0.05/image).Acceptance criteria
grok-web-searchacceptsenable_image_searchboolean parameterenable_image_searchis passed through to the API tool configstatus == "failed"and surfaces the error immediatelyVIDEO_RESOLUTIONSgrok-imagine-video-1.5added toVIDEO_MODELSgrok-imagine-image-qualityadded toIMAGE_MODELS