Keplerjai Image Gen
v1.0.0通过 ThinkZone AI 生成图片。当用户说「画图」「生图」「生成图片」「AI 绘图」「做一张图」「图生图」等时使用。支持 3 个图片模型(Gemini/MiniMax/Seedream)。
Security Scan
Capability signals
These labels describe what authority the skill may exercise. They are separate from suspicious or malicious moderation verdicts.
OpenClaw
Suspicious
high confidencePurpose & Capability
Name/description: image generation via ThinkZone AI (3 models). The repository/docs are inconsistent about supported models (SKILL.md says 3 models; README/VERIFICATION/DONE/test scripts advertise/support 5 models). Several files (README, VERIFICATION, TEST_SUCCESS) claim the skill is globally registered/usable by all agents, but registry metadata flags 'always' as false. These mismatches suggest sloppy packaging and uncertain scope.
Instruction Scope
SKILL.md runtime instructions themselves are generally scoped to asking the user for model choice and calling the scripts. However other docs/instructions (ENV_FIX.md, API_KEY.md, DONE.md) instruct administrators to set system/global environment variables, use wrapper scripts, or even hardcode API keys into code. That expands the operational scope beyond what's declared and could cause credentials to be stored in plaintext on the host.
Install Mechanism
No install spec is provided and the skill is instruction + script only, so nothing is downloaded or installed automatically. This is the lowest-risk install mechanism.
Credentials
The declared required env var is a single API key (THINKZONE_API_KEY), which is reasonable. But the codebase includes multiple hardcoded API keys in plaintext (API_KEY.md, API_KEY_SETUP.md, DONE.md, ENV_FIX.md, TEST_SUCCESS.md, scripts/gen_image.py fallback, scripts/test_models.py). There are several distinct keys across files. Embedding working API keys and recommending hardcoding in the script is disproportionate and risky (exposes secrets in the repo, encourages privilege escalation to set machine-level env vars).
Persistence & Privilege
Registry flags show normal privileges (always:false, agent-invocable). However multiple documentation files assert global availability and global registration, and ENV_FIX.md suggests setting machine-level env vars and creating wrapper scripts — practices that increase the skill's system footprint if followed. The skill does not itself request 'always: true', but the documentation encourages global/system configuration.
What to consider before installing
This skill appears to implement ThinkZone image generation, but there are several red flags you should consider before installing or enabling it:
- The repository includes multiple plaintext API keys across files (API_KEY.md, API_KEY_SETUP.md, TEST_SUCCESS.md, scripts/test_models.py, and a hardcoded fallback in scripts/gen_image.py). Do not trust embedded keys — they may be stale, shared, or tied to third-party accounts. Remove any embedded secrets and supply your own API key via environment variables.
- The code intentionally falls back to a hardcoded API key when THINKZONE_API_KEY is not set. That behavior means the skill can use a secret baked into the skill bundle. If you install this skill, insist that it be modified to refuse to run without a valid environment-provided key.
- Documentation and code disagree about supported models and the skill's deployment scope (3 vs 5 models; some docs claim global registration). Ask the publisher to provide a single authoritative SKILL.md and remove conflicting materials.
- ENV_FIX.md recommends machine-level env variables and wrapper scripts. Avoid setting machine-scoped secrets unless you fully trust and control the service/account. Prefer per-service (agent) keys and least-privilege configuration.
- Because the repo contains real-looking API keys, consider rotating any keys used in your environment if you previously tested with this package. Treat those keys as compromised.
What to do before installing:
1) Request a cleaned package with no embedded secrets and a clear SKILL.md that matches the registry metadata.
2) Verify the skill will not use any fallback hardcoded key (remove fallback in gen_image.get_config()).
3) Confirm the endpoint base URL and model IDs are what you expect.
4) If you must test, run in an isolated environment and use a disposable API key.
Given these inconsistencies and embedded secrets, I rate this skill as suspicious and recommend remediation or a vendor clarification before enabling it in production.Like a lobster shell, security has layers — review code before you run it.
Runtime requirements
🖼️ Clawdis
EnvTHINKZONE_API_KEY
Primary envTHINKZONE_API_KEY
latest
ThinkZone Image Generation
使用 ThinkZone AI 平台的 3 个指定模型生成图片。
⚠️ 调用流程(必读)
当用户未指定模型时,必须先反问用户要用哪个模型,再执行生成。可这样询问:
请问要用哪个模型?
- 图片:Gemini(多模态/参考图)、MiniMax Image 01(人物主体参考)、Seedream(轻量 2K/3K)
用户明确指定模型后,再调用对应脚本。
当用户已指定模型(如「用 Gemini 画」「MiniMax 生成」)时,直接执行,无需反问。
🎨 支持的模型(3 个)
图片生成模型(3 个)
| 模型 | Model ID | 说明 | 尺寸/分辨率 |
|---|---|---|---|
| Gemini 3.1 Flash Image Preview | gemini-3.1-flash-image-preview | Google 多模态图像生成 | 0.5K, 1K, 2K, 4K |
| MiniMax Image 01 | image-01 | MiniMax 图片生成 | 自定义 512-2048px |
| BytePlus Seedream 5.0 Lite | doubao-seedream-5-0-260128 | BytePlus 轻量版 | 2K, 3K |
🔧 配置
需要设置环境变量:
THINKZONE_API_KEY- API 密钥THINKZONE_BASE_URL- API 基础 URL(可选,默认https://open.thinkzoneai.com)
📸 图片生成使用
Gemini 3.1 Flash Image Preview
# 基本用法
python3 {baseDir}/scripts/gen_image.py \
--prompt "一只穿宇航服的虾" \
--model "gemini-3.1-flash-image-preview"
# 指定分辨率和宽高比
python3 {baseDir}/scripts/gen_image.py \
--prompt "科幻城市夜景" \
--model "gemini-3.1-flash-image-preview" \
--resolution "2K" \
--aspect-ratio "16:9"
# 带参考图(支持多张,最多 10 张)
python3 {baseDir}/scripts/gen_image.py \
--prompt "基于参考图生成" \
--model "gemini-3.1-flash-image-preview" \
--images "path/to/image1.jpg" "path/to/image2.jpg" \
--resolution "1K"
参数说明:
| 参数 | 说明 | 默认值 | 可选值 |
|---|---|---|---|
--prompt | 图像描述文本 | 必填 | - |
--model | 模型名称 | gemini-3.1-flash-image-preview | 固定 |
--resolution | 分辨率 | 1K | 0.5K, 1K, 2K, 4K |
--aspect-ratio | 宽高比 | 1:1 | 1:1, 16:9, 9:16, 3:2, 2:3, 3:4, 4:3, 4:5, 5:4, 21:9, 1:4, 4:1, 1:8, 8:1 |
--images | 参考图路径(最多 10 张) | - | 图片路径 |
--thinking-level | 思考等级 | minimal | minimal, high |
--output-dir | 输出目录 | ./tmp/thinkzone-image | 路径 |
MiniMax Image 01
# 基本用法
python3 {baseDir}/scripts/gen_image.py \
--prompt "一只可爱的猫咪" \
--model "image-01"
# 指定宽高和数量
python3 {baseDir}/scripts/gen_image.py \
--prompt "赛博朋克角色" \
--model "image-01" \
--width 1024 \
--height 1024 \
--n 4
# 图生图(人物主体参考)
python3 {baseDir}/scripts/gen_image.py \
--prompt "穿古装的女性角色" \
--model "image-01" \
--subject-reference "path/to/character.jpg" \
--aspect-ratio "3:4" \
--watermark
参数说明:
| 参数 | 说明 | 默认值 | 可选值 |
|---|---|---|---|
--prompt | 图像描述文本 | 必填 | - |
--model | 模型名称 | image-01 | 固定 |
--width | 宽度像素 | 1024 | 512-2048(8 的倍数) |
--height | 高度像素 | 1024 | 512-2048(8 的倍数) |
--aspect-ratio | 宽高比 | 1:1 | 16:9, 4:3, 1:1, 3:4, 9:16, 21:9, 2:3, 3:2 |
--n | 生成数量 | 1 | 1-9 |
--subject-reference | 人物主体参考图 | - | 图片路径 |
--watermark | 是否添加水印 | false | true, false |
BytePlus Seedream 5.0 Lite
# 基本用法
python3 {baseDir}/scripts/gen_image.py \
--prompt "中国风山水画" \
--model "doubao-seedream-5-0-260128"
# 指定尺寸和格式
python3 {baseDir}/scripts/gen_image.py \
--prompt "高质量产品渲染图" \
--model "doubao-seedream-5-0-260128" \
--size "3K" \
--output-format "png"
# 批量生成(最多 15 张)+ 参考图(最多 14 张)
python3 {baseDir}/scripts/gen_image.py \
--prompt "基于参考图变体" \
--model "doubao-seedream-5-0-260128" \
--images "ref1.jpg" "ref2.jpg" \
--size "2K" \
--max-images 4 \
--no-watermark
参数说明:
| 参数 | 说明 | 默认值 | 可选值 |
|---|---|---|---|
--prompt | 图像描述文本 | 必填 | - |
--model | 模型名称 | seedream-5-0-260128 | 固定 |
--size | 输出尺寸 | 2K | 2K, 3K |
--output-format | 输出格式 | jpeg | jpeg, png |
--max-images | 最大生成数量 | 1 | 1-15 |
--images | 参考图路径(最多 14 张) | - | 图片路径 |
--watermark | 是否添加水印 | false | true, false |
--stream | 流式输出 | false | true, false |
📋 前端调用参考(Vue 3)
参考 campus-amags/tenant/src/views/workbench 组件的调用方式:
图片生成调用示例
import {
postImageGeneration, // MiniMax Image 01
postV3ImageGenerations, // BytePlus Seedream
postGeminiGenerateContent // Gemini 3.1 Flash
} from './api/image'
// MiniMax Image 01
const minimaxPayload = {
model: 'image-01',
prompt: '你的提示词',
width: 1024,
height: 1024,
aspect_ratio: '1:1',
n: 1,
aigc_watermark: false,
subject_reference: [{ type: 'character', image_file: 'base64_or_url' }]
}
const result = await postImageGeneration(minimaxPayload)
// BytePlus Seedream 5.0 Lite
const seedreamPayload = {
model: 'doubao-seedream-5-0-260128',
prompt: '你的提示词',
size: '2K',
output_format: 'jpeg',
watermark: false,
image: ['url1', 'url2'], // 参考图
sequential_image_generation: 'auto',
sequential_image_generation_options: { max_images: 4 }
}
const result = await postV3ImageGenerations(seedreamPayload)
// Gemini 3.1 Flash Image Preview
const geminiPayload = {
contents: [
{ parts: [{ text: '你的提示词' }] },
{ parts: selectedImages.map(img => ({ inlineData: { mimeType: 'image/jpeg', data: img.base64 } })) }
],
generationConfig: {
responseModalities: ['IMAGE'],
imageConfig: {
aspectRatio: '16:9',
imageSize: '2K'
},
thinkingConfig: {
thinkingLevel: 'minimal',
includeThoughts: false
}
}
}
const result = await postGeminiGenerateContent(geminiPayload)
⚠️ 注意事项
- 账户余额:确保 ThinkZone AI 账户有足够余额
- 图片尺寸限制:
- Gemini:分辨率 0.5K/1K/2K/4K
- MiniMax:512-2048px(8 的倍数)
- Seedream:2K/3K
- 参考图限制:
- Gemini:最多 10 张
- MiniMax:1 张(人物主体)
- Seedream:最多 14 张
- 超时处理:图片生成建议预留约 120 秒
🔗 相关链接
- ThinkZone AI 平台:https://open.thinkzoneai.com
- 前端参考实现:
C:\Users\Linsihuan\Desktop\campus-amags\tenant\src\views\workbench
最后更新:2026-04-17
Comments
Loading comments...
