Skip to main content
Use any OpenAI-compatible client, SDK, or coding agent with Floodgate.
1

Create an API key

Sign in to Floodgate, navigate to the Tokens page, and create a new key. Copy it securely, as you will not be able to view it again.
2

Save the key in your environment

3

List available models

Query the API to see all models enabled for your account:
4

Send your first chat completion

Next Steps

Codex

Claude Code

OpenCode

Pi

Grok Build

Aider

Explore the rest of Floodgate’s capabilities:

Model Catalog

Browse the full list of OpenAI, Claude, Grok, DeepSeek, and open-weight models.

Image Generation

Generate and edit images using gpt-image-2 and gpt-image-2.5.

Coding Agents

Set up Codex, Claude Code, Grok Build, OpenCode, Pi, or Aider.

OpenAI-compatible API

Full API reference with Python, TypeScript, and cURL snippets.