mcpField
P
pet-portrait-generation

pet-portrait-generation

github.com/eachlabs创意与媒体44255 次安装今天更新
代码仓库

关于 pet-portrait-generation

该 skill 使用 each::sense 将宠物照片转换为多种风格的肖像和商品效果图,适合宠物主人及制作个性化礼品的人。支持写实、插画、复古绘画等风格,也可在多轮对话中调整作品。

主要功能

  1. 01生成写实宠物肖像
  2. 02制作卡通、动漫与水彩风格
  3. 03创作文艺复兴和流行艺术肖像
  4. 04为宠物添加服装或主题造型
  5. 05组合多只宠物制作合影
  6. 06生成纪念肖像与商品效果图

适用场景

  1. 01将宠物照片制作成水彩作品
  2. 02为宠物创作王室主题肖像
  3. 03制作多只宠物的家庭合影
  4. 04预览肖像印在马克杯上的效果

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/eachlabs/skills --skill pet-portrait-generation

安装后在 Claude Code 中输入/pet-portrait-generation确认已加载。

附带文件references/SSE-EVENTS.md

详细介绍

宠物肖像生成

使用 each::sense 生成精美的定制宠物肖像。将宠物照片转变为各种风格的精美艺术作品——从写实肖像到奇趣卡通插画、庄严的文艺复兴绘画和个性化产品。

功能

  • 写实肖像:专业影棚品质的宠物摄影
  • 卡通/插画:有趣、色彩丰富的宠物卡通形象
  • 文艺复兴/皇家风格:身着历史服饰的威严肖像
  • 水彩画:艺术风格的水彩宠物作品
  • 波普艺术:灵感源自波普艺术的大胆鲜艳肖像
  • 动漫风格:日式动漫风格的宠物角色
  • 服装肖像:穿着服装、制服和主题服饰的宠物
  • 多宠物肖像:包含多只宠物的全家福
  • 纪念肖像:为挚爱的宠物创作的纪念作品
  • 产品模型图:将宠物肖像呈现在马克杯、画布和商品上

快速开始

curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a beautiful portrait of my golden retriever in a classic oil painting style"}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/my-pet-photo.jpg"],
    "mode": "max"
  }'

用例示例

1. 写实宠物肖像

创作一幅专业影棚品质的肖像,展现宠物的个性。

curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a realistic professional portrait of my cat. Studio lighting, soft bokeh background in warm earth tones. Capture the eyes beautifully with catchlights. High-end pet photography style."}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/my-cat.jpg"],
    "mode": "max"
  }'
2. 卡通/插画风格宠物肖像

将宠物变成有趣、色彩丰富的卡通角色。

curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Transform my dog into a cute cartoon illustration. Disney/Pixar style with big expressive eyes, playful pose. Vibrant colors, clean lines. Include a fun background with bones and toys."}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/my-dog.jpg"],
    "mode": "max"
  }'
3. 文艺复兴/皇家风格宠物肖像

为宠物创作一幅威严的历史风格肖像,展现皇家风范。

curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a renaissance-style royal portrait of my cat. Dress them as a noble king with a golden crown, velvet robe with ermine fur trim, and royal jewelry. Classical oil painting style, dramatic lighting, ornate gilded frame effect. Regal and majestic."}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/my-cat.jpg"],
    "mode": "max"
  }'
4. 水彩宠物画

为宠物创作一幅精美的水彩作品。

curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Paint my dog in a loose, expressive watercolor style. Soft edges, beautiful color bleeds and washes. Capture their personality with artistic brush strokes. Pastel background with splashes of color. Fine art watercolor painting look."}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/my-dog.jpg"],
    "mode": "max"
  }'
5. 波普艺术宠物肖像

创作一幅灵感源自 Andy Warhol 的大胆鲜艳波普艺术肖像。

curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a pop art portrait of my cat in Andy Warhol style. Bold, bright contrasting colors - hot pink, electric blue, yellow, orange. High contrast, graphic style with halftone dots. Create a 2x2 grid with different color variations."}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/my-cat.jpg"],
    "mode": "max"
  }'
6. 动漫风格宠物肖像

将宠物变成可爱的动漫角色。

curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create an anime-style portrait of my dog. Japanese anime aesthetic with big sparkly eyes, soft shading, and cute kawaii expression. Include cherry blossoms in the background. Studio Ghibli inspired, warm and whimsical."}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/my-dog.jpg"],
    "mode": "max"
  }'
7. 穿着服装/装扮的宠物

为宠物穿上有趣的主题服饰和装扮。

curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a portrait of my cat as a space astronaut. Wearing a detailed NASA spacesuit with helmet, floating in space with Earth visible in the background. Stars and nebula. Realistic lighting, cinematic quality."}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/my-cat.jpg"],
    "mode": "max"
  }'
