Dreamina CLI: Enabling Agents to Generate Text, Images, and Videos via Jimeng CLI

Preface

When integrating Dreamina into Agent workflows, common practices involve writing custom scripts or repeatedly checking documentation to assemble parameters. Generation tasks are often asynchronous, requiring distinctions between login states, credits, submissions, and result polling, which easily leads to pitfalls regarding subcommands and model constraints. Dreamina CLI is a community Skill on SkillHub that codifies “when to use which dreamina subcommand, how to determine success, and how to follow up on tasks” into a SKILL.md. This allows Agents in clients like Cursor, Claude Code, and Codex to execute according to a unified set of conventions.

What is this

Dreamina CLI (coordinates @user_236f3544/dreamina-cli, version 1.0.0) is maintained by the community publisher user_236f3544, categorized under design-media, and sourced from the community. The official description is: Use this Skill when an Agent needs to complete Dreamina image or video generation via the dreamina CLI.

The Skill itself does not replace the dreamina executable; rather, it guides the Agent: dreamina is the local CLI entry point covering currently open Dreamina text-to-image/video generation workflows, as well as account and session-related operations. The SkillHub page marks requires_api_key=false, indicating that the Skill metadata does not require a separate API Key configuration (actual generation still relies on a locally installed dreamina and a logged-in Dreamina account).

SkillHub Statistics (based on page display): Rating 100000, Downloads 1698, Installations 97.

Core Functions

Based on the SKILL.md within the Skill package, the capability boundaries covered by this Skill are as follows.

Account & Task Management

  • Check or reuse existing Dreamina login sessions (login / relogin / logout should only be used when explicitly requested by the user).
  • View account credits/quotas via user_credit.
  • Query asynchronous task results by submit_id via query_result.
  • Browse recent saved tasks via list_task.

Generation Workflows

  • Image generation related subcommands (used when input or output is primarily images).
  • Video generation related subcommands (used when output is video).
  • image2video: Choose when a single main image is sufficient.
  • multiframe2video: Multi-image input, single coherent story video output (Dreamina multi-frame intelligent workflow).
  • multimodal2video: Flagship video mode requiring multimodal references such as images, videos, and audio; supports the seedance2.0 series (refer to subcommand -h for specific parameters).

Agent Behavior Conventions

  • Detailed flags and supported values depend on the CLI. Prioritize checking dreamina -h and dreamina <subcommand> -h; the Skill does not hardcode model lists.
  • Asynchronous submission success criteria: submit_id exists and gen_status is querying or success; if fail, check fail_reason.
  • Commands that may consume credits require a user reminder before execution; some models require one-time authorization on the Dreamina Web (e.g., returning AigcComplianceConfirmationRequired).

Installation & Activation

1. Install SkillHub CLI (if not already installed)

First, check if skillhub is available:

command -v skillhub && skillhub --version

If not installed, you can follow the official SkillHub installation documentation to perform a full installation (CLI + default Skills):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

To install only the CLI:

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only

Source description: SkillHub Installation and Priority Source Configuration.

2. Install Dreamina CLI Skill

When installing, you must use --dir to point to the current Agent’s skills directory; otherwise, it defaults to ./skills/ which may not be recognized. The installation prompt provided on the official page is: Refer to the installation documentation above to install @user_236f3544/dreamina-cli.

The command-line equivalent is:

skillhub install dreamina-cli --namespace user_236f3544 --dir <skills directory>

Common client skills directories (also from SkillHub installation documentation):

  • Claude Code: ~/.claude/skills/
  • Cursor: ~/.cursor/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project

After installation, refresh or restart according to each client’s requirements so the Agent can load the new Skill.

3. Local dreamina CLI

This Skill assumes that an executable dreamina command already exists in the environment. If it is not installed or is outdated, you need to install the CLI yourself via official Dreamina channels; the Skill package does not provide an independent installation script, and specific steps are not verified within this article.

Typical Usage

The following steps reproduce the default workflow from the Skill documentation for Agent or manual comparison.

1. Read help first, then execute real tasks

dreamina -h
dreamina <subcommand> -h

Run the corresponding -h before using any new subcommand to confirm support for models, duration, aspect ratio, resolution, etc.

2. Check quota before submitting

dreamina user_credit

3. Submit generation task (example subcommand names, refer to -h for parameters)

Image or video subcommands vary by task type; if the user specifies a model, you must first confirm support in that subcommand’s -h.

4. Asynchronous follow-up

If gen_status is querying after submission:

dreamina query_result --submit_id=<id>

When you need to review historical tasks in bulk:

dreamina list_task

5. Multi-image / Multimodal selection (Conceptual level)

  • Single image to video: Prefer image2video.
  • Multi-image narrative: Prefer multiframe2video.
  • Strong reliance on multimodal references or seedance2.0: Prefer multimodal2video, noting that this series may have tight capacity and slower speeds.

When the user verbally says “即梦” (Jimeng), the Skill requires the Agent to treat it as Dreamina and follow the same CLI workflow.

Use Cases & Notes

Who is it for

  • Those who have installed the dreamina CLI in their development environment and want Coding Agents to call Dreamina image/video capabilities according to unified rules.
  • Teams that need Agents to distinguish between “just checking help,” “actually submitting,” and “polling results,” while recording submit_id and credit consumption reminders.

Limitations & Notes

  • The Skill is intentionally concise and does not enumerate all flags; model and parameter combinations rely solely on the subcommand -h as the authority. Different subcommands may support different models, ratios, and durations.
  • Do not judge the success of asynchronous submissions solely based on the shell exit code; you must check submit_id and gen_status.
  • Real generation consumes credits; the Skill suggests small-batch, reviewable testing, and retaining commands, submit_id, and final status.
  • If speed is a higher priority, unless the user explicitly requests quality or seedance2.0, it is not advisable to use that model series by default.

Conclusion

Dreamina CLI solidifies the Dreamina local CLI’s session, quota, image/video submission, and asynchronous query workflows into Skill conventions readable by Agents, reducing repeated trial and error regarding subcommands and model constraints. Installation and metadata are subject to SkillHub:

  • API Endpoint: https://api.skillhub.cn/user_236f3544/dreamina-cli
  • Browse Page: https://www.skillhub.cn/skills/user_236f3544/dreamina-cli
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye