🎬 Transform your selfies into 3D figurines with Nano Banana AI

770 views · 🎬 Content Creation & Video

Description

Transform Your Selfies into 3D Figurines with Nano Banana AI

Overview

This workflow utilizes the Defapi API with Google’s Nano Banana AI model to transform your selfies into stunning 3D figurines, action figures, and collectible merchandise designs. Simply upload a selfie photo, provide a creative prompt describing your desired 3D figurine or action figure design, and watch as AI generates professional-quality product visualizations.

Input: Your selfie photo + creative prompt + API key
Output: AI-generated 3D figurine and action figure designs perfect for collectibles, merchandise, and product visualization

Users can interact through a simple form, providing a text prompt describing the desired creative scene, a product image URL, and their API key. The system automatically submits the request to the Defapi API, monitors the generation status in real time, and retrieves the final creative image output. This solution is ideal for marketers, product designers, e-commerce businesses, and content creators who want to quickly generate compelling product advertisements and creative visuals with minimal setup. Perfect for creating 3D figurines and collectible merchandise designs.

Prerequisites

Setup Instructions

  1. Obtain API Key: Register at Defapi.org and generate your API key. Store it securely—do not share it publicly.
  2. Configure the Form: In the “Upload Image” form trigger node, ensure the following fields are set up: Image (file upload), API Key (text field), and Prompt (text field).
  3. Test the Workflow:
    • Click “Execute Workflow” in n8n.
    • Access the generated form URL, upload your product image, enter your prompt, and provide your API key.
    • The workflow will process the image through the “Convert to JSON” node, then send the request to the Defapi API.
    • The system will wait 10 seconds and then poll the API status until the image generation is complete.
  4. Handle Outputs: The final “Format and Display Image Results” node formats and displays the generated creative image URL for download or embedding.

Workflow Structure

The workflow consists of the following nodes:

  1. Upload Image (Form Trigger) - Collects user input: image file, API key, and prompt
  2. Convert to JSON (Code Node) - Converts uploaded image to base64 and formats data
  3. Send Image Generation Request to Defapi.org API (HTTP Request) - Submits generation request
  4. Wait for Image Processing Completion (Wait Node) - Waits 10 seconds before checking status
  5. Obtain the generated status (HTTP Request) - Polls API for completion status
  6. Check if Image Generation is Complete (IF Node) - Checks if status equals ‘success’
  7. Format and Display Image Results (Set Node) - Formats final image URL output

Technical Details

Customization Tips

🔗 Nodes Used

HTTP Request, n8n Form Trigger

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup