Skip to content
Halaman ini belum tersedia dalam bahasa anda, jadi kandungannya dipaparkan dalam bahasa Inggeris.
MiniMax · MiniMax Hailuo

MiniMax-Hailuo-02 API

Generate videos from text or frame images with MiniMax-Hailuo-02 on APISea.

Penjanaan videoVideoTugas tak segerak
ID model
MiniMax-Hailuo-02

Harga API MiniMax-Hailuo-02

Semua harga dalam USD. Kadar APISea dibandingkan dengan harga senarai rasmi bagi unit yang sama.

PilihanAPISeaRasmiJimat
1080P$0.088$0.10−12%
512P$0.01144$0.013−12%
768P$0.044$0.05−12%

Harga dinyatakan dalam bagi setiap saat.

Apakah itu MiniMax-Hailuo-02?

MiniMax-Hailuo-02 is a video generation model from MiniMax for building text-to-video and image-to-video workflows on APISea. Describe the scene, actions, and style in a required prompt, or supply first-frame and last-frame images to guide the video's start and end. It supports 5- and 10-second clips at 512p and 768p, plus 5-second clips at 1080p. Controls include automatic prompt optimization, faster preprocessing, optional pre-submission moderation, and watermark settings.

Submit requests to APISea's video generation endpoint with your API key. Processing is asynchronous: submission returns a task ID that you use to query progress and results. APISea charges pay-as-you-go, billing only successful requests. Rates are $0.01144 per second for 512P, $0.044 per second for 768P, and $0.088 per second for 1080P. The default configuration is about 12% below the provider list price.

Sorotan MiniMax-Hailuo-02

Text and Image Inputs

Generate video from a text prompt, or provide first-frame and last-frame images using public URLs or Base64-encoded data.

Resolution and Duration Choices

Choose 512p or 768p for 5- or 10-second videos. Use 1080p for 5-second videos only.

Prompt Optimization Controls

Automatic prompt optimization is enabled by default. Faster preprocessing can reduce optimization time, with a possible slight effect on optimization quality.

Watermark and Moderation Controls

Choose whether to add a watermark or run moderation before submission. Both options default to false.

Cara memanggil API MiniMax-Hailuo-02 dalam 4 langkah

  1. 01

    Dapatkan API key

    Log masuk ke APISea, tambah nilai sekurang-kurangnya $50 dan cipta kunci sk-sea dalam konsol.

  2. 02

    Tetapkan base URL

    Gunakan https://api.apisea.ai/v1 sebagai base URL dalam SDK atau klien HTTP anda.

  3. 03

    Hantar permintaan

    Panggil POST /v1/videos/generations dengan "model": "MiniMax-Hailuo-02" dan parameter di bawah.

  4. 04

    Urus respons

    Respons mengandungi task_id. Lakukan tinjauan berkala menggunakan GET /v1/tasks/{task_id} sehingga status menjadi completed, kemudian muat turun URL hasil.

curl --request POST \
  --url https://api.apisea.ai/v1/videos/generations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "model": "MiniMax-Hailuo-02",
    "prompt": "A cute cat running on the grass",
    "duration": 5,
    "resolution": "768p",
    "prompt_optimizer": true,
    "fast_pretreatment": false,
    "watermark": false
  }'

Parameter

ParameterJenisWajibLalaiPenerangan
modelstringWajib—Video generation model name
nsfw_checkbooleanPilihanfalseWhether to run content moderation before submitting the video task.
promptstringWajib—Video content description
durationintegerPilihan5Video duration (seconds)
resolutionstringPilihan768pVideo resolution
prompt_optimizerbooleanPilihantrueWhether to automatically optimize the prompt
fast_pretreatmentbooleanPilihanfalseWhether to reduce prompt optimization time
watermarkbooleanPilihanfalseWhether to add watermark
first_frame_imagestringPilihan—Video first frame image
last_frame_imagestringPilihan—Video last frame image

Perkara yang boleh anda bina dengan MiniMax-Hailuo-02

Prompt-to-Video Tools

Build a video creation interface where users describe scenes, actions, and visual styles to generate short clips.

Still-Image Animation

Let users supply a starting image and a prompt to create a video guided by that first frame.

Frame-Guided Transitions

Create transition workflows that use supplied first and last images to guide the beginning and ending of a clip.

Short Full HD Clips

Build a workflow for generating 5-second 1080p clips, with explicit controls for prompt optimization and watermark inclusion.

Petua untuk hasil yang lebih baik

  • 01

    Describe the Scene Clearly

    Include scene details, actions, and style in the required prompt. Leave prompt_optimizer enabled when you want automatic prompt optimization.

  • 02

    Match Resolution to Duration

    Set resolution and duration explicitly rather than relying on the 768p and 5-second defaults. For 10-second clips, choose 512p or 768p; 1080p supports only 5 seconds.

  • 03

    Plan Per-Second Costs

    Use 512p at $0.01144 per second when that resolution meets your needs. Higher-resolution options cost $0.044 per second for 768P and $0.088 per second for 1080P.

  • 04

    Track the Returned Task

    Store the task_id returned by submission and query the Get Task Status endpoint for progress and results. Do not treat the initial submitted status as a completed video.

Had dan perkara yang perlu diketahui

  • Video generation is asynchronous and requires subsequent task-status queries.

  • Only 5- and 10-second durations are supported, and 1080p is limited to 5 seconds.

  • First-frame and last-frame images must be supplied as public URLs or Base64-encoded data.

Soalan lazim API MiniMax-Hailuo-02

How much does MiniMax-Hailuo-02 cost on APISea?

APISea pricing is $0.01144 per second for 512P, $0.044 per second for 768P, and $0.088 per second for 1080P. Billing is pay-as-you-go and applies only to successful requests; the default configuration is about 12% below the provider list price.

How do I call MiniMax-Hailuo-02 through the API?

Send a POST request to https://api.apisea.ai/v1/videos/generations with Bearer Token authentication, the model value MiniMax-Hailuo-02, and a required prompt. The response returns a task_id for querying generation progress and results.

Does MiniMax-Hailuo-02 support image-to-video generation?

Yes. Supply first_frame_image, last_frame_image, or both to guide the starting and ending frames, using public image URLs or Base64-encoded data.

What resolutions and video lengths are supported?

512p and 768p support 5- and 10-second videos. 1080p supports only 5-second videos; the defaults are 768p resolution and 5 seconds.

Can I control prompt optimization, moderation, and watermarks?

Yes: prompt_optimizer defaults to true, while fast_pretreatment, nsfw_check, and watermark default to false. Enabling fast_pretreatment can reduce prompt optimization time but may slightly affect optimization quality; enabling nsfw_check reviews prompts and input images with omni-moderation-latest.

Can I use MiniMax-Hailuo-02 videos commercially?

Commercial use is subject to the provider's terms. Check the applicable MiniMax terms before using generated videos in a commercial product or campaign.

Model berkaitan

Pilihan: 250+ model · Tambah nilai minimum $50

Mula membina dengan MiniMax-Hailuo-02

Satu kunci, bayar mengikut penggunaan bermula daripada $50, hanya dicaj untuk permintaan yang berjaya.