Produce warm, friendly cartoon banner illustrations that combine:
The default use case is a WeChat 公众号 article header (16:9), but other ratios are supported.
MULEROUTER_API_KEY — MuleRouter API key.MULEROUTER_BASE_URL (e.g. https://api.mulerouter.ai) or MULEROUTER_SITE (mulerouter or mulerun).mulerouter-skills package available locally (the script invokes its nano-banana-2/edit model). Install from If MULEROUTER_API_KEY is missing, ask the user to set it before running.
python3 scripts/generate_banner.py \
--title "活水的本质:管理也可以市场化" \
--mascot /path/to/mascot.png \
--scene "a penguin swimming in a river, friends on the left bank cheering, a leader on the right bank reaching out" \
--output /workspace/output/banner.png
Common flags:
--title (required) — headline text drawn onto the image (handwritten brush style).--mascot (required) — local path to one reference image of the mascot/character.--scene (optional) — short natural-language description of what is happening around the mascot.--ratio (optional, default 16:9) — one of 1:1 4:3 3:2 16:9 9:16 2:3 21:9.--title-position (optional, default top) — top, bottom, left, right, or center.--style-preset (optional, default warm-pastel) — see references/STYLE_PRESETS.md.--mood (optional) — extra adjectives appended to the prompt, e.g. "cozy and dreamy".--accent (optional) — emphasized words from the title to highlight in color, e.g. "产品思维".--subtitle (optional) — small line under the main title.--resolution (optional, default 2K) — 1K, 2K, or 4K.--variants (optional, default 2) — how many images to generate per call.--edit-from (optional) — refine an existing banner instead of generating from scratch.--mulerouter-skills-dir (optional) — explicit path to the local mulerouter-skills checkout. Defaults to $MULEROUTER_SKILLS_DIR then common locations.The script prints each saved output path. With --variants > 1, files are suffixed _1, _2, etc.
mulerouter-skills and calls the google/nano-banana-2/edit model.--scene, switch --style-preset, or use --edit-from to refine a previous output. Detailed recipes in references/ITERATION.md.warm-pastel, flat-cartoon, storybook-watercolor, night-cozy, monochrome-line) and how to add new ones.--subtitle.--mascot, --style-preset, and --accent..env files.共 1 个版本