Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Hailuo Video Generation API

Hailuo (MiniMax) AI video generation service with text and image input.

Platform API Docs

API home page: Ace Data Cloud - Hailuo Video Generation

Keywords: hailuo-api, minimax-api, ai-video, video-generation, text-to-video, image-to-video, rest-api, ai-api, aivideo, AI API, REST API, Developer API, Ace Data Cloud

Why Use Hailuo Video Generation on Ace Data Cloud

  • Unified developer platform with one API key, billing system, and usage tracking
  • Production-ready AI API endpoints served from https://api.acedata.cloud
  • English integration guides, API references, and service documentation
  • Global-ready workflow for developers building chat, image, video, music, and search products

Overview

The Hailuo Videos Generation API allows you to generate official Hailuo (MiniMax) videos by providing custom parameters. It supports both text-to-video (minimax-t2v) and image-to-video (minimax-i2v) generation models.

The Hailuo Tasks API provides a way to query the execution status of video generation tasks by inputting the task ID generated by the Hailuo Videos Generation API.

Application Process

To use the Hailuo Videos Generation API, you can first visit the Hailuo Videos Generation API page and click the "Acquire" button to obtain the credentials needed for the request:

If you are not logged in or registered, you will be automatically redirected to the login page inviting you to register and log in. After logging in or registering, you will automatically return to the current page.

Upon the first application, there will be a free quota provided, allowing you to use the API for free.

Basic Usage

To generate a video, pass an action of generate along with a prompt. You can also specify a model and an optional first frame image:

curl -X POST 'https://api.acedata.cloud/hailuo/videos' \
-H 'accept: application/json' \
-H 'authorization: Bearer {token}' \
-H 'content-type: application/json' \
-d '{
  "action": "generate",
  "prompt": "Internal heat"
}'

Main request parameters:

  • model: The video generation model. Use minimax-t2v for text-to-video or minimax-i2v for image-to-video. Default is minimax-t2v.
  • action: The action for this video generation task. Use generate to create a new video.
  • prompt: The prompt for generating the video.
  • first_image_url: The first frame reference image link (required when using minimax-i2v). Base64 encoding is not supported.
  • callback_url: Asynchronous callback URL.

After the call, the returned result is as follows:

{
  "success": true,
  "task_id": "baf1034c-684c-46be-ae6d-89ebb89b690d",
  "trace_id": "3221eb74-1a25-447a-ba69-7d9b310e306c",
  "data": [
    {
      "id": "0pv8yhe4fdrge0cmckpv23pd2g",
      "model": "minimax-t2v",
      "prompt": "Internal heat",
      "video_url": "https://file.aigpai.com/czjl/qoueLWBokF3ud6tdVD6VJTZuXTnK5HaMO2qAOS46Ef8VSBFUA/tmp9e3u11c1.output.mp4",
      "state": "succeeded"
    }
  ]
}

Quick Start

curl --request POST "https://api.acedata.cloud/hailuo/videos" \
  --header "Authorization: Bearer YOUR_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{"action": "generate", "prompt": "A beautiful sunset over the ocean"}'

APIs and Guides

Explore the supported endpoints and integration guides for Hailuo Video Generation.

API Path Integration Guidance
Hailuo Videos Generation API /hailuo/videos Hailuo Videos Generation API Integration Guide
Hailuo Tasks API /hailuo/tasks Hailuo Tasks API Integration Guide

Related Resources

Support

If you meet any issue, please check support info or browse the latest documentation on docs.acedata.cloud.