Fire V Sekai.mediapipeラベラーによる画像生成

中級

これはContent Creation, AI Summarization分野の自動化ワークフローで、9個のノードを含みます。主にIf, Set, Code, Wait, HttpRequestなどのノードを使用。 Replicate API を使って Mediapipe Blendshape ラベラーを用いた画像分析

前提条件
  • ターゲットAPIの認証情報が必要な場合あり
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
  "id": "wRLKhqUiZr5LUfJr",
  "meta": {
    "instanceId": "6200c8a3bb4b33a470de8038f3ac6dde523cbcd4c78ce87d817a034e96ed5532"
  },
  "name": "Fire V Sekai.mediapipe Labeler Image Generator",
  "tags": [
    {
      "id": "JnEqJJmJ9wvCFwLu",
      "name": "AI"
    },
    {
      "id": "K4UWXFkxSidQvvkR",
      "name": "Image"
    }
  ],
  "nodes": [
    {
      "id": "93a834d4-283b-4591-863d-36d92f99248d",
      "name": "実行時",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        720,
        380
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "3f36e2fc-a51e-4727-a049-7c826f3e7e3b",
      "name": "APIキーを設定",
      "type": "n8n-nodes-base.set",
      "position": [
        940,
        380
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "64cd57c7-2224-48a6-88df-c37b310f8eb3",
              "name": "replicate_api_key",
              "type": "string",
              "value": "YOUR_REPLICATE_API_KEY"
            }
          ]
        }
      },
      "typeVersion": 3.3
    },
    {
      "id": "c5c1e12f-39d5-4b9b-88f0-2f60d732de81",
      "name": "予測を作成",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1160,
        380
      ],
      "parameters": {
        "url": "https://api.replicate.com/v1/predictions",
        "method": "POST",
        "options": {
          "timeout": 60000
        },
        "jsonBody": "{\n  \"version\": \"f6cda62f5bdf02558ef9f9d23512a296db9927b2b93b6c57295f3e9d6ae696fa\",\n  \"input\": {\n    \"media_path\": \"https://example.com/input.image\",\n    \"max_people\": 100,\n    \"export_train\": true,\n    \"frame_sample_rate\": 1\n  }\n}",
        "sendBody": true,
        "sendHeaders": true,
        "specifyBody": "json",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "headerParameters": {
          "parameters": [
            {
              "name": "Authorization",
              "value": "={{ 'Bearer ' + $('Set API Key').item.json.replicate_api_key }}"
            },
            {
              "name": "Content-Type",
              "value": "application/json"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "d8a5e6e1-8e95-49f3-83d5-4729c8f3b91a",
      "name": "予測IDを抽出",
      "type": "n8n-nodes-base.code",
      "position": [
        1380,
        380
      ],
      "parameters": {
        "mode": "runOnceForEachItem",
        "jsCode": "// Extract prediction ID and initial status\\nconst prediction = $input.item.json;\\nconst predictionId = prediction.id;\\nconst initialStatus = prediction.status;\\n\\n// Store the prediction ID for polling\\nreturn {\\n  predictionId: predictionId,\\n  status: initialStatus,\\n  predictionUrl: `https://api.replicate.com/v1/predictions/${predictionId}`\\n};"
      },
      "typeVersion": 2
    },
    {
      "id": "e5c7d8f2-1234-4567-890a-bcdef1234567",
      "name": "待機",
      "type": "n8n-nodes-base.wait",
      "position": [
        1600,
        380
      ],
      "parameters": {
        "unit": "seconds",
        "amount": 2
      },
      "typeVersion": 1
    },
    {
      "id": "f6d8e9f3-2345-5678-901b-cdef23456789",
      "name": "予測ステータスを確認",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1820,
        380
      ],
      "parameters": {
        "url": "={{ $json.predictionUrl }}",
        "options": {},
        "sendHeaders": true,
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "headerParameters": {
          "parameters": [
            {
              "name": "Authorization",
              "value": "={{ 'Bearer ' + $('Set API Key').item.json.replicate_api_key }}"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "a7e9f0a4-3456-6789-012c-def345678901",
      "name": "完了かチェック",
      "type": "n8n-nodes-base.if",
      "position": [
        2040,
        380
      ],
      "parameters": {
        "conditions": {
          "boolean": [
            {
              "value1": "={{ $json.status }}",
              "value2": "succeeded",
              "operation": "equal"
            }
          ]
        }
      },
      "typeVersion": 1
    },
    {
      "id": "b8f0a1b5-4567-7890-123d-ef4567890123",
      "name": "結果を処理",
      "type": "n8n-nodes-base.code",
      "position": [
        2260,
        280
      ],
      "parameters": {
        "mode": "runOnceForEachItem",
        "jsCode": "// Process the completed prediction\\nconst result = $input.item.json;\\n\\nreturn {\\n  status: result.status,\\n  output: result.output,\\n  metrics: result.metrics,\\n  created_at: result.created_at,\\n  completed_at: result.completed_at,\\n  model: 'fire/v-sekai.mediapipe-labeler',\\n  image_url: result.output\\n};"
      },
      "typeVersion": 2
    },
    {
      "id": "71c5e20e-17f6-4cc5-ac38-6c12bb1e2154",
      "name": "付箋",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        660,
        240
      ],
      "parameters": {
        "width": 437.91315553899017,
        "height": 350.56206896551737,
        "content": "## Fire V Sekai.mediapipe Labeler Image Generator\\n\\nThis workflow uses the **fire/v-sekai.mediapipe-labeler** model from Replicate to generate image content.\\n\\n### Setup\\n1. Add your Replicate API key\\n2. Configure the input parameters\\n3. Run the workflow\\n\\n### Model Details\\n- **Type**: Image Generation\\n- **Provider**: fire\\n- **Required Fields**: media_path"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "98234567-89ab-cdef-0123-456789abcdef",
  "connections": {
    "e5c7d8f2-1234-4567-890a-bcdef1234567": {
      "main": [
        [
          {
            "node": "f6d8e9f3-2345-5678-901b-cdef23456789",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "3f36e2fc-a51e-4727-a049-7c826f3e7e3b": {
      "main": [
        [
          {
            "node": "c5c1e12f-39d5-4b9b-88f0-2f60d732de81",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "a7e9f0a4-3456-6789-012c-def345678901": {
      "main": [
        [
          {
            "node": "b8f0a1b5-4567-7890-123d-ef4567890123",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "e5c7d8f2-1234-4567-890a-bcdef1234567",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "c5c1e12f-39d5-4b9b-88f0-2f60d732de81": {
      "main": [
        [
          {
            "node": "d8a5e6e1-8e95-49f3-83d5-4729c8f3b91a",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "d8a5e6e1-8e95-49f3-83d5-4729c8f3b91a": {
      "main": [
        [
          {
            "node": "e5c7d8f2-1234-4567-890a-bcdef1234567",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "93a834d4-283b-4591-863d-36d92f99248d": {
      "main": [
        [
          {
            "node": "3f36e2fc-a51e-4727-a049-7c826f3e7e3b",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "f6d8e9f3-2345-5678-901b-cdef23456789": {
      "main": [
        [
          {
            "node": "a7e9f0a4-3456-6789-012c-def345678901",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
よくある質問

このワークフローの使い方は?

上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。

このワークフローはどんな場面に適していますか?

中級 - コンテンツ作成, AI要約

有料ですか?

このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。

ワークフロー情報
難易度
中級
ノード数9
カテゴリー2
ノードタイプ7
難易度説明

経験者向け、6-15ノードの中程度の複雑さのワークフロー

作成者
Yaron Been

Yaron Been

@yaron-nofluff

Building AI Agents and Automations | Growth Marketer | Entrepreneur | Book Author & Podcast Host If you need any help with Automations, feel free to reach out via linkedin: https://www.linkedin.com/in/yaronbeen/ And check out my Youtube channel: https://www.youtube.com/@YaronBeen/videos

外部リンク
n8n.ioで表示

このワークフローを共有

カテゴリー

カテゴリー: 34