mcpField
I
image-relighting

image-relighting

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

image-relighting について

image-relightingは、each::senseで被写体を保ちながら写真の光を変えるスキルです。スタジオ、自然光、ドラマチック、クリエイティブ、シネマ風の表現に加え、影の調整や新しい背景に合わせた光の調整にも対応します。

主な機能

  1. 01スタジオやポートレートのライティング
  2. 02自然光・ゴールデンアワー・窓光の追加
  3. 03ドラマチック・ネオン・シネマ風の表現
  4. 04影を和らげて暗部を補光
  5. 05背景に合わせた被写体のライティング

活用シーン

  1. 01日常のポートレートをスタジオ風に仕上げる
  2. 02屋外写真に夕日の光を加える
  3. 03自撮りの強い影を和らげる
  4. 04合成背景に人物の光を合わせる

インストール

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

$npx skills add https://github.com/eachlabs/skills --skill image-relighting

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

同梱ファイル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": "Add professional studio lighting to this portrait - soft key light from the left with subtle fill"}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/portrait.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": "Add professional studio lighting to this portrait. Use a soft key light from 45 degrees left, fill light from the right to reduce shadows, and a subtle hair light from behind. Keep the background dark for a classic studio look."}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/portrait.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": "Relight this photo with golden hour lighting. Add warm, soft sunlight coming from the side, creating a beautiful golden glow on the skin. Include subtle lens flare and that magical sunset atmosphere."}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/outdoor-photo.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": "Apply dramatic side lighting to this portrait. Strong directional light from the left creating deep shadows on the right side of the face. High contrast, moody atmosphere, like a film noir character portrait."}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/headshot.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": "Relight this photo with soft, diffused lighting. Like shooting through a large softbox or on an overcast day. Even, flattering light with minimal shadows, perfect for beauty photography. Keep the skin looking natural and glowing."}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/beauty-shot.jpg"],
    "mode": "max"
  }'
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": "Add neon lighting to this portrait. Cyberpunk style with pink/magenta light from the left and blue/cyan light from the right. Create that futuristic nightclub vibe with vibrant colored reflections on the skin and a dark background."}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/model-photo.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": "Relight this portrait with natural window light. Soft, directional daylight coming from a large window on the left side. Create gentle shadows and that beautiful, airy natural light photographers love. Slightly cool color temperature."}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/indoor-portrait.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": "Apply ring light effect to this selfie. Even, frontal lighting with that signature circular catchlight in the eyes. Minimize shadows under the nose and chin, create that beauty influencer look with glowing, even skin illumination."}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/selfie.jpg"],
    "mode": "max"
  }'
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": "Apply cinematic lighting to this portrait. Hollywood movie style with strong key light, deep shadows, and subtle rim light separating the subject from background. Moody and atmospheric like a scene from a thriller. Add subtle haze/atmosphere in the air."}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/actor-photo.jpg"],
    "mode": "max"
  }'
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": "Remove the harsh shadows from this photo. The midday sun created unflattering dark shadows under the eyes and nose. Relight it with softer, more even lighting while keeping a natural outdoor look. Fill in the shadow areas without making it look flat."}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/harsh-shadow-photo.jpg"],
    "mode": "max"
  }'
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": "Relight this person to match the beach sunset background. The subject was photographed indoors with flat lighting, but needs to look like they are actually on the beach during golden hour. Match the warm color temperature, add rim lighting from the setting sun behind them, and ensure the shadows are consistent with the background lighting direction."}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": [
      "https://example.com/subject-indoor.jpg",
      "https://example.com/beach-sunset-background.jpg"
    ],
    "mode": "max"
  }'

複数ターンでのライティング調整

session_id を使うと、複数のリクエストにわたってライティングを繰り返し調整できます。

# Initial relighting
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 dramatic studio lighting to this portrait with strong shadows"}],
    "model": "eachsense/beta",
    "stream": true,
    "image_urls": ["https://example.com/portrait.jpg"],
    "session_id": "lighting-session-001"
  }'

# 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": "The shadows are too harsh. Can you soften them slightly while keeping the dramatic feel? Also add a subtle blue rim light on the shadow side."}],
    "model": "eachsense/beta",
    "stream": true,
    "session_id": "lighting-session-001"
  }'

# Try a variation
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 another version with warmer color temperature, like tungsten lighting"}],
    "model": "eachsense/beta",
    "stream": true,
    "session_id": "lighting-session-001"
  }'

モードの選択

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

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

モードおすすめの用途速度品質
max最終納品物、クライアント向け制作、ポートフォリオ画像遅め最高
eco簡易プレビュー、ライティング案のテスト、バッチ処理速め良好

最適な結果を得るためのプロンプトのヒント

リライティングを依頼する際は、最適な結果を得るために、次の詳細を含めてください。

  1. 光の方向:光がどこから当たるかを指定します(左、右、上、後ろ)
  2. 光の質:硬い/柔らかい、拡散、鏡面反射
  3. 色温度:暖色(ゴールデン)、寒色(ブルー)、ニュートラル、または具体的な色
  4. 影の強さ:濃い影、控えめな影、影なし
  5. 雰囲気/ムード:ドラマチック、ロマンチック、プロフェッショナル、エッジの効いた雰囲気
  6. 参考スタイル:「Vogue のエディトリアルのように」や「フィルム・ノワール風」
プロンプトの構成例
"Relight this [subject type] with [lighting style].
Light coming from [direction] with [quality] shadows.
[Color temperature] color temperature.
Mood: [atmosphere description].
[Additional requirements]"

エラー処理

エラー原因解決策
Failed to create prediction: HTTP 422残高不足eachlabs.ai でチャージしてください
コンテンツポリシー違反禁止されているコンテンツ画像がコンテンツポリシーに準拠していることを確認してください
タイムアウト複雑な生成クライアントのタイムアウトを最低 10 分に設定してください
照明の結果が不十分曖昧なプロンプト光の方向、質、雰囲気をより具体的に指定してください

関連スキル

  • each-sense - コア API ドキュメント
  • product-photo-generation - EC 商品のライティング
  • portrait-enhancement - ポートレートのレタッチと補正
  • background-replacement - 照明を合わせて背景を変更

コメント