Introduction¶
When working with images in an IDE or Agent, the common approach is to manually write long shell commands and guess parameters by referencing the Dreamina web interface. When tasks become asynchronous, you also have to track submit_id, poll status, and manage download paths in the terminal. The Dreamina Text-to-Image CLI Skill (@user_c1d16043/jimeng-cli-text2image) on SkillHub encodes installation verification, login, parameter mapping, standard execution workflows, and error handling into the SKILL.md. When users mention “Dreamina CLI”, “command-line image generation”, or need to submit/query text-to-image tasks, the agent will follow this unified set of steps to invoke the ByteDance dreamina command-line tool rather than improvising commands.
What This Is¶
The Dreamina Text-to-Image CLI Skill is an operation guide-style Skill for AI Agents (current version 1.0.4, source community, category design-media). It is published by SkillHub user user_c1d16043 (page author listed as Loong10K). It does not replace the Dreamina server-side; instead, it explains how to submit tasks to Dreamina’s 3.0–5.0 text-to-image models via the official dreamina CLI, and covers credit queries, sync/async submission, result polling, and session-based project organization. The SkillHub tag requires_api_key=false indicates that authentication is handled through the CLI login flow, not by configuring a third-party API key within this Skill.
Core Features¶
The following capabilities are derived from the SkillHub page and the skill description, and can be cross-referenced with the official dreamina CLI documentation.
- Trigger Boundaries: When users want to generate images from the command line using confirmed prompts; when they mention
dreamina, Dreamina CLI, or generating/submitting/executing prompts; or when they need to check credits, task status, session management, or download results, the Agent should load this Skill. - Installation & Authentication: Includes installation verification (confirming
dreaminais available), login, and account-side checks (e.g., credits). - Parameter Mapping: Maps natural language or specification-based prompts, aspect ratios, resolution, etc., to CLI parameters (specific flags should be confirmed via
dreamina text2image -hon your machine). - Execution Modes: Supports both synchronous waiting and asynchronous submission; in async scenarios, combines
query_resultand task list commands for polling and retrieving results. - Workflows & Troubleshooting: The skill documentation summarizes 4 standard execution workflows and 6 common error handling patterns (details are in the installed
SKILL.md, not fabricated here). - Scope Limitations: Focuses on text-to-image (
dreamina text2image), and does not replace image-to-image, video generation, or prompt-only creative Skills.
Installation & Activation¶
1. Install SkillHub CLI (if not already installed)¶
First check if skillhub is available:
command -v skillhub && skillhub --version
If not installed, follow the SkillHub installation documentation for a full installation (including CLI and 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
2. Install This Skill to the Current Agent’s Skills Directory¶
SkillHub requires that --dir points to the actual skills directory that the current Agent reads; otherwise, the skill will not be loaded. Installation command:
skillhub install @user_c1d16043/jimeng-cli-text2image --dir <your skills directory>
The general guidance from the page is: install @user_c1d16043/jimeng-cli-text2image according to the SkillHub installation instructions.
Common client skills paths (excerpted from SkillHub installation documentation; choose the one matching your environment):
- Cursor:
~/.cursor/skills/ - Claude Code:
~/.claude/skills/ - Codex:
~/.codex/skills/or.agents/skills/under the project
After installation, refresh or restart as required by each client to enable the new Skill.
3. Install and Log In to dreamina CLI (Image Generation Binary)¶
This Skill guides the use of the dreamina command-line tool. The official one-click installation example (from the ByteDance Dreamina CLI repository documentation):
curl -fsSL https://jimeng.jianying.com/cli | bash
By default, dreamina is installed to ~/.local/bin/. For remote or headless environments without a graphical interface, use headless QR code login:
dreamina login --headless
After logging in, you can use the credits interface to confirm the session is valid:
dreamina user_credit
Typical Usage¶
The examples below are derived from the official dreamina CLI documentation for text-to-image and async query usage. Before actual execution, the Agent should run dreamina text2image -h to verify the parameters supported by the current version. Generate commands consume Dreamina credits, and this should be communicated to the user before submission.
Synchronous text-to-image with polling (specifying aspect ratio and resolution type):
dreamina text2image \
--prompt="cyberpunk cityscape at night, neon reflections" \
--ratio=1:1 \
--resolution_type=2k
Asynchronous task: submit first, then query and download by submit_id:
dreamina query_result --submit_id=3f6eb41f425d23a3 --download_dir=./output
View historical tasks (to resume unfinished async generations):
dreamina list_task --gen_status=success
The correspondence between text-to-image models and resolution_type (e.g., 3.0/3.1 supports 1k/2k, 4.x/5.0 supports 2k/4k, etc.) should follow the official CLI help and Dreamina’s documentation. The parameter mapping within the skill should remain consistent with this.
Use Cases & Notes¶
Suitable for: Users who already use Dreamina accounts within their Agent workflow; those who want the Agent to handle “install CLI → login → submit text-to-image → poll/download” step by step; teams or individuals who need unified handling of CLI errors and session management.
Notes:
- This Skill is maintained by the community, which differs from the Agent Skill paths bundled with the official dreamina repository. The
SKILL.mdinstalled via SkillHub serves as the behavioral guide for the Agent. - Some models may require a one-time authorization on the Dreamina web interface before being callable via CLI.
- For async tasks, always retain the
submit_idand properly handle statuses such as “task incomplete / timeout / insufficient credits” on the terminal side. Specific responses are detailed in the 6 error patterns documented within the skill. - SkillHub page statistics (at time of capture): score 100000, downloads 32183; installation count is subject to the store display.
Conclusion¶
The Dreamina Text-to-Image CLI Skill transforms Dreamina text-to-image from “temporarily checking documentation and writing commands” into a repeatable Agent-executable workflow: installation verification, authentication, parameter mapping, sync/async submission, and troubleshooting templates are all aligned within the Skill. If your agent needs to reliably run dreamina text2image in conversations, you can install @user_c1d16043/jimeng-cli-text2image from SkillHub.
- SkillHub page: https://www.skillhub.cn/skills/user_c1d16043/jimeng-cli-text2image
- API/Share URL: https://api.skillhub.cn/user_c1d16043/jimeng-cli-text2image
- SkillHub installation instructions: https://skillhub.cn/install/skillhub.md