Text To Image logo

Text To Image

Organization
meitu
text-to-image

使用 meitu-cli 从文字描述从零生成全新图片(无底图),覆盖通用文生图/多图参考融合与商业级高品质生成。当用户提到生成一张图、画一张、文生图、创作一张图、概念图、宣传图、封面图、营销图、产品场景图、电影截图风格时触发。

Overview

Publishermeitu
Repositorymeitu-skills
Skill nametext-to-image
Stars
36
Forks
3
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by meitu on GitHub. Read the source before you install it.

Installation

Install the Text To Image AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/meitu/meitu-skills/tree/main/skills/text-to-image
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/meitu/meitu-skills.git /tmp/meitu-skills
mkdir -p .claude/skills
cp -r /tmp/meitu-skills/skills/text-to-image .claude/skills/text-to-image
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Text To Image in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Text To Image on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Text To Image is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Text To Image(文生图)

Overview

从文字描述从零生成全新图片(无底图),参考图仅作风格/氛围补充而非内容主体。涵盖 2 类场景:

  1. 通用文生图 / 多图参考融合:创意概念图、插画、风格混搭、快速出图;支持 image_list 多图参考融合;发散/多样/速度快的默认通道。
  2. 商业级高品质生成:宣传视觉/封面、电商海报/营销 Banner、产品场景图、文字渲染(信息图/海报文字)、写实/电影截图风格;文本理解深、文字渲染准、高分辨率;不支持 image_list。

含人物/角色/肖像描述的文生图(人物封面、概念图、插画含人物)由本工具承接。不处理:基于已有图片编辑/修改、参考图驱动的创作(参考图为主要内容来源)、已提供参考图的高保真人像/宠物写真/证件照、海报排版设计、风格迁移、视频生成、搜图、画质提升/超分。

API Mapping

场景后端 API
通用文生图 / 多图参考融合image_gummy_generate
商业级高品质生成image_praline_create_v2
商业级兜底image_praline_create_2(praline_v2 失败时的降级通道,参数兼容)
Nougat 高质量(外部显式指定)image_nougat_create(不支持 image_list / output_format;quality 由 API 内部默认 Medium 不对外暴露)

model 映射:

  • auto(默认)/ 不传 → 按路由规则决策
  • gummy → image_gummy_generate
  • praline_pro → image_praline_create_v2
  • nougat → image_nougat_create(仅外部显式指定触发;路由不识别)
  • 指定 model 调用失败时,仍按降级链继续重试

Dependencies

  • meitu-cli: >=2.0.6
  • 凭证:CONFIG AKSK → meitu tools update;EXEC AKSK → 跑命令(见根 CONFIG.md)
  • 环境变量:MEITU_OPENAPI_TOOL_TASK_MODE=command

Core Workflow

Preflight → Execute → Deliver

Preflight

  1. meitu --version ≥ 2.0.6
  2. meitu auth verify --json
  3. 确认 registry 含 text-to-image
  4. 解析 output_dir:openclaw.yaml → ./output/;else → ~/.openclaw/workspace/visual/output/text-to-image/

Execute

触发信号 / 路由规则

决策顺序:

  1. 有 image_list → 强制 image_gummy_generate(praline 不支持 image_list)
  2. 无 image_list:商业/宣传/文字渲染/写实电影风 → image_praline_create_v2;否则 → image_gummy_generate(默认)
场景判定关键词路由
有参考图(多图融合)参考这张图、融合、多图image_gummy_generate
商业级 / 宣传 / 电商宣传图、封面、电商、营销、Banner、商业级、高品质、产品场景图image_praline_create_v2
文字渲染带文字、加标题、信息图、海报文字image_praline_create_v2
写实 / 电影风格写实、真实感、光影质感、电影截图image_praline_create_v2
创意 / 插画 / 概念画一张、概念图、插画、创意、风格混搭image_gummy_generate
通用 / 无特殊要求其他image_gummy_generate(默认)

参数定义

通用参数:

