シンプルな OpenAI 画像ジェネレーター
初級
これは自動化ワークフローで、5個のノードを含みます。主にForm, FormTrigger, HttpRequest, ConvertToFileなどのノードを使用。 ユーザー向けのフレンドリーなフォームを使って OpenAI GPT-Image-1 モデルで画像を生成
前提条件
- •ターゲットAPIの認証情報が必要な場合あり
カテゴリー
-
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
"id": "AqWXpCre4fsPEkAH",
"meta": {
"instanceId": "7dfa146768a036d27a67d125f90ea637bfb301bd4fd25d0086548016421d44bd"
},
"name": "Simple OpenAI Image Generator",
"tags": [],
"nodes": [
{
"id": "526c24bc-3bc5-48c3-ae1e-5b0c0352d07f",
"name": "ファイルに変換",
"type": "n8n-nodes-base.convertToFile",
"position": [
440,
0
],
"parameters": {
"options": {},
"operation": "toBinary",
"sourceProperty": "data[0].b64_json"
},
"typeVersion": 1.1
},
{
"id": "20fdcc11-5e8a-4788-b3a3-e556996b59f7",
"name": "プロンプトとオプション",
"type": "n8n-nodes-base.formTrigger",
"position": [
0,
0
],
"webhookId": "b749da3f-836f-4996-a8ee-bc26f8677582",
"parameters": {
"options": {},
"formTitle": "OpenAI Image Generator",
"formFields": {
"values": [
{
"fieldLabel": "Prompt",
"placeholder": "Snow-covered mountain village in the Alps",
"requiredField": true
},
{
"fieldType": "dropdown",
"fieldLabel": "Image size",
"fieldOptions": {
"values": [
{
"option": "1024x1024"
},
{
"option": "1024x1536"
},
{
"option": "1536x1024"
}
]
},
"requiredField": true
}
]
}
},
"typeVersion": 2.2
},
{
"id": "eb220b1f-2091-492a-931f-1f2e344b32a6",
"name": "OpenAI 画像生成",
"type": "n8n-nodes-base.httpRequest",
"position": [
220,
0
],
"parameters": {
"url": "https://api.openai.com/v1/images/generations",
"method": "POST",
"options": {},
"sendBody": true,
"sendHeaders": true,
"authentication": "predefinedCredentialType",
"bodyParameters": {
"parameters": [
{
"name": "model",
"value": "gpt-image-1"
},
{
"name": "prompt",
"value": "={{ $json.Prompt }}"
},
{
"name": "n",
"value": "={{ 1 }}"
},
{
"name": "size",
"value": "={{ $json['Image size'] }}"
}
]
},
"nodeCredentialType": "openAiApi"
},
"credentials": {
"openAiApi": {
"id": "x1byAha0t8ltLIeW",
"name": "OpenAi account"
}
},
"typeVersion": 4.2
},
{
"id": "86718927-490e-4d97-9b0c-1118e2ccdcb6",
"name": "フォームに戻る",
"type": "n8n-nodes-base.form",
"position": [
660,
0
],
"webhookId": "745af4a8-ab3c-4267-aa8d-a8998cc534e5",
"parameters": {
"options": {
"formTitle": "Result"
},
"operation": "completion",
"respondWith": "returnBinary",
"completionTitle": "Result",
"completionMessage": "Here is the created image:"
},
"typeVersion": 1
},
{
"id": "a069f63f-139e-4157-a44a-448224f2c119",
"name": "付箋ノート",
"type": "n8n-nodes-base.stickyNote",
"position": [
-600,
0
],
"parameters": {
"width": 500,
"height": 620,
"content": "# Welcome to my Simple OpenAI Image Generator Workflow!\n\nThis workflow creates an image with the new OpenAI image model \"GPT-Image-1\" based on a form input.\n\n## This workflow has the following sequence:\n\n1. Form trigger (image prompt and image size input)\n2. Generate the Image via OpenAI API.\n3. Return the image to the input form for download.\n\n## The following accesses are required for the workflow:\n- OpenAI API access: [Documentation](https://docs.n8n.io/integrations/builtin/credentials/openai/)\n\nYou can contact me via LinkedIn, if you have any questions: https://www.linkedin.com/in/friedemann-schuetz"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "d2376df0-9c26-4723-9e97-07fc226e7a53",
"connections": {
"526c24bc-3bc5-48c3-ae1e-5b0c0352d07f": {
"main": [
[
{
"node": "86718927-490e-4d97-9b0c-1118e2ccdcb6",
"type": "main",
"index": 0
}
]
]
},
"20fdcc11-5e8a-4788-b3a3-e556996b59f7": {
"main": [
[
{
"node": "eb220b1f-2091-492a-931f-1f2e344b32a6",
"type": "main",
"index": 0
}
]
]
},
"eb220b1f-2091-492a-931f-1f2e344b32a6": {
"main": [
[
{
"node": "526c24bc-3bc5-48c3-ae1e-5b0c0352d07f",
"type": "main",
"index": 0
}
]
]
}
}
}よくある質問
このワークフローの使い方は?
上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。
このワークフローはどんな場面に適していますか?
初級
有料ですか?
このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。
関連ワークフロー
開発完了 - Veo3を使って商品広告を生成
AI動画広告生成にはGoogle Veo 3、Gemini、Airtableを活用しましょう
Code
Form
Wait
+
Code
Form
Wait
16 ノードIntuz
コンテンツ作成
Unipile と Google Sheets を使って LinkedIn 連絡依頼とアイシングメッセージを自動送信
Unipile と Google Sheets を使って LinkedIn 連絡先へのリクエストとフリーマーキングメッセージを自動送信
If
Set
Code
+
If
Set
Code
44 ノードPollupAI
その他
ナノ🍌
OpenRouterを通じてGemini AIを使用してファッションモデルのプロダクト広告を生成
Set
Code
Form
+
Set
Code
Form
10 ノードZakwan
コンテンツ作成
在线マーケティング周报
AIマーケティングレポート(Google Analytics、Google Ads、Meta Ads) - 経由メール/Telegram送信
Set
Code
Telegram
+
Set
Code
Telegram
51 ノードFriedemann Schuetz
マーケティング
画像のメタデータ自動ラベリング
自動化AI画像タグ付けとキーワードを画像ファイルに書き込み
Code
Merge
Google Drive
+
Code
Merge
Google Drive
9 ノードFriedemann Schuetz
人工知能
ヘアスタイルプレビュー出力
OpenAIベースのAIヘアスタイルプレビュージェネレーターとLINEグループ共有
Webhook
Form Trigger
Http Request
+
Webhook
Form Trigger
Http Request
8 ノードkote2
コンテンツ作成