8. 多宠物全家福

创作一幅包含多只宠物的精美肖像。

# First request - provide all pet photos
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a family portrait with all three of my pets together. Classical portrait style with a warm, cozy living room background. Position them naturally as if they are posing together - the dog in the center, cats on either side. Soft, warm lighting, harmonious composition."}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": [
      "https://example.com/my-dog.jpg",
      "https://example.com/my-cat1.jpg",
      "https://example.com/my-cat2.jpg"
    ],
    "session_id": "pet-family-portrait",
    "mode": "max"
  }'

# Follow-up to adjust the portrait
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Can you make the background a garden setting with flowers instead? Keep the same arrangement of the pets."}],
    "model": "eachsense/beta",
    "stream": true,
    "session_id": "pet-family-portrait"
  }'
9. 宠物纪念肖像

为挚爱的宠物创作一幅感人的纪念肖像。

curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a memorial portrait for my beloved dog who passed away. Peaceful, serene setting with soft golden light. Include angel wings, subtle rainbow bridge elements in the background. Ethereal and comforting, celebrating their spirit. Beautiful tribute artwork."}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/my-dog.jpg"],
    "mode": "max"
  }'
10. 印有宠物肖像的产品(马克杯、画布)

生成将宠物肖像印在商品和产品上的模型图。

# Pet portrait on a mug
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a product mockup of my cat portrait on a white ceramic coffee mug. The portrait should be a cute illustrated style. Show the mug on a wooden table with coffee, cozy morning setting. Professional product photography."}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/my-cat.jpg"],
    "session_id": "pet-products",
    "mode": "max"
  }'

# Same pet portrait on canvas
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Now create a mockup of this same pet portrait as a canvas print hanging on a living room wall. Modern interior setting, natural lighting. Show it as wall art in context."}],
    "model": "eachsense/beta",
    "stream": true,
    "session_id": "pet-products"
  }'

最佳实践

照片质量提示
  • 照片清晰:使用光线充足、对焦清晰的宠物照片
  • 面部可见:确保宠物面部清晰可见,没有被遮挡
  • 多个角度:如需获得最佳效果,请提供不同角度的照片
  • 自然表情:抓拍照片通常能生成效果最好的肖像
提示词技巧
  • 明确说明风格:提及具体的艺术风格、艺术家或参考作品
  • 描述氛围:说明情绪基调(活泼、威严、宁静)
  • 指定颜色:要求使用特定的调色板或配色方案
  • 背景细节:描述所需的场景或背景
提示词结构示例
"Create a [style] portrait of my [pet type].
[Specific style details and references].
[Background/setting description].
[Mood and lighting].
[Any special elements or accessories]."

模式选择

生成前请询问用户:

“您想要快速实惠的效果,还是最高品质?”

模式最适合速度品质
max最终肖像、礼物、印刷品较慢最高
eco快速预览、风格探索较快良好

多轮创意迭代

使用 session_id 来优化和迭代肖像:

# Initial portrait
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create a renaissance portrait of my dog as a nobleman"}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/my-dog.jpg"],
    "session_id": "dog-portrait-project"
  }'

# Refine the result
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Make the costume more elaborate with gold embroidery and add a sword"}],
    "model": "eachsense/beta",
    "stream": true,
    "session_id": "dog-portrait-project"
  }'

# Try different variations
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create 2 more variations with different poses and backgrounds"}],
    "model": "eachsense/beta",
    "stream": true,
    "session_id": "dog-portrait-project"
  }'

风格探索

生成不同风格,找到最理想的效果:

# Explore different styles with eco mode for speed
curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create my cat portrait in oil painting style"}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/my-cat.jpg"],
    "mode": "eco"
  }'

curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create my cat portrait in minimalist line art style"}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/my-cat.jpg"],
    "mode": "eco"
  }'

curl -X POST https://eachsense-agent.core.eachlabs.run/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -H "Accept: text/event-stream" \
  -d '{
    "messages": [{"role": "user", "content": "Create my cat portrait in stained glass window style"}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/my-cat.jpg"],
    "mode": "eco"
  }'

错误处理

错误原因解决方案
Failed to create prediction: HTTP 422余额不足在 eachlabs.ai 充值
图像无法处理图像 URL 无效或无法访问确保图像 URL 可公开访问
超时生成过程复杂将客户端超时设置为至少 10 分钟
相似度较低源照片质量较差使用清晰、光线充足且面部可见的照片

相关技能

  • each-sense - 核心 API 文档
  • product-photo-generation - 电商产品照片
  • image-generation - 通用图像生成

评论

支持 Markdown