Skip to main content
Connect Claude Code to Floodgate with the Messages API. The example below uses claude-opus-5-5.

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 Claude Code

2. Set the endpoint, key, and model

Claude Code appends /v1/messages itself. Use https://api.floodgate.dev without a trailing /v1.

3. Run Claude Code

Run /status inside Claude Code to verify that the Anthropic base URL points to Floodgate and the model is claude-opus-5-5.

Other models

You can switch models depending on your task:

Save your settings

Save this as ~/.claude/settings.json. On Windows, use %USERPROFILE%\.claude\settings.json.

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.