Image generation with xAI

Configure an image generation route with the xAI Grok 2 Image Gen model.

See Set up AI Proxy for image generation with Grok for a full how-to guide with this example.

Prerequisites

  • xAI account

Environment variables

  • XAI_API_KEY: The API key to use to connect to xAI.

Set up the plugin

Something wrong?

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!