Input
POST https://gateway.appypie.com/lumalabs-ai/v1/generateRequestFromImage HTTP/1.1

Content-Type: application/json
Cache-Control: no-cache

{
    "url": "https://storage.googleapis.com/imagesai.appypie.com/testing/00034_00.jpg",
    "prompt": "leaning girl"
}
import urllib.request, json

try:
    url = "https://gateway.appypie.com/lumalabs-ai/v1/generateRequestFromImage"

    hdr ={
    # Request headers
    'Content-Type': 'application/json',
    'Cache-Control': 'no-cache',
    }

    # Request body
    data =  
    data = json.dumps(data)
    req = urllib.request.Request(url, headers=hdr, data = bytes(data.encode("utf-8")))

    req.get_method = lambda: 'POST'
    response = urllib.request.urlopen(req)
    print(response.getcode())
    print(response.read())
    except Exception as e:
    print(e)
// Request body
const body = {
    "url": "https://storage.googleapis.com/imagesai.appypie.com/testing/00034_00.jpg",
    "prompt": "leaning girl"
};

fetch('https://gateway.appypie.com/lumalabs-ai/v1/generateRequestFromImage', {
        method: 'POST',
        body: JSON.stringify(body),
        // Request headers
        headers: {
            'Content-Type': 'application/json',
            'Cache-Control': 'no-cache',}
    })
    .then(response => {
        console.log(response.status);
        console.log(response.text());
    })
    .catch(err => console.error(err));
curl -v -X POST "https://gateway.appypie.com/lumalabs-ai/v1/generateRequestFromImage" -H "Content-Type: application/json" -H "Cache-Control: no-cache" --data-raw "{
    \"url\": \"https://storage.googleapis.com/imagesai.appypie.com/testing/00034_00.jpg\",
    \"prompt\": \"leaning girl\"
}"
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLEncoder;
import java.util.HashMap;
import java.util.Map;
import java.io.UnsupportedEncodingException;
import java.io.DataInputStream;
import java.io.InputStream;
import java.io.FileInputStream;

public class HelloWorld {

  public static void main(String[] args) {
    try {
        String urlString = "https://gateway.appypie.com/lumalabs-ai/v1/generateRequestFromImage";
        URL url = new URL(urlString);
        HttpURLConnection connection = (HttpURLConnection) url.openConnection();

        //Request headers
    connection.setRequestProperty("Content-Type", "application/json");
    
    connection.setRequestProperty("Cache-Control", "no-cache");
    
        connection.setRequestMethod("POST");

        // Request body
        connection.setDoOutput(true);
        connection
            .getOutputStream()
            .write(
             "{ \"url\": \"https://storage.googleapis.com/imagesai.appypie.com/testing/00034_00.jpg\", \"prompt\": \"leaning girl\" }".getBytes()
             );
    
        int status = connection.getResponseCode();
        System.out.println(status);

        BufferedReader in = new BufferedReader(
            new InputStreamReader(connection.getInputStream())
        );
        String inputLine;
        StringBuffer content = new StringBuffer();
        while ((inputLine = in.readLine()) != null) {
            content.append(inputLine);
        }
        in.close();
        System.out.println(content);

        connection.disconnect();
    } catch (Exception ex) {
      System.out.print("exception:" + ex.getMessage());
    }
  }
}
$url = "https://gateway.appypie.com/lumalabs-ai/v1/generateRequestFromImage";
$curl = curl_init($url);

curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);

# Request headers
$headers = array(
    'Content-Type: application/json',
    'Cache-Control: no-cache',);
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);

# Request body
$request_body = '{
    "url": "https://storage.googleapis.com/imagesai.appypie.com/testing/00034_00.jpg",
    "prompt": "leaning girl"
}';
curl_setopt($curl, CURLOPT_POSTFIELDS, $request_body);

$resp = curl_exec($curl);
curl_close($curl);
var_dump($resp);
Output

Luma Dream Machine Image to Video Generation: Turn Image into Videos

Luma-Image-to-Video

