Install this extension via the ComfyUI Manager by searching
for ComfyUI-LumaAI-API
1. Click the Manager button in the main menu
2. Select Custom Nodes Manager button
3. Enter ComfyUI-LumaAI-API in the search bar
After installation, click the Restart button to
restart ComfyUI. Then, manually
refresh your browser to clear the cache and access
the updated list of nodes.
Visit
ComfyUI Online
for ready-to-use ComfyUI environment
ComfyUI-LumaAI-API is a custom node for ComfyUI, integrating the Luma Dream Machine API to enhance functionality and streamline processes within the ComfyUI environment.
ComfyUI-LumaAI-API Introduction
Welcome to the ComfyUI-LumaAI-API extension! This extension is a custom node for ComfyUI that allows you to seamlessly integrate the powerful Luma AI API into your ComfyUI environment. The Luma AI API is built on top of the Dream Machine, a sophisticated video generation model developed by Luma. This extension enables you to create stunning videos from text prompts or images directly within ComfyUI, making it an invaluable tool for AI artists looking to enhance their creative workflows.
By using the ComfyUI-LumaAI-API, you can:
Generate high-quality videos from simple text descriptions.
Transform images into dynamic video sequences.
Interpolate between different video generations.
Extend existing video generations with new content.
Preview and save your video creations locally.
Whether you're an AI artist looking to bring your ideas to life or a creative professional seeking to streamline your video generation process, this extension offers a user-friendly and powerful solution.
How ComfyUI-LumaAI-API Works
The ComfyUI-LumaAI-API extension works by connecting ComfyUI to the Luma AI API, allowing you to leverage Luma's advanced video generation capabilities within the ComfyUI interface. Here's a simple breakdown of how it works:
API Integration: The extension integrates with the Luma AI API, which is responsible for generating videos based on your inputs.
Custom Nodes: The extension provides several custom nodes that you can use within ComfyUI to interact with the Luma AI API. These nodes handle tasks such as creating a client, generating videos from text or images, and more.
Input and Output: You provide inputs (text prompts, images) to the nodes, and the Luma AI API processes these inputs to generate videos. The generated videos can be previewed and saved locally.
Think of the extension as a bridge that connects your creative ideas with the powerful video generation capabilities of Luma AI, all within the familiar environment of ComfyUI.
ComfyUI-LumaAI-API Features
The ComfyUI-LumaAI-API extension comes with a variety of features designed to enhance your video generation experience:
LumaAIClient
Purpose: Creates a LumaAI client to interact with the API.
Customization: You can configure the client with your API key and other settings.
LumaText2Video
Purpose: Generates a video from a text prompt.
Customization: Adjust the text prompt to describe the video you want to create. For example, "A sunset over a beach" will generate a video depicting that scene.
LumaImage2Video
Purpose: Generates a video from an image, using the image as the first or last frame.
Customization: Upload an image and specify whether it should be the starting or ending frame of the video.
LumaInterpolateGenerations
Purpose: Interpolates between two video generations to create a smooth transition.
Customization: Provide two video generations, and the node will create a transition between them.
LumaExtendGeneration
Purpose: Extends an existing video generation by adding new content before or after the current video.
Customization: Choose whether to extend the video at the beginning or the end.
LumaPreviewVideo
Purpose: Previews a video within ComfyUI, resized to 768px for better visibility.
Customization: Simply input the video you want to preview.
ImgBBUpload
Purpose: Uploads an image to ImgBB and returns the URL, as the Luma API requires image URLs as input.
Customization: Use your ImgBB API key to upload images and get the necessary URLs.
ComfyUI-LumaAI-API Models
The extension leverages the Dream Machine model from Luma AI, which is designed for high-quality video generation. While there are no multiple models to choose from within this extension, the Dream Machine model is versatile and capable of handling various video generation tasks, from text-to-video to image-to-video transformations.
Troubleshooting ComfyUI-LumaAI-API
Here are some common issues you might encounter while using the extension and how to resolve them:
Issue: API Key Not Working
Solution: Ensure that you have entered a valid Luma AI API key. You can obtain one here.
Issue: Image Upload Fails
Solution: Make sure you have a valid ImgBB API key and that the image file is supported. You can get an ImgBB API key here.
Issue: Video Generation Takes Too Long
Solution: Video generation times can vary based on the complexity of the input and the current load on the Luma AI servers. Try simplifying your input or waiting for a less busy time.
Frequently Asked Questions
Q: Can I use local images directly?
A: No, the Luma AI API requires image URLs. Use the ImgBBUpload node to upload images and get the necessary URLs.
Q: Where are the generated videos saved?
A: By default, videos are saved in the outputs folder using the generation_id as the filename.
Learn More about ComfyUI-LumaAI-API
For more information and resources, check out the following links:
ImgBB API
Explore these resources to get the most out of the ComfyUI-LumaAI-API extension and enhance your creative projects with cutting-edge video generation technology.