Image
生成和处理图像内容的基础功能模块
Core functionality module for generating and processing image content
clawhub install image利用 Videoagent Image Studio 进行图像设计和编辑工作。
# 安装 Skill npx skills add pexoai/pexo-skills@videoagent-image-studio # 安装后 Claude Code 会自动识别并使用
# 同样的安装命令,兼容所有支持 SKILL.md 的 AI 编程工具 npx skills add pexoai/pexo-skills@videoagent-image-studio
需要注册 Videoagent 账户并获取 API 密钥,付费模式按生成次数计费
midjourney | ~15s |
| Photorealistic, portrait, product | flux-pro | ~8s |
| General purpose, balanced | flux-dev | ~10s |
| Quick draft, fast iteration | flux-schnell | ~2s |
| Image with text, logo, poster | ideogram | ~10s |
| Vector art, icon, flat design | recraft | ~8s |
| Anime, stylized illustration | sdxl | ~5s |
| Gemini-powered, consistent style | nano-banana | ~12s |cinematic lighting, ultra detailed, --v 7, --style rawmasterpiece, highly detailed, sharp focus, professional photographyvector illustration, flat design, icon stylenode {baseDir}/tools/generate.js \
--model <model_id> \
--prompt "<enhanced prompt>" \
--aspect-ratio <ratio>
--model | flux-dev | Model ID from the table above |
| --prompt | *(required)* | The image generation prompt |
| --aspect-ratio | 1:1 | 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 21:9 |
| --num-images | 1 | Number of images (1–4; Midjourney always returns 4) |
| --negative-prompt | — | Things to avoid (not supported by Midjourney) |
| --seed | — | Seed for reproducibility |{
"success": true,
"model": "flux-pro",
"imageUrl": "https://...",
"images": ["https://..."]
}
imageUrl to the user.# Upscale image #2 (subtle, preserves details)
node {baseDir}/tools/generate.js \
--model midjourney \
--action upscale \
--index 2 \
--job-id <job_id>
# Create a strong variation of image #3
node {baseDir}/tools/generate.js \
--model midjourney \
--action variation \
--index 3 \
--job-id <job_id> \
--variation-type 1
# Regenerate with same prompt
node {baseDir}/tools/generate.js \
--model midjourney \
--action reroll \
--job-id <job_id>
0 = Subtle (default, best for photos), 1 = Creative (best for illustrations)0 = Subtle (default), 1 = Strong (dramatic changes)# Choose midjourney for artistic quality
node {baseDir}/tools/generate.js \
--model midjourney \
--prompt "a majestic snow leopard on a snowy mountain peak, cinematic lighting, dramatic atmosphere, ultra detailed --ar 16:9 --v 7" \
--aspect-ratio 16:9
# Choose flux-pro for photorealistic product shots
node {baseDir}/tools/generate.js \
--model flux-pro \
--prompt "a luxury perfume bottle on a clean white background, professional product photography, soft shadows, 8k, highly detailed" \
--aspect-ratio 3:4
# flux-schnell for instant previews
node {baseDir}/tools/generate.js \
--model flux-schnell \
--prompt "..." \
--aspect-ratio 1:1
# recraft for vector/icon style
node {baseDir}/tools/generate.js \
--model recraft \
--prompt "a minimal flat design app icon, blue color scheme, simple geometric shapes, vector style, white background"
{
"skills": {
"entries": {
"videoagent-image-studio": {
"enabled": true,
"env": {
"IMAGE_STUDIO_PROXY_URL": "https://your-proxy.vercel.app",
"IMAGE_STUDIO_TOKEN": "your_token_here"
}
}
}
}
}
IMAGE_STUDIO_PROXY_URL | No | Custom proxy base URL (default: https://image-gen-proxy.vercel.app) |
| IMAGE_STUDIO_TOKEN | No | Persistent token (auto-obtained if not set, 100 free uses per token) |FAL_KEY and LEGNEXT_KEY as Vercel environment variables.--async / --poll flags needed in SKILL.md instructions.{ success, imageUrl, images } shape.--reference-images "url1,url2" for character/style consistency across generations.--async + --poll).npx skills add pexoai/pexo-skills@videoagent-image-studio && skills videoagent-image-studio --prompt "现代极简主义的手机壳产品渲染图" --style "professional" --output ./designs图像托管:将图像上传到 img402.dev 获取公开链接,用于消息分享、文档嵌入或社交媒体发布。
Upload images to img402.dev and get a public URL. Free tier: 1MB max, 7-day retention, no auth. Use when the agent needs a hosted image URL — for sharing in messages, embedding in documents, posting to social platforms, or any context that requires a public link to an image file.
clawhub install image-hosting