About Flatkey Cli
Flatkey is a single API key that routes requests to many model providers, and the Flatkey command line tool brings that routing into the terminal. It installs as a global npm package, authenticates with an API key from the console, and generates images, video, voiceovers, sound effects, music and text from one prepaid balance. Outputs are saved locally, and it can also build video from local reference images.
It is aimed at developers and agent builders who do not want provider credentials scattered across repositories, agents and environments. Flags for JSON output, dry runs and output paths make behavior predictable in scripts, credits can be checked before a run, and usage and cost appear in one ledger. The tool can be attached to coding agents including Claude Code, Codex and Cursor. Behind it, the platform exposes more than 100 official models from providers including GPT, Claude, Gemini, DeepSeek, Qwen and GLM, plus a catalog of more than 1,000 tools billed per call. Requests use an endpoint compatible with the OpenAI SDK, so an existing client works after changing the base URL. The router can pick a model by task, latency and price with automatic failover, budgets and allowlists limit what each agent may call and spend, and calls that fail on the platform side are not billed.
Published subscription plans are Starter at $10 per month, Pro at $30 per month and Max at $100 per month, with Enterprise quoted on request. Model usage is billed per token at rates shown in a live model directory, which the vendor states sit below official list prices for several featured models. The company also runs a separate GPU compute marketplace with an hourly price index.