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。 --widthand--heightmust 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 name5.0 Pro。 generate_numrange is 1–10.- Before submitting, explain that credits will be consumed; prefer
--poll=0to obtainsubmit_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
- Missing resolution: v1.4.14 will reject requests that do not pass
resolution_type. - Width/height conflict: custom width/height cannot appear together with ratio.
- Display name mistaken for token:
5.0 Promust be converted to5.0Pro。 - Accepted mistaken for success:
queryingis not a successful terminal state. - Credit consumption: before a real submission, the user must be informed that credits will be consumed.
References
dreamina-cliskill's v1.4.14 parameter contract(if not installed:npx skills add full-aigc-skills/jimeng-skills --skill dreamina-cli)- Parameter reference
- Model selection
- Workflow mode
- Example