text-2-image
Skill by datavane
Generates images with Alibaba Cloud's qwen-image-2.0 model from a text description or from a reference image. Saves the generated file to the current directory. Aimed at users who want image generation through Alibaba Cloud's Token Plan API from an AI assistant.
Install text-2-image
Built from the published package, never by AI.
git clone --depth 1 https://github.com/datavane/tis /tmp/tis && mkdir -p ~/.claude/skills && cp -r /tmp/tis/.claude/skills/text-2-image ~/.claude/skills/text-2-imageRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/datavane/tis /tmp/tis && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/tis/.claude/skills/text-2-image ~/.gemini/antigravity-cli/skills/text-2-imageAntigravity 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
Text-2-image is an agent skill that generates images with the qwen-image-2.0 model through Alibaba Cloud's Token Plan API. It supports two modes: creating an image from a text description, and image-to-image generation that uses a reference image plus a text prompt. Reference images can be PNG, JPG, JPEG or WebP files.
When called with a slash command, the skill reads the prompt, optional image path, model and size from the arguments. It encodes the reference image in base64 and sends the request with the QWEN_AUTH_TOKEN environment variable as a Bearer token. The returned image is downloaded to the current directory with a timestamped name, and the assistant reports the file path, model, size and prompt. It suits users who work in a terminal with an AI assistant and want to create or restyle images.
Written from the project's SKILL.md and checked against it.
What it can do
- Text to imageGenerates an image from a text description using qwen-image-2.0.
- Image to imageGenerates a new image from a reference image and a text prompt.
- Size optionsSupports 1024*1024 (default), 720*1280 and 1280*720 output sizes.
- Automatic downloadSaves the generated image to the current directory with a timestamped filename.
- Argument parsingReads optional image:, model: and size: arguments from the user's input.
What you need
- Alibaba Cloud Token Plan access
- QWEN_AUTH_TOKEN environment variable set to an API token
- Bash tool with curl
- base64 and date commands (macOS or Linux)
Try asking
- /text-2-image a small orange cat sitting on a windowsill watching the view
- /text-2-image size:720*1280 neon city street at night, futuristic style
- /text-2-image image:./reference.png keep the composition, make it a cartoon
Good to know
- Each API call has a cost, as stated in the source.
- Generation can take several seconds to over ten seconds.
- Reference images add upload time and create a larger request body.
- The source suggests keeping reference images under 10MB.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/skills/text-2-image/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md8 KB
Alternatives to text-2-image
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
text-2-image: common questions
Does text-2-image need an API key?
Yes. It reads the QWEN_AUTH_TOKEN environment variable and sends it as a Bearer token to the Alibaba Cloud API.
Can it edit an existing photo?
It supports image-to-image generation. You pass a reference image path with image: and describe the change you want, such as a watercolor style.
Where are the generated images saved?
They are downloaded to the current directory with names in the form generated_YYYYMMDD_HHMMSS.png.
How do I install text-2-image?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is text-2-image free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is text-2-image safe to use?
It scores 79 of 100. Grades: maintenance A, licence A, quality A. 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 text-2-image?
Similar skills: intelligence-vocabulary, media-use, media_library, speak-summary.