The Luma Dream Machine Image to Video Generation is an innovative tool that allows users to effortlessly transform static images into high-quality, dynamic videos. Powered by advanced AI technology, this tool delivers smooth transitions, vibrant style enhancements, and precise video length control, making it perfect for marketing, storytelling, and various creative projects. Whether you’re producing promotional videos, enhancing digital content, or creating engaging social media posts, the Luma Dream Machine Image to Video Generation simplifies the video creation process, allowing you to craft visually captivating videos in no time.

By leveraging the capabilities of the Luma Dream Machine Image, this tool ensures seamless integration into your creative workflow. It allows businesses and creators to produce professional-grade videos quickly and efficiently, saving time and resources compared to traditional video production methods. With its AI-driven precision, the Luma Dream Machine Image to Video Generation opens up endless creative possibilities, enabling users to turn static images into immersive, high-quality video experiences. Whether for personal projects or professional use, this API ensures impactful results across various applications, making it the perfect solution for those looking to bring their visual content to life and engage their audience through dynamic, polished videos.

How to Use the Luma Image to Video Generation API

generate_01

Get API Access

Obtain an API key for authentication, which is necessary for using the Luma Image to Video Generation API.

generate_02

Set Up Environment and Configure the Parameters

Choose your preferred programming language (e.g., Python, JavaScript) and set up your environment to handle HTTP requests. Configure parameters like the image input, video length, transitions, and style enhancements to meet your needs.

generate_04

Send the API Request

Use your selected programming language to send an HTTP request to the Luma Image to Video Generation API endpoint with the required parameters, including image details and video settings.

generate_03

Receive and Process the Response

Upon a successful request, the API will return a video file or a URL to the generated video, which can be downloaded or streamed according to your requirements.

Use Cases of Luma Dream Machine Image to Video Generation API

cases_1

Marketing Campaigns and Ads

The Luma Dream Machine Image to Video Generation API is perfect for creating engaging video ads from static images. Marketers can transform promotional content into dynamic videos, attracting more attention and driving higher engagement. With seamless transitions and vibrant style enhancements, this tool helps generate impactful marketing videos that capture the audience’s attention and elevate brand presence.

cases_2

Storytelling and Narrative Creation

For creators and storytellers, the Luma Dream Machine Image to Video Generation API offers an innovative way to bring their narratives to life. By turning static images into captivating videos, it adds a visual dimension to storytelling. This API enables users to craft immersive video content that enhances the emotional depth and impact of their creative work.

cases_3

Social Media Content Generation

The Luma Dream Machine Image to Video Generation API is a game-changer for social media content creation. It helps transform still images into engaging videos, ideal for platforms like Instagram, Facebook, and TikTok. With customizable video lengths and enhanced transitions, creators can easily produce professional-quality videos that boost engagement and audience retention on social media.

cases_4

Digital Content Enhancement

Content creators can use the Luma Dream Machine Image to Video Generation API to enhance their digital media projects. Whether for websites, blogs, or digital magazines, this tool transforms static images into dynamic video content, adding an extra layer of visual appeal. It ensures high-quality video generation with seamless transitions, improving user experience and content engagement.

cases_5

E-Commerce Product Video Creation

The Luma Dream Machine Image to Video Generation API is ideal for e-commerce businesses looking to showcase their products. By converting product images into video format, companies can highlight features, benefits, and product details in a dynamic way. This tool helps create engaging product videos that drive customer interest and increase conversion rates for online stores.

cases_6

Educational and Training Videos

Educational institutions and training programs can leverage the Luma Dream Machine Image to Video Generation API to create interactive and visually engaging learning content. By transforming static diagrams, charts, or images into videos, this tool makes lessons more immersive. It allows educators to enhance their materials, delivering a richer and more effective learning experience for students.

Top Trending Generative AI APIs

 

Maximize the potential of your projects with our Generative AI APIs. From video generation & image creation to text generation, animation, 3D modeling, prompt generation, image restoration, and code generation, our advanced APIs cover all aspects of generative AI to meet your needs.