Image Cog - AI Image Generation Powered by CellCog
Create professional images with AI - from single images to consistent character sets to product photography.
How to Use
For your first CellCog task in a session, read the cellcog skill for the full SDK reference — file handling, chat modes, timeouts, and more.
OpenClaw (fire-and-forget):
CODEBLOCK0
All agents except OpenClaw (blocks until done):
from cellcog import CellCogClient
client = CellCogClient(agent_provider="openclaw|cursor|claude-code|codex|...")
result = client.create_chat(
prompt="[your task prompt]",
task_label="my-task",
chat_mode="agent",
)
print(result["message"])
What Models Do We Use
| Model | Provider | Primary Use |
|---|
| Nano Banana 2 (Gemini 3.1 Flash Image) | Google | Default image generation — photorealistic scenes, complex compositions, text rendering, multi-turn character consistency |
| GPT Image 1.5 |
OpenAI | Transparent background images — logos, stickers, product cutouts, overlay graphics |
|
Recraft | Recraft AI | Scalable vector illustrations (SVG) and icon generation |
Nano Banana 2 is the default model for all image generation. CellCog's agents intelligently route to other models when the task calls for it — for example, transparent PNGs are automatically handled by GPT Image 1.5, and vector/icon requests go to Recraft. If you'd prefer a specific model, just mention it in your prompt (e.g., "use ChatGPT/OpenAI image generation").
What Images You Can Create
Single Image Creation
Generate any image from a text description:
- - Scenes: "A cozy coffee shop interior with morning light streaming through windows"
- Portraits: "Professional headshot of a confident woman in business attire"
- Products: "Minimalist product shot of a white sneaker on a marble surface"
- Abstract: "Geometric abstract art in navy and gold"
- Nature: "Misty mountain landscape at sunrise with a lone hiker"
Image Editing
Transform existing images:
- - Style Transfer: "Transform this photo into a watercolor painting"
- Background Removal: "Remove the background and place on a clean white backdrop"
- Enhancement: "Enhance the colors and add dramatic lighting"
- Modification: "Change the person's outfit to a red dress"
Consistent Characters
Create multiple images of the same character in different scenarios:
- - Character Series: "Create a tech entrepreneur character, then show them: 1) At their desk coding, 2) Presenting to investors, 3) Celebrating a product launch"
- Mascot Variations: "Design a friendly robot mascot, then create versions for: welcome page, error page, success message, loading screen"
- Story Sequences: "Create a main character, then illustrate them in 5 scenes of a journey"
This is powerful for:
- - Comic strips and storyboards
- Marketing campaigns with consistent characters
- Video frame generation
- Brand mascots across contexts
Product Photography Style
Professional product visuals:
- - Hero Shots: "Product hero shot of a smartwatch on a gradient background"
- Lifestyle Shots: "Smartphone being used by a person in a modern living room"
- Flat Lays: "Flat lay of skincare products with botanical elements"
- 360 Views: "Multiple angles of a leather handbag - front, side, back, detail"
Sets of Related Images
Multiple cohesive images for campaigns or collections:
- - Social Media Sets: "5 Instagram post images for a fitness brand - consistent style, varied content"
- Website Heroes: "3 hero images for a SaaS landing page - professional, modern, tech-focused"
- Ad Variations: "4 versions of a product ad with different backgrounds and moods"
- Blog Illustrations: "Set of 6 illustrations for a blog post about productivity tips"
Reference-Based Generation
Use existing images as references for style, character, or composition:
- - Style Matching: "Create a new image in the same artistic style as this reference"
- Character Consistency: "Using this person as reference, create a new scene with them hiking"
- Brand Alignment: "Create product images matching this brand's visual style"
- Composition Reference: "Create a similar composition but with different subjects"
Image Specifications
| Aspect | Options |
|---|
| Aspect Ratios | 1:1 (square), 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 21:9 |
| Sizes |
1K (~1024px), 2K (~2048px), 4K (~4096px) |
|
Styles | Photorealistic, illustration, watercolor, oil painting, anime, digital art, vector |
|
Formats | PNG (default) |
Size recommendations:
- - 1K: Quick iterations, thumbnails, social media posts, drafts
- 2K: Standard web content, presentations, marketing materials
- 4K: Hero images, print materials, final deliverables where detail matters
When to Use Agent Team Mode
For image generation, chat_mode="agent team" is recommended for:
- - Complex scenes requiring multiple elements
- Consistent character series
- Reference-based generation requiring analysis
- Sets of related images
For simple single images, chat_mode="agent" can work faster.
Example Image Prompts
Professional headshot:
"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 photography:
"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."
Consistent character set:
"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
- In a video call meeting, explaining something
- At a coffee shop with laptop, thinking
- Celebrating with team, high-fiving
Keep the character exactly consistent across all images."
Social media set:
"Create 5 Instagram posts for a plant-based meal delivery service:
- 1. Colorful Buddha bowl from above
- Happy person unpacking delivery
- Meal prep containers arranged neatly
- Close-up of fresh ingredients
- Before/after showing ingredients to finished dish
Style: bright, fresh, appetizing, consistent warm color grading. 1:1 square format."
Style transfer:
"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."
Tips for Better Images
- 1. Be descriptive: "Woman in office" is vague. "Confident woman in her 40s, silver blazer, modern glass-walled office, warm afternoon light" is better.
- 2. Specify style: "Photorealistic", "digital illustration", "watercolor", "minimalist vector".
- 3. Describe lighting: "Soft natural light", "dramatic side lighting", "golden hour glow", "studio lighting".
- 4. Include mood: "Professional and confident", "warm and inviting", "energetic and vibrant".
- 5. Mention composition: "Rule of thirds", "centered symmetry", "close-up", "wide establishing shot".
- 6. For consistency: When creating character series, describe the character in detail first, then reference "the same character" in subsequent prompts.
If CellCog is not installed
Run /cellcog-setup (or /cellcog:cellcog-setup depending on your tool) to install and authenticate.
OpenClaw users: Run clawhub install cellcog instead.
Manual setup: pip install -U cellcog and set CELLCOG_API_KEY. See the cellcog skill for SDK reference.
Image Cog - 由CellCog驱动的AI图像生成
使用AI创建专业图像——从单张图片到一致的角色系列再到产品摄影。
使用方法
在会话中首次执行CellCog任务时,请阅读cellcog技能以获取完整的SDK参考——文件处理、聊天模式、超时等。
OpenClaw(即发即忘模式):
python
result = client.create_chat(
prompt=[你的任务提示词],
notifysessionkey=agent:main:main,
task_label=my-task,
chat_mode=agent,
)
除OpenClaw外的所有代理(阻塞直至完成):
python
from cellcog import CellCogClient
client = CellCogClient(agent_provider=openclaw|cursor|claude-code|codex|...)
result = client.create_chat(
prompt=[你的任务提示词],
task_label=my-task,
chat_mode=agent,
)
print(result[message])
我们使用哪些模型
| 模型 | 提供商 | 主要用途 |
|---|
| Nano Banana 2(Gemini 3.1 Flash图像) | Google | 默认图像生成——逼真场景、复杂构图、文字渲染、多轮角色一致性 |
| GPT Image 1.5 |
OpenAI | 透明背景图像——标志、贴纸、产品抠图、叠加图形 |
|
Recraft | Recraft AI | 可缩放矢量插图(SVG)和图标生成 |
Nano Banana 2是所有图像生成的默认模型。当任务需要时,CellCog的代理会智能地将请求路由到其他模型——例如,透明PNG由GPT Image 1.5自动处理,矢量/图标请求则发送至Recraft。如果你偏好特定模型,只需在提示词中提及即可(例如,使用ChatGPT/OpenAI图像生成)。
你可以创建哪些图像
单张图像创建
根据文字描述生成任意图像:
- - 场景:一间舒适的咖啡店内,晨光透过窗户洒入
- 肖像:一位穿着商务装的自信女性的专业头像
- 产品:白色运动鞋在大理石表面上的极简产品照
- 抽象:海军蓝和金色几何抽象艺术
- 自然:日出时薄雾笼罩的山景,一名孤独的徒步者
图像编辑
对现有图像进行变换:
- - 风格迁移:将这张照片转换为水彩画
- 背景移除:移除背景并放置在干净的白色背景上
- 增强:增强色彩并添加戏剧性灯光
- 修改:将人物的服装改为红色连衣裙
一致角色
在不同场景中创建同一角色的多张图像:
- - 角色系列:创建一个科技创业者角色,然后展示他们: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) |
|
风格 | 逼真、插画、水彩、油画、动漫、数字艺术、矢量 |
|
格式 | PNG(默认) |
尺寸建议:
- - 1K:快速迭代、缩略图、社交媒体帖子、草稿
- 2K:标准网页内容、演示文稿、营销材料
- 4K:主图、印刷材料、注重细节的最终交付物
何时使用代理团队模式
对于图像生成,建议在以下情况下使用chat_mode=agent team:
- - 需要多个元素的复杂场景
- 一致的角色系列
- 需要分析的基于参考的生成
- 相关图像集
对于简单的单张图像,chat_mode=agent可以更快完成。
示例图像提示词
专业头像:
创建一位30多岁友好亚洲女性的专业头像,穿着海军蓝西装外套,柔和的工作室灯光,中性灰色背景,自信但平易近人的表情。1:1正方形,2K质量,逼真风格。
产品摄影:
高端无线耳机充电盒的产品照,哑光黑色表面,放在反光深色表面上,带有微妙的蓝色重点灯光。极简主义,高端科技美学。4:3横版,4K用于主图。
一致角色系列:
创建一个角色:年轻黑人男性软件开发者,休闲风格戴眼镜,友好态度。然后创建4张图像:
- 1. 在站立式办公桌前工作,多台显示器
- 在视频会议中,正在解释某事
- 在咖啡店用笔记本电脑,思考中
- 与团队庆祝,击掌
在所有图像中保持角色完全一致。
社交媒体套装:
为植物性餐食配送服务创建5张Instagram帖子:
- 1. 色彩缤纷的佛陀碗俯拍
- 开心的人打开配送包裹
- 整齐排列的餐食准备容器
- 新鲜食材的特写
- 食材到成品的对比图
风格:明亮、新鲜、开胃、一致的暖色调。1:1正方形格式。
风格迁移:
将这张上传的城市街道照片转换为吉卜力工作室动漫风格插画。保持构图和元素,但应用吉卜力特有的温暖感、柔和的云朵和奇幻细节。
生成更好图像的技巧
- 1. 描述要详细:办公室里的女性过于模糊。40多岁自信的女性,银色西装外套,现代玻璃墙办公室,温暖的午后光线更好。
- 2. 指定风格:逼真、数字插画、水彩、极简矢量。
- 3. 描述光线:柔和自然光、戏剧性侧光、黄金时刻光芒、工作室灯光。
- 4. 包含氛围:专业自信、温暖宜人、充满活力。
- 5. 提及构图:三分法、居中对称、特写、广角定场镜头。
- 6. 保持一致性:创建角色系列时,先详细描述角色,然后在后续提示词中引用同一角色。
如果未安装CellCog
运行/cellcog-setup(或根据你的工具运行/cellcog:cellcog-setup)进行安装和认证。
OpenClaw用户: 改为运行clawhub install cellcog。
手动安装: pip install -U cellcog并设置CELLCOGAPIKEY。请参阅cellcog技能获取SDK参考。