Hand the runbook to your agent.
Copy the official prompt. The agent follows a canonical installation guide and validates the CLI without triggering a billable request.
lkm doctor --jsonLinkModel CLI turns terminal-capable AI agents into multimodal creators. One safe installation prompt, one API key, and a complete generation workflow from request to downloaded artifact.
Your agent can install, validate, authenticate, and operate the CLI without a separate integration layer.
Copy the official prompt. The agent follows a canonical installation guide and validates the CLI without triggering a billable request.
lkm doctor --jsonCredentials stay in a local file with restricted permissions and remain masked in human and JSON output.
lkm auth login --api-key YOUR_API_KEYDescribe the output in natural language. Your agent selects the command, waits for the task, 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.
Stored API keys use restricted file permissions and are masked in command output.
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.
LinkModel CLI is an open-source command-line client for generating images and videos through LinkModel from a terminal, script, or AI coding agent.
Any agent that can run terminal commands can use it, including Codex, Claude Code, Cursor, and similar coding agents.
The CLI stores credentials locally with restricted file permissions and masks the Key in human-readable and JSON output.
Yes. The CLI supports image and video generation, asynchronous task status checks, resumable waits, and automatic artifact downloads.