Plátano

Intermedio

Este es unMiscellaneous, Multimodal AIflujo de automatización del dominio deautomatización que contiene 10 nodos.Utiliza principalmente nodos como If, Set, Wait, FormTrigger, HttpRequest. Usar la API KIE.AI Nano Banana para generar imágenes de IA coherentes con los personajes

Requisitos previos
  • Pueden requerirse credenciales de autenticación para la API de destino
Vista previa del flujo de trabajo
Visualización de las conexiones entre nodos, con soporte para zoom y panorámica
Exportar flujo de trabajo
Copie la siguiente configuración JSON en n8n para importar y usar este flujo de trabajo
{
  "id": "awXlFcUvfBcnAfxo",
  "meta": {
    "instanceId": "984a3a573b2ceefaa62e65118c88bad010712c3575386e48d0fa024f616c2747"
  },
  "name": "banana",
  "tags": [],
  "nodes": [
    {
      "id": "c9f57cdf-e8d4-4612-a015-005af994b753",
      "name": "Nota adhesiva6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1024,
        16
      ],
      "parameters": {
        "width": 780,
        "height": 152,
        "content": "## STEP 1 - GET API KEY (YOURAPIKEY)\n- Create an account [here](https://kie.ai/) and obtain API KEY.\n- It will be used in on form submission.\n- Important: Please keep your key safe and do not disclose it to others."
      },
      "typeVersion": 1
    },
    {
      "id": "42df80e0-3428-40f9-a951-9390723f4aaa",
      "name": "Nota adhesiva",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1024,
        256
      ],
      "parameters": {
        "width": 780,
        "height": 212,
        "content": "## STEP 2 - Usage Process\n1. **Start Workflow** - Click \"Execute workflow\" button to begin the task.\n2. **Fill Form** - Complete the required fields in the popup form.\n3. **Submit - Click** \"Submit\" button to send your request.\n4. **Close Window** - You can close the form window after successful submission.\n5. **Wait for Generation** - System automatically checks status every 5 seconds.\n6. **Get Results** - Video files will be displayed automatically when generation is complete."
      },
      "typeVersion": 1
    },
    {
      "id": "9dea92a7-21b2-42e7-96ce-714f5ea44024",
      "name": "Nota adhesiva3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        0
      ],
      "parameters": {
        "color": 3,
        "width": 956,
        "height": 1160,
        "content": "## Generate Character-Consistent Images with KIE.AI Nano Banana API\n### Overview\nGenerate high-quality, character-consistent AI images using KIE.AI's Nano Banana API through an intuitive form interface. This n8n workflow supports both text-to-image and image-to-image generation modes, delivering professional results at 50% lower cost than mainstream platforms.\n**Key Benefits:**\n- �� Dual generation modes (text-to-image & image-to-image).\n- 💰 20 free generations + $0.02 per additional request.\n- 🔄 Maintains character consistency across generations.\n- ⚡ Automated processing with 5-second polling.\n### Perfect for\nContent creators, designers, marketers, developers, and anyone who needs to quickly create diverse AI visual content while maintaining consistent character identity across multiple generations.\n### Prerequisites\n- KIE.AI account and API key ([Sign up here](https://kie.ai/nano-banana)).\n- Active n8n instance with form submission capabilities.\n- AI prompts for image generation.\n- Reference images (optional, for image-to-image mode).\n### Quick Setup\n#### 1. **Get API Key**\nRegister at [kie.ai/nano-banana](https://kie.ai/nano-banana) and generate your API key.\n#### 2. **Configure Form Fields**\nSet up these fields in your \"On Form Submission\" node:\n- **`model`** (Required): Choose between `google/nano-banana` for text-to-image or `google/nano-banana-edit` for image-to-image generation.\n- **`prompt`** (Required): Text description for your image generation.\n- **`img_url`** (Optional): Reference image URLs for image-to-image mode (up to 5 images, separate multiple URLs with commas).\n- **`api_key`** (Required): Your KIE.AI API key for authentication.\n#### 3. **Test & Use**\n1. Execute the workflow\n2. Access the generated form URL\n3. Fill in your details and submit\n4. Wait for processing (10-20 seconds)\n5. Results will be displayed automatically.\n### Usage Tips\n**Better Prompts:**\nInclude style (realistic, anime, cyberpunk), composition (close-up, wide shot), lighting (dramatic, soft), and mood (cheerful, mysterious).\n**Example:** \"Realistic cyberpunk character with neon blue lighting, close-up composition, dramatic shadows\"\n**Common Uses:**\n- Character design for games/stories\n- Social media content\n- Marketing materials\n- Product mockups\n### Troubleshooting\n- **API Key Invalid**: Verify key is correct and active.\n- **Generation Fails**: Check prompt length and content.\n**Keywords:** Nano Banana API, character-consistent images, text-to-image, image-to-image, KIE.AI, AI image generation, n8n template"
      },
      "typeVersion": 1
    },
    {
      "id": "5609cfa7-25e9-4f0e-908b-4fceb1fdd889",
      "name": "Nota adhesiva1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1024,
        544
      ],
      "parameters": {
        "width": 780,
        "height": 568,
        "content": "## STEP 3 - Form Parameters\n1. **Prompt** \n    - Purpose: Describe the video content you want to generate.\n    - Example: \"A dog playing in a park\".\n    - Tips:\n    Be detailed and specific in describing image content.\n    More detailed descriptions lead to better results.\n2. **img_url** (Image-to-Image, Optional)\n    - Purpose: Provide an image URL for image-to-image generation. Note: If you are using text-to-image generation (google/nano-banana), please do not fill in this parameter.\n    - Example: https://file.example.com/your-image.jpg (single image) or https://file1.com/img1.jpg,https://file2.com/img2.jpg (multiple images)\n    - Tips:\n    Required for: google/nano-banana-edit (image-to-image).\n    Not needed for: google/nano-banana (text-to-image) - leave this field empty.\n    Use a clear and relevant image to guide the generation.\n    You can upload up to 5 images by separating multiple URLs with commas.\n3. **model (Model Type)** \n    - Purpose: Select the type of AI generation task you want to perform.\n    - Options: google/nano-banana (text-to-image)\ngoogle/nano-banana-edit (image-to-image)\n    - Tips:Choose google/nano-banana for text-to-image generation. Choose google/nano-banana-edit for image-to-image generation.\n4. **api_key** (API Key)\n    - This is what you get in the first step.\n"
      },
      "typeVersion": 1
    },
    {
      "id": "b41cc4b4-2927-4453-80fd-7252549af77e",
      "name": "Obtener el estado generado",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        992,
        1184
      ],
      "parameters": {
        "url": "https://api.kie.ai/api/v1/playground/recordInfo",
        "options": {},
        "sendQuery": true,
        "sendHeaders": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "taskId",
              "value": "={{$json.data.taskId}}"
            }
          ]
        },
        "headerParameters": {
          "parameters": [
            {
              "name": "Content-Type",
              "value": "application/json"
            },
            {
              "name": "Authorization",
              "value": "=Bearer {{$node[\"Submit Text Prompt for image Generation\"].json[\"api_key\"]}}"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "421dd0c7-92c9-439e-a157-70d6120b6282",
      "name": "Enviar texto prompt para generación de imagen",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        320,
        1184
      ],
      "webhookId": "791b190b-2acc-4d10-b593-c1929e67686c",
      "parameters": {
        "options": {},
        "formTitle": "AI image generator",
        "formFields": {
          "values": [
            {
              "fieldLabel": "prompt"
            },
            {
              "fieldLabel": "img_url"
            },
            {
              "fieldLabel": "model"
            },
            {
              "fieldLabel": "api_key"
            }
          ]
        },
        "formDescription": "Please fill in the following information to generate your video"
      },
      "typeVersion": 2.2
    },
    {
      "id": "e8209f72-eb14-40e2-a4fa-19da7d6d5e6f",
      "name": "Enviar solicitud de generación de imagen a KIE.AI API",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        544,
        1184
      ],
      "parameters": {
        "url": "https://api.kie.ai/api/v1/playground/createTask",
        "method": "POST",
        "options": {},
        "jsonBody": "={\n  \"model\": \"{{$json.model}}\",\n  \"callBackUrl\": \"https://your-domain.com/api/callback\",\n  \"input\": {\n    \"prompt\": \"{{$json.prompt}}\",\n    \"image_urls\": [{{$json.img_url ? $json.img_url.split(',').map(url => '\"' + url.trim() + '\"').join(',') : ''}}]\n  }\n}",
        "sendBody": true,
        "sendHeaders": true,
        "specifyBody": "json",
        "headerParameters": {
          "parameters": [
            {
              "name": "Content-Type",
              "value": "application/json"
            },
            {
              "name": "Authorization",
              "value": "=Bearer {{$json.api_key}}"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "87befe8e-1318-44c6-8600-a30f7d629f87",
      "name": "Esperar finalización del procesamiento de imagen",
      "type": "n8n-nodes-base.wait",
      "position": [
        784,
        1184
      ],
      "webhookId": "bb6c2821-9586-44b7-8606-2ee69a77ed75",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "63a42df0-8d20-47ac-a4f8-c8006ef985c7",
      "name": "Verificar si la generación de imagen está completa",
      "type": "n8n-nodes-base.if",
      "position": [
        832,
        1408
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "loose"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "db9a5dec-997b-4c3f-9582-37c9bbeb19ff",
              "operator": {
                "name": "filter.operator.equals",
                "type": "string",
                "operation": "equals"
              },
              "leftValue": "=true",
              "rightValue": "={{ $json.data.state == 'success'}}"
            }
          ]
        },
        "looseTypeValidation": true
      },
      "typeVersion": 2.2
    },
    {
      "id": "a819dc4e-dcf2-463b-b0a5-daf38444edc9",
      "name": "Formatear y mostrar resultados de imagen",
      "type": "n8n-nodes-base.set",
      "position": [
        1200,
        1392
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "e800cf57-0f11-448e-b86d-6454dced6c28",
              "name": "img",
              "type": "string",
              "value": "={{ $json.data.resultJson }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "5a03f781-5476-497a-a705-8cc42d77ddff",
  "connections": {
    "b41cc4b4-2927-4453-80fd-7252549af77e": {
      "main": [
        [
          {
            "node": "63a42df0-8d20-47ac-a4f8-c8006ef985c7",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "87befe8e-1318-44c6-8600-a30f7d629f87": {
      "main": [
        [
          {
            "node": "b41cc4b4-2927-4453-80fd-7252549af77e",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "63a42df0-8d20-47ac-a4f8-c8006ef985c7": {
      "main": [
        [
          {
            "node": "a819dc4e-dcf2-463b-b0a5-daf38444edc9",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "87befe8e-1318-44c6-8600-a30f7d629f87",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "421dd0c7-92c9-439e-a157-70d6120b6282": {
      "main": [
        [
          {
            "node": "e8209f72-eb14-40e2-a4fa-19da7d6d5e6f",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "e8209f72-eb14-40e2-a4fa-19da7d6d5e6f": {
      "main": [
        [
          {
            "node": "87befe8e-1318-44c6-8600-a30f7d629f87",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
Preguntas frecuentes

¿Cómo usar este flujo de trabajo?

Copie el código de configuración JSON de arriba, cree un nuevo flujo de trabajo en su instancia de n8n y seleccione "Importar desde JSON", pegue la configuración y luego modifique la configuración de credenciales según sea necesario.

¿En qué escenarios es adecuado este flujo de trabajo?

Intermedio - Varios, IA Multimodal

¿Es de pago?

Este flujo de trabajo es completamente gratuito, puede importarlo y usarlo directamente. Sin embargo, tenga en cuenta que los servicios de terceros utilizados en el flujo de trabajo (como la API de OpenAI) pueden requerir un pago por su cuenta.

Información del flujo de trabajo
Nivel de dificultad
Intermedio
Número de nodos10
Categoría2
Tipos de nodos6
Descripción de la dificultad

Adecuado para usuarios con experiencia intermedia, flujos de trabajo de complejidad media con 6-15 nodos

Enlaces externos
Ver en n8n.io

Compartir este flujo de trabajo

Categorías

Categorías: 34