Image Gen Coze logo

Image Gen Coze

Community
noah-1106
image_gen_coze

Image Generation via Coze | 基于 Coze 的图像生成技能 Generate images using Coze workflows. 使用 Seedream 4.5 model. Handles parameter building and result parsing. 负责参数构建和结果解析。 Requires coze-workflow skill. 需要 coze-workflow 技能。

Overview

Publishernoah-1106
RepositorySkills_Repo
Skill nameimage_gen_coze
Stars
32
Forks
5
Bundled files
2
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.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by noah-1106 on GitHub. Read the source before you install it.

Installation

Install the Image Gen Coze 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/noah-1106/Skills_Repo/tree/main/skills/image-gen-coze-1.1.3
  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/noah-1106/Skills_Repo.git /tmp/Skills_Repo
mkdir -p .claude/skills
cp -r /tmp/Skills_Repo/skills/image-gen-coze-1.1.3 .claude/skills/image_gen_coze
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Image Gen Coze 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 Image Gen Coze 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 Image Gen Coze 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.

Image Gen Coze | 图像生成技能

基于 Coze 工作流的图像生成技能。使用 Seedream 4.5 模型。依赖: coze-workflow 技能(基础层)。

Image generation skill based on Coze workflow. Uses Seedream 4.5 model. Requires: coze-workflow skill (base layer).


依赖关系 / Dependencies

必需 / Required:

  • coze-workflow v1.1.1+ - Coze 工作流执行的基础技能 / Base skill for Coze workflow execution

架构 / Architecture:

  • coze-workflow(基础层 / base)→ image-gen-coze(业务层 / business layer)

功能特性 / Features

特性 / Feature说明 / Description
模型 / ModelSeedream 4.5
输入 / Input单一 Prompt / Single prompt
输出 / Output图片 URL / Image URL
限制 / Limit30秒/次 / 30 seconds per request

配置 / Configuration

~/.openclaw/skills/image_gen_coze/config.json:

json
{
  "workflow_id": "7613773741864550434"
}

依赖技能配置 / Dependency config:~/.openclaw/skills/coze_workflow/config.json


使用方式 / Usage

输入 / Input

json
{
  "prompt": "一只可爱的橘猫在窗台上晒太阳,温暖的光线,写实摄影风格 --ar 1:1"
}

完整调用流程 / Full Workflow

bash
#!/bin/bash

# 1. 读取配置 / Read config
WORKFLOW_ID=$(jq -r '.workflow_id' ~/.openclaw/skills/image_gen_coze/config.json)
COZE_CONFIG=~/.openclaw/skills/coze_workflow/config.json
API_KEY=$(jq -r '.api_key' "$COZE_CONFIG")
BASE_URL=$(jq -r '.base_url // "https://api.coze.cn"' "$COZE_CONFIG")

# 2. 构建 prompt / Build prompt
PROMPT="一只可爱的橘猫在窗台上晒太阳,温暖的光线,写实摄影风格 --ar 1:1"

# 3. 调用 coze_workflow 执行 / Execute
result=$(curl -s -X POST "${BASE_URL}/v1/workflow/stream_run" \
  -H "Authorization: Bearer ${API_KEY}" \
  -H "Content-Type: application/json" \
  -d "{
    \"workflow_id\": \"${WORKFLOW_ID}\",
    \"parameters\": {
      \"prompt\": \"${PROMPT}\"
    }
  }" | grep -E "^event: Message$" -A1 | tail -1)

# 4. 解析结果 / Parse result
data=$(echo "$result" | sed 's/^data: //')
content=$(echo "$data" | jq -r '.content')
image_url=$(echo "$content" | jq -r '.output // empty')

# 5. 下载并保存 / Download and save
if [ -n "$image_url" ]; then
  SAVE_DIR="./generated_images"
  mkdir -p "$SAVE_DIR"
  
  TIMESTAMP=$(date +%Y%m%d_%H%M%S)
  PREFIX=$(echo "$PROMPT" | sed 's/[^a-zA-Z0-9\u4e00-\u9fa5]//g' | cut -c1-10)
  FILENAME="${TIMESTAMP}_${PREFIX}.png"
  FILEPATH="${SAVE_DIR}/${FILENAME}"
  
  curl -s -L "$image_url" -o "$FILEPATH"
fi

文件保存约定 / File Save Convention

保存路径 / Save Path

./generated_images/

实际路径示例 / Example paths:

  • Agent A: ~/.openclaw/workspace-agentA/generated_images/
  • Agent B: ~/.openclaw/workspace-agentB/generated_images/

命名规则 / Naming Rule

{时间戳 / Timestamp}_{prompt前缀 / Prefix}.png

示例 / Example:
20260305_233045_一只可爱的橘猫.png
参数 / Parameter说明 / Description示例 / Example
TIMESTAMP生成时间 / Generation time20260305_233045
PREFIXPrompt 前10字符 / First 10 chars一只可爱的橘猫

提示词写法 / Prompt Writing

尺寸 / Aspect Ratio

在 prompt 末尾添加 --ar 比例:

标签 / Tag尺寸 / Size
--ar 1:11024×1024
--ar 16:91024×576
--ar 9:16576×1024

风格关键词 / Style Keywords

  • 写实摄影风格 - 照片级真实 / Photorealistic
  • 动漫风格 - 日式动漫 / Anime style
  • 3D渲染 - 三维立体 / 3D render
  • 赛博朋克 - 科幻霓虹 / Cyberpunk

速率限制 / Rate Limit

30秒/次 - 建议实现调用间隔检查 / Implement call interval checking.


版本历史 / Changelog

  • v1.1.3: 添加中英文对照 / Add bilingual support
  • v1.1.1: 明确职责,负责参数构建和结果解析 / Clarify responsibilities
  • v1.1.0: Seedream 4.5 模型 / Seedream 4.5 model
  • v1.0.0: 初始版本 / Initial version

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Image Gen Coze AI skill do?

Image Generation via Coze | 基于 Coze 的图像生成技能 Generate images using Coze workflows. 使用 Seedream 4.5 model. Handles parameter building and result parsing. 负责参数构建和结果解析。 Requires coze-workflow skill. 需要 coze-workflow 技能。

Why use Image Gen Coze on TypingMind?

Because you install it once and use it with any model. Image Gen Coze 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 Image Gen Coze in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/noah-1106/Skills_Repo/tree/main/skills/image-gen-coze-1.1.3. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Image Gen Coze?

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 Image Gen Coze?

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

Is the Image Gen Coze AI skill free?

Yes. It is published on GitHub by noah-1106 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 👇