Create AI music videos from a prompt with OpenAI, Kie.ai and BeatAPI
Ready for 3.0What this workflow does
This AI workflow has 21 nodes and runs when someone submits an n8n form (“Generate an AI Music Video from a Prompt”). Along the way it connects OpenAI Chat Model. It also calls api.kie.ai and api.beatapi.io over HTTP.
How it runs
Trigger: When someone submits an n8n form (“Generate an AI Music Video from a Prompt”).
- AI Agent: runs an AI agent, with model: OpenAI Chat Model; output parser: Structured Output Parser
- Parse AI Agent Plan (Code): runs custom JavaScript code
- Kie Create Music (HTTP Request): calls api.kie.ai (POST)
- Wait: waits 30 seconds
- Kie Poll Music (HTTP Request): calls an HTTP API
- Read Music Result (Code): runs custom JavaScript code
- Music Ready? (If): checks a condition and branches into true / false
- Kie Create Nano Banana Image (HTTP Request): calls api.kie.ai (POST)
- Wait: waits 20 seconds
- Kie Poll Nano Banana Image (HTTP Request): calls an HTTP API
…plus 8 more steps. See the full node list below.
Services it uses
HTTP calls to: api.kie.ai, api.beatapi.io
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (9)
- HTTP Request
n8n-nodes-base.httpRequest - Wait
n8n-nodes-base.wait - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Edit Fields (Set)
n8n-nodes-base.set - AI Agent
@n8n/n8n-nodes-langchain.agent - n8n Form Trigger
n8n-nodes-base.formTrigger - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured
From the author
Quick overview This workflow collects a music video theme via an n8n form, uses OpenAI to generate music, image, and video prompts, then calls Kie to create an instrumental track and a Nano Banana image, and finally uses BeatAPI to render a publish-ready AI…