mcpField
P
pet-portrait-generation

pet-portrait-generation

github.com/eachlabsクリエイティブ・メディア44255 回インストール今日更新
リポジトリ

pet-portrait-generation について

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 - E コマース向けの商品写真
  • image-generation - 一般的な画像生成

コメント