Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 79
  • 1.4k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-image

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install text-2-image in Claude Code

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

A

No 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 →

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.

text-2-image Install

Add to stack

Loading.