{
  "openapi": "3.0.1",
  "info": {
    "title": "MiniMax H3 AI Video Generator: Text to Video, Image to Video",
    "description": "Generate realistic AI videos with sound with MiniMax H3: text to video, image to video, and reference-to-video that keeps your product or character from up to 2 images. 5 or 10 s, HD or SD, 16:9, 9:16 or 1:1 MP4. From $0.144 per video.",
    "version": "0.1",
    "x-build-id": "DixtKTm7kmJGcorHV"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/deapi~minimax-video-generator/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-deapi-minimax-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/deapi~minimax-video-generator/runs": {
      "post": {
        "operationId": "runs-sync-deapi-minimax-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/deapi~minimax-video-generator/run-sync": {
      "post": {
        "operationId": "run-sync-deapi-minimax-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",
        "properties": {
          "prompt": {
            "title": "Prompt",
            "type": "string",
            "description": "Describe the video: the subject, what happens, the setting, the camera and the light. English works best. Sound (ambience, effects, music) is generated with the picture. With reference images, address them as `<Picture 1>` and `<Picture 2>`. Up to 2,500 characters. To make several videos in one run, use **Batch of videos** below instead."
          },
          "imageUrl": {
            "title": "Start image URL (image to video)",
            "type": "string",
            "description": "Optional. A direct link to a JPG, PNG or WebP picture that becomes the **first frame** of the video (image to video): the prompt then describes how it moves. Leave empty for text to video. At least 64 px a side, up to 25 MB."
          },
          "lastFrameUrl": {
            "title": "End image URL",
            "type": "string",
            "description": "Optional, with a start image only (not with reference images). A picture the video should end on, for a transition between two frames."
          },
          "referenceImageUrls": {
            "title": "Reference images (reference to video)",
            "maxItems": 2,
            "type": "array",
            "description": "Optional, instead of a start image. Up to **2** pictures of a product, a character or a place that the video should keep, in a new scene. Address them in the prompt in order: `<Picture 1>`, `<Picture 2>` — for example `<Picture 1> walks into the cafe from <Picture 2>`. Each picture must be no more than 4 times longer than it is wide.",
            "items": {
              "type": "string"
            }
          },
          "quality": {
            "title": "Quality",
            "enum": [
              "hd",
              "sd"
            ],
            "type": "string",
            "description": "Resolution of the video. HD is 1344 x 768 (768 x 1344 vertical, 992 x 992 square); SD is 896 x 512 (512 x 896, 640 x 640).",
            "default": "hd"
          },
          "duration": {
            "title": "Duration",
            "enum": [
              "5",
              "10"
            ],
            "type": "string",
            "description": "Length of each video. 24 frames per second, with sound.",
            "default": "5"
          },
          "aspectRatio": {
            "title": "Aspect ratio",
            "enum": [
              "auto",
              "16:9",
              "9:16",
              "1:1"
            ],
            "type": "string",
            "description": "Shape of the video; the resolution depends on Quality.",
            "default": "auto"
          },
          "seed": {
            "title": "Seed",
            "minimum": 0,
            "maximum": 2147483647,
            "type": "integer",
            "description": "Optional. The same prompt, settings and seed give the same video again. Leave empty for a random seed; the seed used is in the output."
          },
          "videos": {
            "title": "Batch of videos",
            "type": "array",
            "description": "Optional. Up to **10 videos per run**, each an object with `prompt` and optionally `imageUrl`, `lastFrameUrl`, `referenceImageUrls`, `quality`, `duration`, `aspectRatio` and `seed` (the settings above are the defaults). When this list is filled, the single prompt above is ignored. Example: `[{\"prompt\": \"A paper boat drifting down a rainy street\"}, {\"prompt\": \"Waves at dusk\", \"duration\": \"10\"}]`. **Paid Apify plans only; to try AI video for free, use the LTX-2.5 AI Video Generator.**"
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}