Skip to content

Grok image provider

Use Grok when you want API-backed image generation through xAI.

Project config

asset_image_model: grok:grok-imagine-image

Grok is used for asset image generation only. Use native, codex, gemini:<model>, or openai:<model> for VQA.

Setup

  1. Set your API key:
export XAI_API_KEY=...
  1. Install the Python package:
pip install xai-sdk
  1. Run python tools/check_env.py.