>_ CLI Index
← Back

Jimeng CLI

Recommended v1.3.4

Agent-first CLI for ByteDance Jimeng AI image and video generation

Agent Support
5/5
Platforms
macoslinux
Authentication

Login required — Run `dreamina login` to authorize via browser OAuth; headless machines can follow the prompt to import credentials manually

Links

Agent Usage Example

shell
dreamina text2image --prompt="cyberpunk city rain" --ratio=1:1 --resolution_type=2k --poll=30

Installation

curl -fsSL https://jimeng.jianying.com/cli | bash

Jimeng CLI (binary: dreamina) brings ByteDance’s Jimeng generative AI platform to the terminal. It is explicitly designed for AI agents: a single curl | bash installer, browser-based OAuth via dreamina login, and a compact command surface (text2image, text2video, image2image, image2video) that lets agents embed image and video generation into any workflow or batch job.

Every submission command accepts --poll=<seconds> so agents can block inline until the job finishes, or fall back to the async pattern: capture the returned submit_id, continue other work, then call dreamina query_result --submit_id=<id> --download_dir=./downloads to fetch the final asset. dreamina list_task surfaces the full local task history, backed by a SQLite database at ~/.dreamina_cli/tasks.db.

Recent releases add seedance 2.0 fast_vip / vip accelerated channels, 2K image output, 720P video at flexible aspect ratios, and native Linux arm64 builds. Credentials and config live under ~/.dreamina_cli/ (credential.json, config.toml), and dreamina user_credit is the canonical self-check — if it returns a balance JSON, your login and environment are ready for generation tasks.

Related Tools