Skip to main content
Connect Codex to Floodgate with the Responses API. The example below uses gpt-6-sol.

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 Codex

Check the installation:

2. Set your API key

3. Configure Floodgate

Open ~/.codex/config.toml. On Windows, use %USERPROFILE%\.codex\config.toml.
Put the provider configuration in your user configuration file at ~/.codex/config.toml.

4. Run Codex

To use another model that supports Responses:
Use model IDs from your key’s model list. The provider fields follow the official Codex configuration reference. Inside Codex, run /status to confirm the selected model and provider.

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.