介绍
# Image Cog - AI Image Generation Powered by CellCog
使用 AI 创建专业图像——从单张图像到一致的角色集,再到产品摄影。
---
## 前置条件
此技能需要 `cellcog` 技能来进行 SDK 设置和 API 调用。
```bash clawhub install cellcog ```
**请先阅读 cellcog 技能**以了解 SDK 设置。本技能将向您展示其可能性。
**快速模式 (v1.0+):** ```python # Fire-and-forget - returns immediately result = client.create_chat( prompt="[your image request]", notify_session_key="agent:main:main", task_label="image-task", chat_mode="agent" # Use "agent" for simple images, "agent team" for complex ) # Daemon notifies you when complete - do NOT poll ```
---
## 您可以创建的图像类型
### 单张图像创建
根据文本描述生成任意图像:
- **场景**:“晨光透过窗户射入的舒适咖啡店内景” - **肖像**:“身着商务装的自信女性的专业头像” - **产品**:“大理石表面上白色运动鞋的极简产品照” - **抽象**:“海军蓝与金色的几何抽象艺术” - **自然**:“日出时薄雾笼罩的山景,一名孤独的徒步者”
### 图像编辑
转换现有图像:
- **风格迁移**:“将这张照片转换为水彩画” - **背景移除**:“移除背景并置于干净的白色背景上” - **增强**:“增强色彩并添加戏剧性光照” - **修改**:“将人物的服装改为红色连衣裙”
### 一致性角色
在不同场景中创建同一角色的多张图像:
- **角色系列**:“创建一个科技创业者角色,然后展示他们:1) 在办公桌前写代码,2) 向投资人做演示,3) 庆祝产品发布” - **吉祥物变体**:“设计一个友好的机器人吉祥物,然后为以下场景创建版本:欢迎页面、错误页面、成功消息、加载屏幕” - **故事序列**:“创建一个主角,然后描绘他们在旅程的 5 个场景中的样子”
这非常适用于: - 连环漫画和故事板 - 拥有一致角色的营销活动 - 视频帧生成 - 跨语境的品牌吉祥物
### 产品摄影风格
专业的产品视觉图:
- **主图**:“智能手表在渐变背景上的产品主图” - **生活照**:“现代客厅中使用智能手机的人” - **平铺图**:“带有植物元素的护肤产品平铺图” - **360 度视图**:“皮质手提包的多角度视图——正面、侧面、背面、细节”
### 相关图像集
用于活动或系列的多个连贯图像:
- **社交媒体集**:“健身品牌的 5 张 Instagram 帖子图片——风格一致,内容多样” - **网站主图**:“SaaS 落地页的 3 张主图——专业、现代、科技感” - **广告变体**:“具有不同背景和氛围的产品广告的 4 个版本” - **博客插图**:“关于生产力技巧的博客文章的一套 6 张插图”
### 基于参考的生成
使用现有图像作为风格、角色或构图的参考:
- **风格匹配**:“以与该参考相同的艺术风格创建一张新图像” - **角色一致性**:“以此人为参考,创建他们在徒步旅行的新场景” - **品牌对齐**:“创建符合该品牌视觉风格的产品图像” - **构图参考**:“创建相似的构图,但使用不同的主体”
---
## 图像规格
| 方面 | 选项 | |--------|---------| | **纵横比** | 1:1 (正方形), 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 21:9 | | **尺寸** | 1K (~1024px), 2K (~2048px), 4K (~4096px) | | **风格** | Photorealistic, illustration, watercolor, oil painting, anime, digital art, vector | | **格式** | PNG (默认) |
**尺寸建议:** - **1K**:快速迭代、缩略图、社交媒体帖子、草稿 - **2K**:标准网页内容、演示文稿、营销材料 - **4K**:主图、印刷材料、注重细节的最终交付物
---
## 何时使用代理团队模式
对于图像生成,建议使用 `chat_mode="agent team"` 的情况包括: - 需要多个元素的复杂场景 - 一致性角色系列 - 需要分析的基于参考的生成 - 相关图像集
对于简单的单张图像,`chat_mode="agent"` 可能会更快。
---
## 示例图像提示词
**专业头像:** > “Create a professional headshot of a friendly Asian woman in her 30s, wearing a navy blazer, soft studio lighting, neutral gray background, confident but approachable expression. 1:1 square, 2K quality, photorealistic.”
**产品摄影:** > “Product shot of a premium wireless earbuds case, matte black finish, on a reflective dark surface with subtle blue accent lighting. Minimalist, high-end tech aesthetic. 4:3 landscape, 4K for hero image.”
**一致性角色集:** > “Create a character: young Black male software developer, casual style with glasses, friendly demeanor. Then create 4 images: > 1. Working at a standing desk with multiple monitors > 2. In a video call meeting, explaining something > 3. At a coffee shop with laptop, thinking > 4. Celebrating with team, high-fiving > Keep the character exactly consistent across all images.”
**社交媒体集:** > “Create 5 Instagram posts for a plant-based meal delivery service: > 1. Colorful Buddha bowl from above > 2. Happy person unpacking delivery > 3. Meal prep containers arranged neatly > 4. Close-up of fresh ingredients > 5. Before/after showing ingredients to finished dish > Style: bright, fresh, appetizing, consistent warm color grading. 1:1 square format.”
**风格迁移:** > “Transform this uploaded photo of a city street into a Studio Ghibli anime style illustration. Keep the composition and elements but apply the characteristic Ghibli warmth, soft clouds, and whimsical details.”
---
## 获取更好图像的技巧
1. **描述具体**:“办公室里的女性”很模糊。“一位 40 多岁的自信女性,身穿银色西装,身处现代玻璃幕墙办公室中,温暖的午后光线”会更好。
2. **指定风格**:“Photorealistic”、“digital illustration”、“watercolor”、“minimalist vector”。
3. **描述光照**:“Soft natural light”、“dramatic side lighting”、“golden hour glow”、“studio lighting”。
4. **包含情绪**:“Professional and confident”、“warm and inviting”、“energetic and vibrant”。
5. **提及构图**:“Rule of thirds”、“centered symmetry”、“close-up”、“wide establishing shot”。
6. **保持一致性**:创建角色系列时,请先详细描述角色,然后在后续提示词中引用“同一角色”。