๐ŸŽฌ Generate AI images using Havis AI Seedream 5 Lite

โšก 23 views ยท ๐ŸŽฌ Content Creation & Video

Description

Havis AI - Seedream 5 Lite n8n Workflow

Summary

This n8n workflow submits an image generation job to Havis AI Seedream 5 Lite, waits for processing, polls task status, and returns result data when the job completes.

Who is this for?

What this workflow does

  1. Opens an n8n Form Trigger for Seedream 5 Lite inputs.
  2. Builds a clean JSON payload and removes empty optional fields.
  3. Sends a POST request to https://havis.ai/api/seedream-5.
  4. Waits 8 seconds, then polls https://havis.ai/api/task/{task_id}.
  5. Loops while the task is processing.
  6. Returns task ID, status, result URLs, credits used, and submitted payload.
  7. Returns a clean error object if the task fails.

Setup

  1. Import the JSON workflow into n8n.
  2. Open the Form Trigger URL.
  3. Enter your Havis API key in api_key. Use only the key value; the workflow adds Bearer automatically.
  4. Fill in the model inputs and submit.

For production, store the API key in n8n credentials or environment variables instead of typing it into a public form.

Main payload fields

Example request body

{
  "prompt": "Ethereal landscape with floating islands",
  "mode": "text-to-image",
  "aspect_ratio": "16:9",
  "quality": "high"
}

API documentation

Output fields

Customization ideas

Troubleshooting

๐Ÿ”— Nodes Used

HTTP Request, n8n Form Trigger

๐Ÿ“ฅ Import

Download workflow.json and import into n8n: Workflow menu โ†’ Import from File

๐Ÿ“– Importing guide ยท ๐Ÿ”‘ Credential setup