flatkey-ai/flatkey-cli
Flatkey media generation CLI for images, videos, audio, text, credits, and model discovery.
What it solves
Flatkey CLI addresses the need for fast, cost-effective, and programmatic creative generation. Media teams and AI agents often face expensive credit packages and long queue times with other tools (for example, video generation waiting up to 5 hours). Flatkey offers lower pricing (at least ~20% cheaper than comparable retail routes, sometimes ~40% for images) and is built for quick CLI retries and batch testing.
How it works
You install the CLI via npm (npm install -g @flatkey-ai/cli), log in (either through a browser or by setting FLATKEY_API_KEY), and then run commands like flatkey image generate --prompt "..." -o output.png. The CLI talks to Flatkey’s router, which selects the appropriate model from your account’s catalog (e.g., GPT Image, Seedance, ElevenLabs). It supports JSON output (--json) for machine readability, local file saving (-o), and a --dry-run mode to preview requests offline. Audio, video, and text generation work similarly.
Who it’s for
Flatkey CLI is for media teams building repeatable generation pipelines, AI agents (such as Codex, Claude Code, or Cursor) that need a simple way to produce creative content, and developers who want a unified command-line interface to multiple generative models without paying a premium or waiting in long queues.
Highlights
- One CLI covers image, video, audio, and text generation.
- Uses a single API key and one credit balance.
- Agent-friendly:
--jsonoutput, predictable stdout/stderr,--dry-run, and local output support. - Cross-platform npm package (macOS, Linux, Windows).
- Includes a progress animation for human runs, disabled in
--jsonmode. - Supports multiple models per modality (e.g., GPT Image, Seedance, ElevenLabs).
- Provides commands to list models, check credits, and view status.
Related
- Project
- Project
- Project
- Project
- Project