Skip to content

[bug] image generate ignores --model and falls back to qwen-image-2.0 #117

Description

@65316

Environment

  • CLI: bl 1.10.1
  • Skill: 1.10.1
  • Node: v24.15.0
  • OS: Microsoft Windows NT 10.0.26200.0 (Windows, x64)
  • Region/base URL: domestic (https://dashscope.aliyuncs.com)
  • Authentication: healthy API-key config (credential redacted)

Reproduce

Dry-run:

bl image generate --prompt "test human plush doll on cyan background" --model wan2.6-t2i --size "1024*1024" --watermark false --prompt-extend false --dry-run --output json

The dry-run correctly reports:

{
  "request": {
    "model": "wan2.6-t2i",
    "parameters": {
      "size": "1024*1024",
      "n": 1,
      "prompt_extend": false,
      "watermark": false
    }
  },
  "mode": "async"
}

Real request:

bl image generate --prompt "test human plush doll on cyan background" --model wan2.6-t2i --size "1024*1024" --watermark false --prompt-extend false --output json

The same behavior also occurred with:

bl image edit --image .\reference.jpg --prompt "[redacted user prompt about a human plush-doll sprite]" --model wan2.7-image --size "1024*1024" --watermark false --prompt-extend false --output json

Expected

The real request should use the explicitly selected wan2.6-t2i / wan2.7-image model, matching the dry-run payload, and honor watermark=false.

Actual

The command exits successfully but reports [Model: qwen-image-2.0] [Mode: sync]. The downloaded image visibly contains a Qwen-Image watermark even though --watermark false was passed. The --model selection appears to be ignored or silently replaced with the default model during execution.

Full output

urls:
  - [temporary OSS URL redacted]
saved:
  - [local output path redacted]
total: 1
[Model: qwen-image-2.0] [Mode: sync]
Exit code: 0

For image edit --model wan2.7-image, the result similarly ended with:

[Model: qwen-image-2.0] [Mode: sync] [Images: 1]
Exit code: 0

Already tried

  • Confirmed CLI and installed skill versions are aligned at 1.10.1.
  • Confirmed bl auth status is healthy.
  • Tested both bl image generate and bl image edit.
  • Tested two non-default model IDs: wan2.6-t2i and wan2.7-image.
  • Confirmed --dry-run preserves the requested model while real execution reports the default model.
  • Repeated real requests; behavior reproduced consistently.

Notes

  • Frequency: always in this session (multiple requests)
  • Invoked via: Codex agent on Windows PowerShell
  • The mismatch is costly because successful exit status can consume image quota on an unintended model.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions