Connect an API key safely.
The CLI stores your key locally with restricted permissions and masks it in human-readable and JSON output.
lkm auth login --api-key YOUR_API_KEYOpen-source CLI for AI agents
Turn terminal-capable AI agents into multimodal creators with one safe prompt and one API key, then run a complete generation workflow from request to downloaded artifact.
Install the official package globally with npm.
npm install -g linkmodel-cliConfirm the CLI and credentials are ready before generation.
lkm doctor --jsonAdd your API key, then ask your agent for an image or video. The CLI handles the workflow from request to downloaded artifact.
The CLI stores your key locally with restricted permissions and masks it in human-readable and JSON output.
lkm auth login --api-key YOUR_API_KEYDescribe the result in natural language. Your agent runs the command, waits for completion, and downloads the artifact.
lkm image "a cinematic product shot"Create synchronously, leave a long task running asynchronously, or resume it later. The same commands work for people, scripts, and coding agents.
The CLI exposes explicit state instead of hiding behavior, so agents can reason about every step.
Use --json for machine-readable responses that are easy to inspect, pipe, and validate.
Success, validation, authentication, timeout, and task failures remain distinguishable.
Selected-model help exposes the exact supported flags, defaults, ranges, and enums.
Start with --no-wait, keep the task ID, then inspect or wait for completion later.
Completed images and videos download automatically with extensions derived from their content type.
The installation prompt gives every agent clear boundaries before it touches credentials or paid generation.
LinkModel CLI is MIT licensed, published on npm, and developed in the official LinkModel GitHub organization.