Replicate APIを使用してGoogle Imagen 3でテキストプロンプトから画像を生成

上級

これは自動化ワークフローで、19個のノードを含みます。主にIf, Set, Wait, HttpRequest, StopAndErrorなどのノードを使用。 Replicate APIを通じてGoogle Imagen 3でテキストプロンプトから画像を生成

前提条件
  • ターゲットAPIの認証情報が必要な場合あり

カテゴリー

-
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
  "meta": {
    "instanceId": "568298fde06d3db80a2eea77fe5bf45f0c7bb898dea20b769944e9ac7c6c5a80",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "c8352756-4848-4a5f-8300-c1d8f5b25f50",
      "name": "「Test workflow」クリック時",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -20,
        -100
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "e4271dac-0119-493d-a481-286fa95c8920",
      "name": "停止とエラー",
      "type": "n8n-nodes-base.stopAndError",
      "position": [
        2160,
        200
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "4ce20910-01f0-48c2-927a-e8588f7a2fcf",
      "name": "待機",
      "type": "n8n-nodes-base.wait",
      "position": [
        1860,
        280
      ],
      "webhookId": "59d47606-522a-4eab-8baf-c0d67ec771be",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "21c0e61a-3d0f-4669-9875-077c7f6822da",
      "name": "エラーチェック",
      "type": "n8n-nodes-base.if",
      "position": [
        1660,
        120
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "7aeaa726-cbc9-4d10-90b2-8d2c7e729f02",
      "name": "画像URLを取得",
      "type": "n8n-nodes-base.set",
      "position": [
        1920,
        -220
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "2167258a-f51b-425b-ae8d-ca6e6c25623f",
      "name": "予測ステータスを確認",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1000,
        -100
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "da3b4773-d505-4526-8af7-289284302a34",
      "name": "予測用フィールドを設定",
      "type": "n8n-nodes-base.set",
      "position": [
        800,
        -100
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "4bfdadb4-0db8-45b9-b27c-e856a27d9725",
      "name": "一時停止",
      "type": "n8n-nodes-base.wait",
      "position": [
        600,
        -100
      ],
      "webhookId": "2008b7e9-6fbb-48b6-843a-c477d74fc319",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "7d4c2649-b444-4dbc-8401-ac89b98cd5cf",
      "name": "予測を作成",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        380,
        -100
      ],
      "parameters": {},
      "notesInFlow": false,
      "typeVersion": 4.2
    },
    {
      "id": "52ef99ec-6fcc-4ca1-9f5e-0cd550e129a3",
      "name": "プロンプトを設定",
      "type": "n8n-nodes-base.set",
      "position": [
        180,
        -100
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "925f4691-3da6-46c5-93c9-66a180ed7faf",
      "name": "付箋",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        160,
        -200
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "2a176375-a1ce-49d0-b74d-287b31b60b75",
      "name": "付箋1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        740,
        -200
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "010a33a7-d815-46b0-b618-3d67b0e04808",
      "name": "付箋2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1180,
        -200
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "be727fe6-6c2d-4084-987a-61c6e1c5dad2",
      "name": "付箋3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1620,
        0
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "c2f0605f-02f4-46fb-8971-6136a99e5c1e",
      "name": "成功を確認",
      "type": "n8n-nodes-base.if",
      "position": [
        1240,
        -80
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "741515e3-fe77-408f-8b69-ccb202241853",
      "name": "付箋4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2080,
        0
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "c9c03037-f315-4691-886c-ec5f0fcc9812",
      "name": "付箋5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1620,
        -280
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "01a34517-52f1-4960-b425-af528854bacd",
      "name": "付箋6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        160,
        -600
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "90864709-1be1-4af9-9625-4b7d159414df",
      "name": "付箋7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1180,
        -600
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "4ce20910-01f0-48c2-927a-e8588f7a2fcf": {
      "main": [
        [
          {
            "node": "da3b4773-d505-4526-8af7-289284302a34",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "4bfdadb4-0db8-45b9-b27c-e856a27d9725": {
      "main": [
        [
          {
            "node": "da3b4773-d505-4526-8af7-289284302a34",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "52ef99ec-6fcc-4ca1-9f5e-0cd550e129a3": {
      "main": [
        [
          {
            "node": "7d4c2649-b444-4dbc-8401-ac89b98cd5cf",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "21c0e61a-3d0f-4669-9875-077c7f6822da": {
      "main": [
        [
          {
            "node": "e4271dac-0119-493d-a481-286fa95c8920",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "4ce20910-01f0-48c2-927a-e8588f7a2fcf",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "c2f0605f-02f4-46fb-8971-6136a99e5c1e": {
      "main": [
        [
          {
            "node": "7aeaa726-cbc9-4d10-90b2-8d2c7e729f02",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "21c0e61a-3d0f-4669-9875-077c7f6822da",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "7d4c2649-b444-4dbc-8401-ac89b98cd5cf": {
      "main": [
        [
          {
            "node": "4bfdadb4-0db8-45b9-b27c-e856a27d9725",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "2167258a-f51b-425b-ae8d-ca6e6c25623f": {
      "main": [
        [
          {
            "node": "c2f0605f-02f4-46fb-8971-6136a99e5c1e",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "da3b4773-d505-4526-8af7-289284302a34": {
      "main": [
        [
          {
            "node": "2167258a-f51b-425b-ae8d-ca6e6c25623f",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "c8352756-4848-4a5f-8300-c1d8f5b25f50": {
      "main": [
        [
          {
            "node": "52ef99ec-6fcc-4ca1-9f5e-0cd550e129a3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
よくある質問

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

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

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

上級

有料ですか?

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

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

上級者向け、16ノード以上の複雑なワークフロー

作成者
Audun

Audun

@xqus

Transforming complexity into simplicity.

外部リンク
n8n.ioで表示

このワークフローを共有

カテゴリー

カテゴリー: 34