SuperAPI AI Directory

jimeng-cli-text2image

Design & creation

View repository

Updated 10-15 21:47

About this skill

即梦 CLI text-to-image

Before executing, first run dreamina text2image -h. This skill records the v1.4.14 stable workflow; the actual help is always the source of truth for parameters.

When to use and boundary

For text-to-image tasks that have already entered the CLI execution, polling, or troubleshooting stage. Should not be used for image-to-image, video generation, or pure prompt creation; for those scenarios, load the corresponding jimeng-cli-* or jimeng-prompt-* skill respectively.

Must comply

  • Explicitly pass on each submission --resolution_type=1k|2k|4k。
  • --width and --height must appear in pairs, be positive integers, and be mutually exclusive with --ratio .
  • Model token uses 5.0Pro, do not write it as the human-readable name 5.0 Pro。
  • generate_num range is 1–10.
  • Before submitting, explain that credits will be consumed; prefer --poll=0 to obtain submit_id。

For the model and resolution matrix, width/height pixel limits, see the dreamina-cli skill's references/dreamina-cli-v1.4.14-contract.md. If not installed, first npx skills add full-aigc-skills/jimeng-skills --skill dreamina-cli。

Standard execution

dreamina user_credit
dreamina text2image \
  --prompt="一只橘猫坐在窗边,柔和晨光,浅景深" \
  --ratio=1:1 \
  --model_version=5.0 \
  --resolution_type=2k \
  --poll=0

Omit ratio when using custom dimensions:

dreamina text2image \
  --prompt="竖版产品海报,留出标题区域" \
  --model_version=5.0 \
  --resolution_type=2k \
  --width=1536 \
  --height=2048 \
  --poll=0

Asynchronous closed loop

Step 1: Validate

Run dreamina text2image -h, validate the model, resolution, ratio, or custom dimension combination.

Step 2: Submit

Check credits, explain the consumption impact, submit, and save submit_id。

Step 3: Terminal-state closed loop

querying only indicates it has been accepted; continue query_result, until success or fail. On failure, report fail_reason; when a file is needed, add --download_dir=<absolute-path>。

Gotchas

  1. Missing resolution: v1.4.14 will reject requests that do not pass resolution_type .
  2. Width/height conflict: custom width/height cannot appear together with ratio.
  3. Display name mistaken for token:5.0 Pro must be converted to 5.0Pro。
  4. Accepted mistaken for success:querying is not a successful terminal state.
  5. Credit consumption: before a real submission, the user must be informed that credits will be consumed.

References