Before executing, run dreamina image2image -h. This skill documents the v1.4.14 stable workflow; the actual help is always the source of truth for parameters.
When to use and boundary
For tasks with existing local reference images that need to be edited and tracked through the CLI. Not for text-to-image, video generation, or pure prompt polishing; load the corresponding execution or prompt skills respectively.
Must Follow
--imagesAccepts 1–10 local files; separate multiple paths with commas.- Explicitly pass on each submission
--resolution_type=1k|2k|4k。 --widthand--heightmust appear in pairs, be positive integers, and be mutually exclusive with--ratio.- Only
5.0Prosupports 1k; 4.x/5.0 only support 2k or 4k. - The model token is
5.0Pro, not5.0Pro。 generate_numrange is 1–10.
For the full model matrix and pixel limits, see
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
test -r ./input.png
dreamina user_credit
dreamina image2image \
--images=./input.png \
--prompt="保留主体与构图,转换为透明水彩风格" \
--model_version=5.0 \
--resolution_type=2k \
--ratio=1:1 \
--poll=0
Omit ratio when using custom dimensions:
dreamina image2image \
--images=./input.png \
--prompt="改造成竖版电商海报" \
--model_version=5.0 \
--resolution_type=2k \
--width=1536 \
--height=2048 \
--poll=0
Asynchronous Closed Loop
Step 1: Validate
Validate each input file is readable one by one, and use help to verify the model, resolution, ratio, or custom dimension combination.
Step 2: Submit
Check credits, explain the consumption impact, submit, and save submit_id。
Step 3: Final-State Closed Loop
For querying continuously call query_result, until success or fail. On failure, report
fail_reason, do not treat submit success as generation success.
Gotchas
- File Count: only 1–10 readable local images are allowed.
- Missing Resolution: v1.4.14 must pass
resolution_type。 - Width/Height Conflict: width/height must be paired and mutually exclusive with ratio.
- 1k Misuse: only
5.0Prosupports image-to-image 1k. - Status Misjudgment:
queryingis not a successful final state.
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 Modes
- Examples