Skip to content

feat(image): add --seed, --width/--height, --prompt-optimizer, --aigc-watermark#75

Merged
tars90percent merged 2 commits intoMiniMax-AI:mainfrom
raylanlin:pr/image
Apr 10, 2026
Merged

feat(image): add --seed, --width/--height, --prompt-optimizer, --aigc-watermark#75
tars90percent merged 2 commits intoMiniMax-AI:mainfrom
raylanlin:pr/image

Conversation

@raylanlin
Copy link
Copy Markdown

Changes

  • --seed: Reproducible generation (same seed + prompt = identical output)
  • --width / --height: Custom dimensions (512–2048px, must be multiple of 8)
    • Both must be specified together
    • Validates range and divisibility by 8
    • Overrides --aspect-ratio when both set
  • --prompt-optimizer: Auto-optimize prompt before generation
  • --aigc-watermark: Embed AI content watermark
  • Updated description: image-01 / image-01-live

Files

  • src/commands/image/generate.ts
  • src/types/api.ts (add seed, width, height, prompt_optimizer, aigc_watermark)
  • src/command.ts (apiDocs interface)

Raylan LIN and others added 2 commits April 10, 2026 16:43
…-watermark

- Add --seed for reproducible generation
- Add --width/--height for custom dimensions (512-2048, multiple of 8)
- Add validation: both required together, range + divisibility check
- Add --prompt-optimizer for auto prompt optimization
- Add --aigc-watermark for AI content watermarking
- Add apiDocs field
- Update description: image-01 / image-01-live
- Improve --aspect-ratio description
- Add seed, dimensions, and optimizer examples
- Change apiDocs from full URL to path (fixes broken URL in --help)
- Clear aspect_ratio when both --width and --height are provided
@tars90percent tars90percent merged commit cbebc42 into MiniMax-AI:main Apr 10, 2026
1 check passed
@tars90percent
Copy link
Copy Markdown
Collaborator

Thanks! Pushed a fix commit (bdec821) before merging:

  • apiDocs path fix (same as other PRs)
  • aspect_ratio is now cleared from the request body when --width/--height are both set -- the docs say they "override" aspect ratio, but both were being sent simultaneously

Apologies for pushing directly rather than requesting changes -- should have let you address these yourself. Will do that next time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants