Input
POST https://gateway.appypie.com/minimax-hailuo-ai/v1/generate HTTP/1.1

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

{
    "prompt": "A high-energy scene of a large, muscular bear leaping gracefully into a fast-flowing river to catch a fish. The video starts with the bear crouching by the riverbank, then transitions to it leaping mid-air, with water splashing dramatically around it. The camera follows the bear's movement, capturing the intensity and speed of the jump. The bear's paws extend toward the fish, which is darting through the clear water, as the background shows a lush, green forest and distant mountains. The scene is full of natural sounds — the rush of water, splashes, and the bear's powerful movement. Light filters through the trees, creating a dramatic, cinematic atmosphere."
}
import urllib.request, json

try:
    url = "https://gateway.appypie.com/minimax-hailuo-ai/v1/generate"

    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 = {
    "prompt": "A high-energy scene of a large, muscular bear leaping gracefully into a fast-flowing river to catch a fish. The video starts with the bear crouching by the riverbank, then transitions to it leaping mid-air, with water splashing dramatically around it. The camera follows the bear's movement, capturing the intensity and speed of the jump. The bear's paws extend toward the fish, which is darting through the clear water, as the background shows a lush, green forest and distant mountains. The scene is full of natural sounds — the rush of water, splashes, and the bear's powerful movement. Light filters through the trees, creating a dramatic, cinematic atmosphere."
};

fetch('https://gateway.appypie.com/minimax-hailuo-ai/v1/generate', {
        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/minimax-hailuo-ai/v1/generate" -H "Content-Type: application/json" -H "Cache-Control: no-cache" --data-raw "{
    \"prompt\": \"A high-energy scene of a large, muscular bear leaping gracefully into a fast-flowing river to catch a fish. The video starts with the bear crouching by the riverbank, then transitions to it leaping mid-air, with water splashing dramatically around it. The camera follows the bear's movement, capturing the intensity and speed of the jump. The bear's paws extend toward the fish, which is darting through the clear water, as the background shows a lush, green forest and distant mountains. The scene is full of natural sounds — the rush of water, splashes, and the bear's powerful movement. Light filters through the trees, creating a dramatic, cinematic atmosphere.\"
}"
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/minimax-hailuo-ai/v1/generate";
        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(
             "{ \"prompt\": \"A high-energy scene of a large, muscular bear leaping gracefully into a fast-flowing river to catch a fish. The video starts with the bear crouching by the riverbank, then transitions to it leaping mid-air, with water splashing dramatically around it. The camera follows the bear's movement, capturing the intensity and speed of the jump. The bear's paws extend toward the fish, which is darting through the clear water, as the background shows a lush, green forest and distant mountains. The scene is full of natural sounds — the rush of water, splashes, and the bear's powerful movement. Light filters through the trees, creating a dramatic, cinematic atmosphere.\" }".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/minimax-hailuo-ai/v1/generate";
$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 = '{
    "prompt": "A high-energy scene of a large, muscular bear leaping gracefully into a fast-flowing river to catch a fish. The video starts with the bear crouching by the riverbank, then transitions to it leaping mid-air, with water splashing dramatically around it. The camera follows the bear's movement, capturing the intensity and speed of the jump. The bear's paws extend toward the fish, which is darting through the clear water, as the background shows a lush, green forest and distant mountains. The scene is full of natural sounds — the rush of water, splashes, and the bear's powerful movement. Light filters through the trees, creating a dramatic, cinematic atmosphere."
}';
curl_setopt($curl, CURLOPT_POSTFIELDS, $request_body);

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

MiniMax Hailuo AI: Generate Videos from the Text Prompts

meta

MiniMax Hailuo AI is an advanced video generation tool that empowers users to create high-quality videos directly from text prompts. This innovative technology uses powerful AI algorithms to interpret detailed descriptions, transforming them into visually rich, polished videos. It’s a game-changer for content creators, marketers, and educators, providing a streamlined process that eliminates many traditional video editing steps. With MiniMax Hailuo AI, users can save significant time and resources, creating professional results effortlessly. Its array of features—such as customizable effects, scene transitions, and diverse visual styles—offers creative flexibility, making it ideal for industries from digital marketing and education to entertainment.

Additionally, the MiniMax Hailuo AI API expands this tool’s capabilities, allowing users to customize video outputs to meet specific requirements, control animation styles, and adjust transitions seamlessly. Businesses can integrate video generation features directly into their own applications, facilitating scalable and automated content creation. This API-driven approach makes it easy to adapt to evolving media demands. MiniMax Hailuo AI is revolutionizing video production by democratizing content creation and offering an efficient solution for the modern needs of digital media, enabling businesses and individuals to transform their ideas into engaging video content.

How to Generate Videos Using MiniMax Hailuo AI (Text to Video) API

Generating videos using the MiniMax Hailuo AI API is a straightforward process that leverages advanced text-to-video generation technology. Follow these steps to get started:

generate_01

Acquire API Access

To begin, register with MiniMax Hailuo AI to gain access to the Text to Video API. Once registered, you’ll receive an API key, essential for authenticating and making requests to the API endpoint.

generate_02

Set Up the Environment and Customize Parameters

Prepare your environment by installing necessary libraries or tools, such as Python or JavaScript. Then, configure the API parameters, including the video style, content type, prompt, duration, and other customization options.

generate_03

Send the API Request

Using your chosen programming language, create an HTTP request to the MiniMax Hailuo API endpoint. Include your text description and any additional parameters as outlined in the API documentation to define your video’s style and length.

generate_04

Receive and Process the Response

Once the API processes your request, it will return a high-quality video based on your text input. You can then utilize, edit, or display the generated video as needed for your projects.

Use Cases of MiniMax Hailuo AI (Text to Video) API

Generating videos with the MiniMax Hailuo AI API can transform your business by leveraging advanced text-to-video technology across multiple industries. Here’s how you can make the most of it:

cases_1

Marketing and Promotional Content

With the MiniMax Hailuo AI (Text to Video) API, businesses can generate eye-catching promotional videos based on short descriptions or product details. This automation speeds up content production, allowing marketers to create engaging ads, product demonstrations, or branded videos quickly. The result is visually dynamic content that attracts audiences and enhances brand visibility with minimal manual editing.

cases_2

Educational and Training Videos

Educational institutions and companies can use the MiniMax Hailuo AI API to create informative videos for e-learning and training. Simply inputting course content or training instructions generates structured, easy-to-follow videos. This application makes learning content more interactive and accessible, ideal for remote training, digital classrooms, or tutorials on specialized topics with minimal production efforts.

cases_3

Storytelling and Content Creation

For writers and storytellers, the MiniMax Hailuo AI API can bring stories to life through animated visuals. By entering descriptions of scenes or narratives, creators can transform text into captivating video scenes. This tool can assist authors, screenwriters, or content creators looking to visualize stories, making content creation faster and more immersive for their audience.

cases_4

Social Media Content Generation

Social media managers can use the MiniMax Hailuo AI API to rapidly produce videos from text prompts, ideal for trending topics, announcements, or interactive posts. With flexible style and duration options, it’s easy to adapt video content for platforms like Instagram, TikTok, or Twitter, enabling frequent posting and increased audience engagement without extensive video editing.

cases_5

Product Tutorials and How-To Videos

MiniMax Hailuo AI can generate informative tutorials and instructional videos based on text descriptions, perfect for brands aiming to support customers with detailed guides. From assembly instructions to product care, users can generate step-by-step videos that enhance user experience. This solution benefits e-commerce and customer service by offering accessible, video-based answers to common customer queries.

cases_6

Virtual Customer Support and FAQ Videos

Businesses can leverage the API to create virtual support videos that guide users through common questions or procedures. By converting FAQs into engaging video responses, companies enhance customer experience, reduce support wait times, and provide 24/7 assistance. The API makes customer service more interactive and efficient by offering easy-to-access visual answers tailored to user needs.

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.