🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

modelscope_img_generator

by @windandliberty

Generate images with ModelScope API. Use for image generation requests. Supports text-to-image + image-to-image; configurable models; use --input-image.

Versionv1.2.0
πŸ’‘ Examples

Generate new image:

uv run ~/.codex/skills/ModelScope_img_generator/scripts/generate_img.py --prompt "A serene Japanese garden with cherry blossoms" --filename "2025-11-23-14-23-05-japanese-garden.jpg"

Generate with specific model:

uv run ~/.codex/skills/ModelScope_img_generator/scripts/generate_img.py --prompt "Chinese ink painting landscape" --filename "ink-landscape.jpg" --model "MusePublic/wukong-1.8B"

Edit existing image:

uv run ~/.codex/skills/ModelScope_img_generator/scripts/generate_img.py --prompt "make the sky more dramatic with storm clouds" --filename "2025-11-23-14-25-30-dramatic-sky.jpg" --input-image "original-photo.jpg"

Generate with LoRA:

uv run ~/.codex/skills/ModelScope_img_generator/scripts/generate_img.py --prompt "anime style portrait" --filename "anime-portrait.jpg" --lora "anime-lora:0.8"

βš™οΈ Configuration

Required before use: 1. ModelScope API Key - Get from https://modelscope.cn - Set as environment variable: export MODELSCOPE_API_KEY="your-key-here" - Or pass directly: --api-key "your-key-here" 2. uv - Python package manager (install via pip install uv) 3. Python 3.10+ - Required runtime

Python dependencies (auto-installed by uv):

  • requests>=2.31.0
  • pillow>=10.0.0
  • View on ClawHub
    TERMINAL
    clawhub install modelscope-img-generator

    πŸ§ͺ Use this skill with your agent

    Most visitors already have an agent. Pick your environment, install or copy the workflow, then run the smoke-test prompt above.

    πŸ” Can't find the right skill?

    Search 60,000+ AI agent skills β€” free, no login needed.

    Search Skills β†’