Developers — Tools
Image generation (/developers/tools/image-generation)
Expanded the image generation tool guide with full xAI SDK coverage alongside the existing Responses API examples:
- Documented the xAI SDK tool name (
image_generation) in the SDK/API table - Added Python examples for basic generation,
action="generate"/action="edit", multi-turn edit flows, combiningweb_searchwith image generation, and streaming withinclude=["verbose_streaming"] - Clarified that generated images are available on
response.image_outputsas decoded bytes in the xAI SDK
Other updates
Console deep links across developer, console, and Grok docs were refreshed with consistent referral parameters. No pages were added or removed.