Skip to content

Create video

Submit MiniMax-H3 official-format multimodal video generation tasks, with support for H3-Context-IR prompt enhancement and video remix.

http
POST /v2/video_generation

Available models

Headers

NameTypeRequiredDescription
stringYesRequest authentication. Use a Bearer Token, for example: .
stringYesContent type. Must be .

Request body

NameTypeRequiredDescription
stringYesModel name. See Available models above.
array<object>NoMultimodal input array. Order affects role assignment. See child fields below.
stringYesContent type: , , , .
stringNoRequired when . Prompt text.
objectNoUsed when . Must include : public image URL. Supports JPG, JPEG, PNG, WEBP, HEIC, HEIF; max 30 MB per file; width/height 256–5760 px; aspect ratio 0.4–2.5. First frame ≤ 1, last frame ≤ 1, reference images ≤ 9.
objectNoUsed when . Must include : public reference video URL. Supports MP4, MOV with H.264/AVC or H.265/HEVC; max 50 MB per file; count ≤ 3; each clip 2–15 s, total duration ≤ 15 s; width/height 256–5760 px; aspect ratio 0.4–2.5; frame rate 23.976–60.
objectNoUsed when . Must include : public reference audio URL. Supports WAV, MP3; max 15 MB per file; count ≤ 3; each clip 2–15 s, total duration ≤ 15 s.
stringNoMedia role: - : first frame (image) - : last frame (image) - : reference image - : reference video - : reference audio
integerYesTarget video duration in seconds, range .
stringNoVideo aspect ratio: , , , , , , .
stringNoCallback URL after the task completes.
integerNoVideo duration in seconds, range , default .
stringNoVideo resolution: or , default .
booleanNoWhether to add an AIGC watermark to the generated video. Default .
stringNoCallback URL after the task completes.
array<object>NoOptional for this endpoint (overrides the shared definition above). Required when remixing by source video; the multimodal content array must include a item for the source video.
stringNoRequired when remixing by task ID. Source task ID.
stringYesVideo resolution. Fixed to for remix.
booleanNoWhether to add an AIGC watermark to the generated video.
stringNoCallback URL after the task completes.

Request example

bash
curl --location --request POST 'https://octopusx.ai/v2/h3_context_ir' \
  --header 'Authorization: Bearer <token>' \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --data-raw '{
    "model": "MiniMax-H3",
    "content": [
        {
            "type": "text",
            "text": "Epic space-opera theatrical trailer: a female captain stands alone before a vast observation window as the last fleet assembles and jumps away; blinding light and a shaking bridge leave her behind."
        }
    ],
    "duration": 5,
    "ratio": "16:9"
}'
bash
curl --location --request POST 'https://octopusx.ai/v2/h3_context_ir' \
  --header 'Authorization: Bearer <token>' \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --data-raw '{
    "model": "MiniMax-H3",
    "content": [
        {
            "type": "text",
            "text": "Pull focus to the people in the background and add more steam to the ramen bowl."
        },
        {
            "type": "image_url",
            "image_url": {
                "url": "https://example.com/image.png"
            },
            "role": "first_frame"
        }
    ],
    "duration": 5,
    "ratio": "adaptive"
}'
bash
curl --location --request POST 'https://octopusx.ai/v2/h3_context_ir' \
  --header 'Authorization: Bearer <token>' \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --data-raw '{
    "model": "MiniMax-H3",
    "content": [
        {
            "type": "text",
            "text": "Character speaking: Follow the wind, live free. Leave worries behind, enjoy the moment. Voice tone references audio 1."
        },
        {
            "type": "video_url",
            "video_url": {
                "url": "https://example.com/reference.mp4"
            },
            "role": "reference_video"
        },
        {
            "type": "audio_url",
            "audio_url": {
                "url": "https://example.com/reference.mp3"
            },
            "role": "reference_audio"
        }
    ],
    "duration": 5,
    "ratio": "adaptive"
}'
bash
curl --location --request POST 'https://octopusx.ai/v2/video_generation' \
  --header 'Authorization: Bearer <token>' \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --data-raw '{
    "model": "MiniMax-H3",
    "content": [
        {
            "type": "text",
            "text": "A cute orange cat playing the piano"
        }
    ],
    "duration": 5,
    "resolution": "2K",
    "aigc_watermark": true
}'
bash
curl --location --request POST 'https://octopusx.ai/v2/video_generation' \
  --header 'Authorization: Bearer <token>' \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --data-raw '{
    "model": "MiniMax-H3",
    "content": [
        {
            "type": "text",
            "text": "The camera slowly pushes in as the cat starts to play"
        },
        {
            "type": "image_url",
            "image_url": {
                "url": "https://example.com/cat.jpg"
            },
            "role": "first_frame"
        }
    ],
    "duration": 5,
    "resolution": "768P"
}'
bash
curl --location --request POST 'https://octopusx.ai/v2/video_regeneration' \
  --header 'Authorization: Bearer <token>' \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --data-raw '{
    "model": "MiniMax-H3",
    "content": [
        {
            "type": "text",
            "text": "Make the cat play a bit faster"
        },
        {
            "type": "video_url",
            "video_url": {
                "url": "https://example.com/original.mp4"
            }
        }
    ],
    "resolution": "2K"
}'
bash
curl --location --request POST 'https://octopusx.ai/v2/video_regeneration' \
  --header 'Authorization: Bearer <token>' \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --data-raw '{
    "model": "MiniMax-H3",
    "source_task_id": "426586401755526",
    "resolution": "2K"
}'

Response example

json
{
  "task_id": "426586401755526"
}
json
{
  "task_id": "426586401755527"
}
json
{
  "task_id": "426586401755528"
}

Response fields

NameTypeDescription
stringTask ID for Task query (official format).