image-gen
Skill by wpsnote
Image Gen generates images from text prompts and from reference images. It connects to OpenRouter, Alibaba Cloud Bailian, Volcano Ark and Google Gemini, and is meant for users of WPS Note who want to generate and insert AI images.
Install image-gen
Built from the published package, never by AI.
git clone --depth 1 https://github.com/wpsnote/wpsnote-skills /tmp/wpsnote-skills && mkdir -p ~/.claude/skills && cp -r /tmp/wpsnote-skills/skills/image-gen ~/.claude/skills/image-genRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/wpsnote/wpsnote-skills /tmp/wpsnote-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/wpsnote-skills/skills/image-gen ~/.gemini/antigravity-cli/skills/image-genAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
Image Gen is an agent skill for creating AI images. It supports text-to-image and image-to-image generation through four providers: OpenRouter, Alibaba Cloud Bailian (dashscope), Volcano Ark (ark) and Google Gemini. The assistant asks for the prompt, whether there is a reference image, and an aspect ratio, then runs a bundled Python script to call the chosen provider.
API keys are encrypted with AES and stored in a WPS note. The decryption key is derived on the fly from the device ID, note ID and provider, so no extra key file is kept on the machine. Generated images can be inserted into an open WPS note through wpsnote-cli or an MCP tool. The skill is for WPS Note users who want image generation with a choice of providers and models.
Written from the project's SKILL.md and checked against it.
What it can do
- Text-to-imageGenerates an image from a text prompt with a chosen aspect ratio.
- Image-to-imageUses a reference image as input, subject to each provider's limits.
- Provider choiceLets the user pick OpenRouter, Bailian, Volcano Ark or Gemini.
- Encrypted key storageSaves API keys as AES ciphertext in a WPS note for later use.
- Insert into noteInserts a generated image into a WPS note via wpsnote-cli or MCP.
- Key deletionRemoves a saved provider key from the key note on request.
What you need
- API key for at least one provider: OpenRouter, Alibaba Cloud Bailian, Volcano Ark or Google Gemini
- WPS Note account and the wpsnote-cli tool for inserting images
- Python 3 with httpx and cryptography installed
- Proxy address for OpenRouter and Gemini when used from mainland China
Try asking
- Generate a 16:9 image of a mountain lake at dusk using Gemini.
- Use my reference photo and create a version in watercolor style.
- Insert the generated picture into my currently open WPS note.
Good to know
- Model names are fixed in the skill and users cannot choose them.
- Bailian does not support image-to-image.
- Volcano Ark reference images must be public URLs.
- Inserting an image requires the target note to be open in the WPS editor.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/image-gen/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to image-gen
All alternatives →Keeps customer-facing CopilotKit Intelligence docs on one approved name per concept. Useful for writers, editors and reviewers of docs, nav labels, signup labels and image alt text in showcase/shell-docs.
Gets, makes and treats media for HyperFrames videos. It sources music, sound effects, images, voiceover, avatars and transcripts with HeyGen or free local tools, and applies colour grades and looks to footage.
Searches the user's uploaded photo library and connected device galleries to find, date, and describe photos. Built for personal photo requests and for cases where a photo could ground or personalize an answer.
Converts text, markdown, or another skill's summary into a listenable MP3 using local CPU-only neural text-to-speech. It rewrites the prose for listening first. Aimed at people who want audio briefings.
Generate Image creates new images and edits existing ones using OpenRouter models such as FLUX.2 Pro and Gemini 3 Pro. It is aimed at photos, illustrations, concept art and other visuals that are not technical diagrams.
Gives an AI assistant the HyperFrames CLI for building, checking, previewing and rendering video projects. It suits people who make videos from HTML compositions and want the assistant to run the full workflow.
Compare with intelligence-vocabulary, media-use or media_library
image-gen: common questions
Where are API keys stored?
Keys are encrypted with AES and saved in a WPS note. The decryption key is derived from the device ID, note ID and provider, so no extra key file is stored locally.
Which providers support image-to-image?
OpenRouter and Gemini accept local reference files, and Volcano Ark accepts a public URL. The source says Bailian does not support image-to-image.
What happens if I switch devices?
The saved ciphertext cannot be decrypted on a different device, so the key must be saved again on the new device.
How do I install image-gen?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is image-gen free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is image-gen safe to use?
It scores 71 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to image-gen?
Similar skills: intelligence-vocabulary, media-use, media_library, speak-summary.
