Qwen Code × Model Studio CLI: WeChat Cover Generation Guide
By Yijing Kai
The most annoying part of writing for WeChat Official Accounts isn't the writing itself—it's finding a cover image afterward.
Every time I finish an article and need to publish, I agonize over the cover. Before AI, I'd search Unsplash—which loads painfully slow these days. I even tried making them in Keynote, like this:

It's actually simple in concept—a specific image combined with title text. AI can totally handle this now, but letting AI generate freely tends to produce things that are "technically correct but weird." My content varies a lot in tone: some pieces are casual essays, some are tool reviews—dark moody vibes for certain topics, minimal abstract style for technical tools, magazine editorial feel for cultural commentary. Each one requires rethinking composition, color palette, and prompts. Quite tedious.
So I built a Skill to let Qwen Code + Model Studio CLI handle this for me.
What It Does
Give it an article title or topic, and it automatically analyzes tone, picks a style, condenses the title, builds prompts, and calls Model Studio to generate the image.
Four styles covering my main WeChat content scenarios. Here's a quick look—still iterating on many aspects:

- 01 Bold Statement: Dark cinematic background + left gradient overlay + large white text, one keyword highlighted in red. Best for deep commentary, historical topics, social observations.
- 02 Magazine: Left text / right framed image split layout, paper texture base. Best for cultural criticism, book notes, character narratives.
- 03 Minimal Abstract: Full-bleed illustration + monochrome color overlay, single-tone immersive feel. Best for tech blogs, product intros, concept explanations.
- 04 Pixel Art: 16-bit pixel art fill + dark purple overlay + gold pixel font. Best for tool reviews, casual content, nostalgic topics.
The Toolchain: Qwen Code + Model Studio CLI
Image generation is powered by Alibaba Cloud Model Studio's command-line tool. Model Studio CLI is a multimodal AI toolbox in your terminal—chat, image generation, video generation, speech synthesis, knowledge retrieval, all from the command line. Here we mainly use image generate.
Why this approach:
- Qwen Code calls it directly—the Skill has command templates, AI fills parameters and runs them, zero manual effort
- Free quota available—qwen-image-2.0 has free API calls; enable "stop when quota exhausted" to avoid charges
-
Precise size control—
--size '1344*572'outputs 2.35:1 widescreen ratio, Playwright @2x renders 2688×1144 high-res PNG
Beyond that, Model Studio CLI can also:
- Multimodal—supports images, text, and video
- Multi-scenario—supports chat, image generation, and video generation
- Multilingual—supports Chinese and English
If you're interested, check out Model Studio's open-source CLI directly: https://github.com/modelstudioai/cli
After installing my skill, just one prompt:
/open1v-mpcover-gen Generate a WeChat cover based on @your-article.md, <optionally specify style, e.g. use magazine style>
Here's the full process for reference—you can also generate all styles at once:
How to Use
❶ Install Qwen Code, see https://qwenlm.github.io/qwen-code-docs/zh/users/quickstart/
npm install -g @qwen-code/qwen-code@latest
❷ Get a Model Studio API Key: https://bailian.console.aliyun.com/cn-beijing?tab=model#/api-key
[!important] Important
Go to the model usage page and enable "Stop when free quota is exhausted" to prevent charges: https://bailian.console.aliyun.com/cn-beijing?tab=model#/model-usage
❸ Install the cover skill. Launch Qwen Code and type:
Help me install this skill: https://github.com/joeytoday/open1v-mpcover-gen
❹ Start using it. Just tell Qwen Code:
Make me a WeChat cover. The article title is "Qwen Code × Model Studio CLI Cover Generation Guide"
The AI will analyze content tone, ask which style you prefer (or auto-select), condense the title, build an English prompt, call Model Studio to generate the image, and output two alternatives.
More Usage Examples
Specify a style directly:
Make a minimal abstract cover about API security
Provide more context:
I wrote an article about Legalist philosophy. Make me a magazine-style cover.
Batch generation:
I wrote three articles this week with titles xxx / yyy / zzz. Make a cover for each.
Who Is This For
- You write for WeChat and always get stuck at the cover step
- You have aesthetic standards and don't want cookie-cutter templates
- You work in the terminal, or are willing to try
- Model Studio has free quota—zero cost to get started
❌ Not suitable for: precise Chinese typography (use Figma/Canva instead), real photographs, or highly refined cover designs.
Design Philosophy
Why not just have AI generate an image with the title text on it? Because AI-generated Chinese text is basically gibberish. So it's split into two steps: Model Studio generates the background → HTML overlays text → Playwright screenshots to export PNG. The image handles atmosphere only; text is precisely controlled by CSS.
The benefit is extremely low iteration cost—changing the title only requires editing text in HTML and re-rendering (2 seconds), no need to regenerate the image (30 seconds). Overlay too heavy or light, colors off—it's a one-line CSS change.
The four styles weren't arbitrary choices. They're divided by how readers feel in their content feed:
- "Has attitude" → dark background + bold text, visual impact
- "Has taste" → split columns + white space, editorial aesthetics
- "Very clear" → monochrome, minimal cognitive load
- "Fun" → pixel art breaks conventions
Each style maps to a text-image distribution pattern—full overlay, split columns, color overlay—ensuring text readability regardless of the background image.
The Skill is open-source on GitHub and continuously iterating. If you're using Qwen Code + Model Studio, give it a try. If you like it, a star ⭐️ would be appreciated.
🔗 https://github.com/joeytoday/open1v-mpcover-gen
🔗 https://github.com/modelstudioai/cli
🔗 https://github.com/QwenLM/qwen-code
[!note] Disclaimer
This content was written by the author, with AI-assisted editing and optimization. Core opinions and personal experiences are the author's own and represent only the creator's personal views.
Read previous post:
Sharing Data Without Risking Leaks? Let Ticket-Based Enhanced Embedding Strike the Perfect Balance
Read next post:
-
-
Alibaba Cloud Community
1,614 posts | 526 followers
Follow
Comments
-
-
Alibaba Cloud Community
1,614 posts | 526 followers
Follow
Related Products
-
QwenWork
QwenWork is dedicated to helping employees strengthen their professional competitiveness in the AI era and to enabling enterprises to improve organizational effectiveness.
Learn More -
Token Plan
Build more, spend less. One plan, every modality.
Learn More -
Alibaba Cloud Model Studio
A one-stop generative AI platform to build intelligent applications that understand your business, based on Qwen model series such as Qwen-Max and other popular models
Learn More -
Qoder
From Assisted to Autonomous — Adapting to Every Programming Need
Learn More
More Posts by Alibaba Cloud Community
- Alibaba's Full-Stack AI Drives Continued Cloud Growth Acceleration as Adoption Deepens
- Steering AI Toward Social Value: Inside Alibaba's 2026 AI for Good Action Report
- Alibaba Joins Antalya AI Pledge at COP31 to Support Sustainable AI
- Getting More Done with Auto: Inside Qoder's Harness Optimizations
- Same Credits, Nearly Double the Tasks: A Technical Breakdown of Qoder's Durability Optimization
- Your Credits Go Further: Qoder Auto Cuts Per-Task Usage by 41%
- Qwen4-Max: One Flagship for Complex Work, at a Price That Scales
- Qwen4-Max at Work: Six Real-World Scenarios for an Always-On AI Teammate
- Alibaba Cloud Named a Leader in Gartner® Magic Quadrant for Container Management for Fourth Consecutive Year
- The Easiest Way to Try the Latest Models in One Place: Token Plan Starting at $3 for the First Month