This is an n8n workflow that automates video creation with the Kling 2.5 video generation model from Havis AI. It covers the whole process, from submitting a prompt to returning the final result. This removes the need to manage the API or write polling logic by hand.
The workflow starts with an n8n Form Trigger where the user enters the Kling 2.5 parameters. It builds a JSON payload, removes any empty optional fields, and sends a POST request to the Havis AI Kling 2.5 API endpoint. It then checks the task every 8 seconds and loops until video generation is complete.
The result includes the task ID, status, video URLs, credits consumed, and the original payload. Failures return detailed error information. The workflow can be extended to send output to services such as Slack, Google Sheets, Airtable, custom webhooks, or content management systems.
- Platform
- n8n
- Model
- Havis AI Kling 2.5
- Input
- n8n Form Trigger web form
- Required fields
- prompt, mode
- Optional fields
- duration, aspect_ratio, image_url, tail_image_url
- Polling interval
- 8 seconds
- Output
- Task ID, status, video URLs, credits consumed, original payload
- n8n nodes
- Form Trigger, HTTP Request, Wait, If, Set, Code, Sticky Notes
- Error handling
- Returns detailed failure information
- API keys
- Store in n8n credentials or environment variables, not in form inputs