mcpField
P
portrait-enhancement

portrait-enhancement

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

portrait-enhancement について

portrait-enhancementは、each::senseを使ってポートレート写真をレタッチするスキルで、写真家やコンテンツ制作者などを対象とします。肌、目、照明、背景ぼかしなどを個別に調整でき、自然な仕上がりを促すプロンプトも案内します。

主な機能

  1. 01肌の質感を保つレタッチ
  2. 02歯と目の補正
  3. 03肌の blemish と照明の調整
  4. 04背景ぼかしと髪の補正
  5. 05メイク強調と軽い若返り
  6. 06複数工程のポートレート仕上げ

活用シーン

  1. 01企業向けヘッドショットの仕上げ
  2. 02SNS用ポートレートの調整
  3. 03複数の写真を一貫して編集

インストール

コマンドをコピーしてターミナルで実行します。

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

インストール後、Claude Code で/portrait-enhancementを入力して読み込まれたか確認します。

同梱ファイルreferences/SSE-EVENTS.md

詳細

ポートレートの補正

each::senseを使って、プロ品質のAIレタッチでポートレート写真を仕上げます。このスキルは、写真家、コンテンツクリエイター、写真をより美しく仕上げたいすべての方に、包括的なポートレート補正機能を提供します。

機能

  • 肌のスムージング:自然な肌の質感を保ちながらレタッチします
  • 歯のホワイトニング:自然さを保ちながら笑顔を明るくします
  • 目の補正:目を明るくし、シャープにして、透明感を高めます
  • 肌の blemish の除去:ニキビ、傷跡、肌の気になる部分を取り除きます
  • 照明の調整:強い影を補正し、スタジオ照明の効果を加えます
  • 背景のぼかし(ボケ):プロ品質の被写界深度効果を作成します
  • 髪の補正:髪にボリュームやツヤを加え、浮き毛を整えます
  • メイクの補正:自然なメイクを強調または追加します
  • 若返り:自然な印象を保ちながら、さりげなく年齢を感じさせにくくします
  • プロ仕上げ:ポートレートを仕上げる包括的なワークフローです

クイックスタート

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": "Enhance this portrait with natural skin smoothing and subtle teeth whitening"}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max",
    "image_urls": ["https://example.com/portrait.jpg"]
  }'

API の設定

設定値
エンドポイントPOST https://eachsense-agent.core.eachlabs.run/v1/chat/completions
Content-Typeapplication/json
Accepttext/event-stream
クライアントのタイムアウト最低10分

モードの選択

生成前にユーザーに尋ねてください。

「速くて低コストな仕上がりと、高品質な仕上がりのどちらがよいですか?」

モード最適な用途速度品質
max最終納品物、クライアント向けの制作物、印刷向け遅め最高
ecoクイックプレビュー、一括処理、下書き速め良好

使用例

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": "Apply natural skin smoothing to this portrait. Keep the skin texture realistic, reduce visible pores and fine lines, but avoid the plastic look. Maintain skin detail around eyes and lips."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max",
    "image_urls": ["https://example.com/portrait.jpg"]
  }'
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": "Whiten the teeth in this portrait photo. Make them bright but natural looking - not Hollywood white. Remove any yellow or staining while keeping the natural tooth shape and texture."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max",
    "image_urls": ["https://example.com/smile-portrait.jpg"]
  }'
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": "Enhance the eyes in this portrait. Brighten the whites, add subtle catchlights, increase iris clarity and color vibrancy, and reduce any redness or dark circles under the eyes. Keep it natural."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max",
    "image_urls": ["https://example.com/headshot.jpg"]
  }'
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": "Remove blemishes from this portrait including acne spots, small scars, and any temporary skin imperfections. Keep moles and natural beauty marks. Preserve the natural skin texture in treated areas."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max",
    "image_urls": ["https://example.com/portrait-blemishes.jpg"]
  }'
5. 照明の調整

照明の不具合を補正したり、スタジオ品質の照明効果を加えたりします。

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": "Fix the lighting in this portrait. It was taken in harsh midday sun with unflattering shadows. Apply soft studio-style lighting with gentle shadows, reduce harsh highlights on the forehead, and add subtle rim lighting for depth."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max",
    "image_urls": ["https://example.com/harsh-light-portrait.jpg"]
  }'
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": "Add a professional bokeh effect to this portrait. Blur the background with a smooth, creamy quality like an 85mm f/1.4 lens. Keep the subject perfectly sharp including hair edges. The blur should gradually increase with distance from the subject."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max",
    "image_urls": ["https://example.com/portrait-busy-background.jpg"]
  }'
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": "Enhance the hair in this portrait. Add natural-looking shine and healthy luster, tame flyaway hairs, add subtle volume at the crown, and make the hair color more vibrant. Keep the overall hairstyle unchanged."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max",
    "image_urls": ["https://example.com/portrait-hair.jpg"]
  }'
8. メイクの補正

