Skip to main content
Add Floodgate models to Grok Build with your API key and the Floodgate base URL.

Before you connect

Add funds to your balance, then configure your API key with routing groups and a spending limit. Use Model Square to find models, prices, and supported APIs.

1. Install Grok Build

2. Set your Floodgate key

PowerShell:

3. Register the models

Create ~/.grok/config.toml. On Windows, use %USERPROFILE%\.grok\config.toml.

4. Verify and run

Switch models in Grok Build with /model <alias>, for example /model gpt-6-sol. Run a task without opening the interactive interface:

Generate images, speech, and video

Add a script, function, or MCP tool that calls Floodgate’s image, speech, or video API and saves the result. Your coding client can call this tool while you work. See Function tools for tool setup and Coding tools for the media workflow.