参数类型必填范围默认值说明
promptSTRING是----图片描述。缺失 → 追问
sizeSTRING否1K / 2K / 4K2K输出分辨率

image_gummy_generate 额外参数:

参数类型必填默认值说明
image_listARRAY[STRING]否--参考图片 URL 数组,多图融合/风格参考;纯文生图不传

image_praline_create_v2 额外参数:

参数类型必填范围默认值说明
ratioSTRING否1:1 / 2:3 / 3:2 / 3:4 / 4:3 / 4:5 / 5:4 / 9:16 / 16:9 / 21:9--输出宽高比;特殊比例需在 prompt 结尾写 Aspect ratio x:y

image_praline_create_2(兜底):

参数类型必填范围默认值说明
ratioSTRING否auto / 1:1 / 2:3 / 3:2 / 3:4 / 4:3 / 4:5 / 5:4 / 9:16 / 16:9 / 21:9auto输出宽高比

image_nougat_create(显式模型):

参数类型必填范围默认值说明
ratioSTRING否1:1 / 2:3 / 3:2 / 3:4 / 4:3 / 4:5 / 5:4 / 9:16 / 16:9 / 21:9--仅 model=nougat 时生效;不支持 image_list

说明:image_list 与 ratio 互斥;output_format 由 combo-tool 内部固定为 jpeg,不对外暴露。

工具调用

创意 / 默认:

bash
meitu text-to-image \
  --skill_name skill_text-to-image \
  --prompt "{image_description}" \
  --size 2K \
  --json --download-dir {output_dir}

多图参考融合:

bash
meitu text-to-image \
  --skill_name skill_text-to-image \
  --prompt "{image_description}" \
  --model gummy \
  --image_list "{ref1}" --image_list "{ref2}" \
  --json --download-dir {output_dir}

商业级高品质(带比例):

bash
meitu text-to-image \
  --skill_name skill_text-to-image \
  --prompt "{image_description} Aspect ratio 16:9" \
  --model praline_pro \
  --ratio 16:9 --size 2K \
  --json --download-dir {output_dir}

错误降级

场景处理方式
prompt 缺失提示"请描述你想生成的图片内容"
size 非法值回退至 2K
image_list 部分无效静默过滤无效项
image_list 全部无效 + 有 prompt退化为纯文生图,走 image_gummy_generate
有参考图但路由到 praline强制切 image_gummy_generate,告知"商业级模式不支持参考图"
image_praline_create_v2 失败降级 image_praline_create_2 重试
image_praline_create_2 失败降级 image_gummy_generate 重试
image_gummy_generate 失败重试 1 次,仍失败返回错误
内容合规拦截直接返回合规提示,不重试、不降级

Deliver

解析 --json:

  • ok: true → downloaded_files[0].saved_path 为本地图片
  • ok: false → 输出 code + hint

落盘:mv {file} {output_dir}/{YYYY-MM-DD}_{descriptive-name}.jpg

Output

  • 格式: JPEG(combo-tool 内部固定)
  • 命名: {YYYY-MM-DD}_{descriptive-name}.jpg
  • 位置: 项目 → ./output/;一次性 → ~/.openclaw/workspace/visual/output/text-to-image/

基线 Task ID

见根目录 references/task-id-baseline.md 中 text-to-image 条目。

Frequently asked questions

What does the Text To Image AI skill do?

使用 meitu-cli 从文字描述从零生成全新图片(无底图),覆盖通用文生图/多图参考融合与商业级高品质生成。当用户提到生成一张图、画一张、文生图、创作一张图、概念图、宣传图、封面图、营销图、产品场景图、电影截图风格时触发。

Why use Text To Image on TypingMind?

Because you install it once and use it with any model. Text To Image is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Text To Image in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/meitu/meitu-skills/tree/main/skills/text-to-image. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Text To Image?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Text To Image?

As many as you like. As long as a model supports skills, you can use Text To Image with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Text To Image AI skill free?

Yes. It is published on GitHub by meitu under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