{
  "openapi": "3.0.1",
  "info": {
    "title": "MiniMax Hailuo H3 AI Video Generator (Text & Reference)",
    "description": "AI video generator with sound: turn a text prompt — or up to 9 reference images — into a 4–8s MP4 with MiniMax Hailuo H3. 480p & 720p, 9:16 for TikTok & Reels, from $0.04/s. No GPU or subscription — a pay-as-you-go Veo, Runway & Kling alternative.",
    "version": "0.1",
    "x-build-id": "lzp6jFC2CaX5f1Zk2"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/danitn11~minimax-h3-video-generator/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-danitn11-minimax-h3-video-generator",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/danitn11~minimax-h3-video-generator/runs": {
      "post": {
        "operationId": "runs-sync-danitn11-minimax-h3-video-generator",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/danitn11~minimax-h3-video-generator/run-sync": {
      "post": {
        "operationId": "run-sync-danitn11-minimax-h3-video-generator",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "prompt"
        ],
        "properties": {
          "prompt": {
            "title": "Prompt",
            "type": "string",
            "description": "Describe the video you want — subject, action, setting, and camera work, e.g. \"A chef plates a dish in a busy kitchen, slow dolly in, warm light\". H3 also generates matching sound, so you can describe audio too: \"rain on the window, distant thunder\"."
          },
          "imageUrl": {
            "title": "First frame image URL (optional)",
            "type": "string",
            "description": "Animate a photo: this image becomes the first frame of the video. Leave empty for text-to-video. Cannot be combined with reference URLs — those are a different mode."
          },
          "endImageUrl": {
            "title": "Last frame image URL (optional)",
            "type": "string",
            "description": "Optional final frame — the video transitions from the first frame to this one. Only works together with a first frame image."
          },
          "referenceUrls": {
            "title": "Reference URLs (optional)",
            "maxItems": 5,
            "type": "array",
            "description": "Add up to 5 public URLs — images, video, or audio — to run reference-to-video: the characters, objects, styles, or voices in them are carried into a brand-new shot (not used as frames). Each reference adds $0.01 to the run. Cannot be combined with a first frame image. Each URL must be directly downloadable (no Google Drive share links or auth-gated URLs).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "resolution": {
            "title": "Resolution",
            "enum": [
              "480p",
              "720p"
            ],
            "type": "string",
            "description": "Output video resolution. 480p is fastest and cheapest; 720p is sharper. Pricing is per second and depends on resolution.",
            "default": "480p"
          },
          "aspectRatio": {
            "title": "Aspect ratio",
            "enum": [
              "9:16",
              "16:9",
              "1:1",
              "21:9",
              "4:3",
              "3:4"
            ],
            "type": "string",
            "description": "9:16 for TikTok/Reels/Shorts, 16:9 for YouTube/landscape, 1:1 for square posts, 21:9 for cinematic, 4:3/3:4 for classic formats.",
            "default": "9:16"
          },
          "duration": {
            "title": "Duration (seconds)",
            "minimum": 4,
            "maximum": 8,
            "type": "integer",
            "description": "Length of the generated video, 4–8 seconds. You are charged per second.",
            "default": 6
          },
          "negativePrompt": {
            "title": "Negative prompt",
            "type": "string",
            "description": "What to avoid in the video. Only applies when a first frame image or references are attached.",
            "default": "blur, distort, and low quality"
          },
          "cfgScale": {
            "title": "Guidance scale (CFG)",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "How closely the result follows your images and prompt, 0–5. 3.5 is a good default; higher sticks to the input more literally but can reduce motion. Only applies when a first frame image or references are attached.",
            "default": 3.5
          },
          "seed": {
            "title": "Seed",
            "type": "integer",
            "description": "Leave empty for a new random result each run. Set a number to reproduce the same video from the same input."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}