๐ŸŽฌ Generate AI videos using Havis AI Grok Imagine

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

Description

Havis AI - Grok Imagine n8n Workflow

Summary

This n8n workflow submits a video generation job to Havis AI Grok Imagine, 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 Grok Imagine inputs.
  2. Builds a clean JSON payload and removes empty optional fields.
  3. Sends a POST request to https://havis.ai/api/grok-imagine.
  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": "A playful cinematic scene with surreal motion",
  "model": "normal",
  "images": [
    "https://example.com/reference.jpg"
  ]
}

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