既存のメイクを強調したり、控えめで自然なメイクを加えたりします。

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": "Enhance the makeup in this portrait photo. Add subtle contouring to define cheekbones, slightly darken and define the eyebrows, add a soft natural lip color, and apply light mascara effect to the lashes. Keep everything looking natural and not overdone."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max",
    "image_urls": ["https://example.com/natural-portrait.jpg"]
  }'
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": "Apply subtle age reduction to this portrait. Soften fine lines and wrinkles, reduce sagging under the eyes, lift the corners of the mouth slightly, and add a healthy glow to the skin. The result should look natural - like a well-rested version, not like a different person."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max",
    "image_urls": ["https://example.com/mature-portrait.jpg"]
  }'
10. ポートレートのプロ仕上げ

複数の補正を組み合わせた、プロ品質の包括的なレタッチワークフローです。

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": "Give this portrait a complete professional polish suitable for a corporate headshot. Apply natural skin smoothing, subtle teeth whitening, eye enhancement with catchlights, blemish removal, soft studio lighting, gentle background blur, and hair touch-up. The final result should look polished but authentic - suitable for LinkedIn or company website."}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "max",
    "image_urls": ["https://example.com/corporate-portrait.jpg"]
  }'

複数ターンでの補正ワークフロー

session_idを使って、ポートレートの補正を段階的に調整します。

# Initial enhancement
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": "Start with basic skin smoothing on this portrait"}],
    "model": "eachsense/beta",
    "stream": true,
    "session_id": "portrait-retouch-001",
    "image_urls": ["https://example.com/portrait.jpg"]
  }'

# Add teeth whitening
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 add subtle teeth whitening to the result"}],
    "model": "eachsense/beta",
    "stream": true,
    "session_id": "portrait-retouch-001"
  }'

# Add eye enhancement
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": "Enhance the eyes - brighten and add catchlights"}],
    "model": "eachsense/beta",
    "stream": true,
    "session_id": "portrait-retouch-001"
  }'

# Final background blur
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": "Finally, add a gentle background blur for a professional look"}],
    "model": "eachsense/beta",
    "stream": true,
    "session_id": "portrait-retouch-001"
  }'

複数のポートレートの一括処理

複数のポートレートを一貫した設定で処理します。

# Portrait 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": "Professional headshot retouch: natural skin smoothing, eye brightening, subtle background blur"}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "eco",
    "image_urls": ["https://example.com/team-member-1.jpg"]
  }'

# Portrait 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": "Professional headshot retouch: natural skin smoothing, eye brightening, subtle background blur"}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "eco",
    "image_urls": ["https://example.com/team-member-2.jpg"]
  }'

# Portrait 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": "Professional headshot retouch: natural skin smoothing, eye brightening, subtle background blur"}],
    "model": "eachsense/beta",
    "stream": true,
    "mode": "eco",
    "image_urls": ["https://example.com/team-member-3.jpg"]
  }'

ポートレート補正のプロンプトのヒント

ポートレートの補正を依頼する際は、次の内容を含めてください。

  1. 具体的な補正内容:何を補正するか(肌、目、歯など)
  2. 補正の強さ:控えめ、中程度、または強め
  3. 自然な仕上がり:現実的な結果を保つよう指定します
  4. 変更しない部分:そのまま残す特徴
  5. 用途:プロフィール写真、ソーシャルメディア、印刷など
プロンプトの構成例
"Apply [enhancement type] to this portrait.
[Specific instructions for the enhancement].
Keep [what to preserve].
The result should look [desired outcome] for [use case]."

ベストプラクティス

自然さを保つ
  • プロンプトには必ず「自然な仕上がり」または「リアル」と指定します
  • スムージングの際は、肌の質感を保つよう依頼します
  • 歯を白くしすぎたり、目を明るくしすぎたりしないようにします
  • プロフェッショナルな用途では、補正を控えめにします
本人らしさを保つ
  • 顔の骨格が変わるような修正を依頼しないでください
  • 自然なほくろや特徴的な部分を残します
  • 画像全体で肌の色合いを統一します
  • 自然なプロポーションを保ちます
技術上の考慮事項
  • 最良の結果を得るには、高解像度の元画像を用意してください
  • もともと照明のよい画像ほど、補正の効果が高まります
  • ほとんどの補正では、正面向きのポートレートが最適です
  • JPG形式とPNG形式に対応しています

エラー処理

エラー原因解決策
Failed to create prediction: HTTP 422残高不足eachlabs.ai でチャージしてください
コンテンツポリシー違反禁止されているコンテンツポートレートが適切であることを確認してください
タイムアウト複雑な高画質化クライアントのタイムアウトを最低10分に設定してください
顔が検出されない顔が見えない顔がはっきり見えるポートレートを用意してください

関連スキル

  • each-sense - コア API ドキュメント
  • face-swap - 顔の入れ替え機能
  • image-edit - 一般的な画像編集
  • image-generation - ポートレートをゼロから生成

コメント