One prepaid balance across tools
The same balance pays for calls from every connected tool.
Use cases
Connect Codex, Claude Code and Image Buddy to Flatkey. Keep using your tools, share a prepaid balance, and review usage and costs for each call in the console.
The same balance pays for calls from every connected tool.
Review the model, token usage and charges for each request.
Manage API keys, model access and quotas from the console.
Explore repositories, edit files and run tests.
Use Codex in your repository for code exploration, edits and test iterations. Point its model provider at Flatkey and use your Flatkey API key; requests then use your Flatkey balance.
Read the setup guide~/.codex/config.tomlbase_urlhttps://router.flatkey.ai/v1FLATKEY_API_KEYRoute Codex prompts, edits, and follow-up runs through one Flatkey balance.
Use Codex for bug fixes and test iteration while each request remains measurable.
Build features, refactor code and debug.
Keep the Claude Code terminal workflow for feature development, refactoring and debugging. Connect through the Anthropic-compatible endpoint and review the resulting usage and costs in Flatkey.
Read the setup guide~/.claude/settings.jsonANTHROPIC_BASE_URLhttps://router.flatkey.aiANTHROPIC_AUTH_TOKENLet Claude Code scan, explain, and map large codebases while usage lands in Flatkey.
Run more edit-test-review cycles with visible cost and prepaid balance control.
Create product shots, lifestyle scenes and ad images.
Generate product hero images, marketplace shots and UGC-style ad stills from the command line. Install Image Buddy, initialize your account, then submit a prompt. The examples below come from the Image Buddy guide.
Read the setup guidenpm i -g @flatkey-ai/image-buddynpx @flatkey-ai/image-buddy onboardnpx @flatkey-ai/image-buddy generate --prompt "Product hero image"


Calls draw from your prepaid balance. Pricing varies by model and billing method. Check the model prices before connecting, then review usage and charges in the console.
Create an account and generate an API key in the console.
Follow the matching guide; initialize Image Buddy after installation.
Send a simple request, then check its model, usage and cost.
Keep using Codex or Claude Code and update the connection configuration. Image Buddy is a separate CLI to install.
Calls routed through Flatkey draw from your prepaid balance. Model pricing and usage records are available in the console.
Send a simple request from the configured tool and check that its model and usage appear in the console.
No. Codex uses an OpenAI-compatible connection, while Claude Code uses an Anthropic-compatible connection. Follow the guide for your tool; their configuration files and setting names differ.
Start with the models supported by your tool and check their availability and prices on Flatkey. Use the exact model ID from the guide or model page, then try a small task before a longer workflow.
Check the endpoint, API key, model ID and available balance first. Compare the error with your tool’s setup guide; when asking for help, include the error message and time of the request, but never the full API key.
The examples on this page cover product hero images, marketplace shots and UGC-style ad stills. Follow the Image Buddy guide to initialize the CLI, then describe the product, scene and intended use in your prompt.
Keep the key in a local configuration file or environment variable. Do not include it in public repositories, browser code or screenshots. If a key is exposed, disable it in the console and create a replacement.