{
  "openapi": "3.0.1",
  "info": {
    "title": "AI Viral Clip Generator – Long Video to Shorts",
    "description": "Turn podcasts, interviews, webinars, and long videos into distinct, non-overlapping 9:16 clips. AI selects strong moments, follows the active speaker, adds or translates subtitles in 10 languages, validates every MP4, and returns SRT, VTT, metadata, and ZIP.",
    "version": "1.0",
    "x-build-id": "9KjnpYzeyWLsCOrmY"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lumaxys~ai-viral-clip-generator/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lumaxys-ai-viral-clip-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/lumaxys~ai-viral-clip-generator/runs": {
      "post": {
        "operationId": "runs-sync-lumaxys-ai-viral-clip-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/lumaxys~ai-viral-clip-generator/run-sync": {
      "post": {
        "operationId": "run-sync-lumaxys-ai-viral-clip-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": [
          "confirmContentRights"
        ],
        "properties": {
          "videoFile": {
            "title": "Video file",
            "maxItems": 1,
            "type": "array",
            "description": "Upload the long video you want to turn into clips. MP4, MOV, MKV or WebM, up to 500 MB and 90 minutes. Use this or a direct URL, not both.",
            "items": {
              "type": "string"
            }
          },
          "videoUrl": {
            "title": "Direct video URL (optional)",
            "type": "string",
            "description": "A direct link to a video file, such as https://example.com/interview.mp4. Pages on YouTube, TikTok, Instagram and similar platforms are not supported and are refused with an explanation."
          },
          "confirmContentRights": {
            "title": "I own this content or am authorised to transform it",
            "type": "boolean",
            "description": "Required. Processing does not start until this is ticked.",
            "default": false
          },
          "clipCount": {
            "title": "Number of clips",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many short clips to produce. Fewer clips may be returned if the source does not contain enough usable passages.",
            "default": 3
          },
          "targetClipDuration": {
            "title": "Clip length",
            "enum": [
              "15-30",
              "30-60",
              "60-90"
            ],
            "type": "string",
            "description": "Preferred duration range for each generated clip.",
            "default": "30-60"
          },
          "platform": {
            "title": "Target platform",
            "enum": [
              "TikTok",
              "Instagram Reels",
              "YouTube Shorts",
              "Generic vertical"
            ],
            "type": "string",
            "description": "Only affects the suggested metadata; every clip is rendered the same way.",
            "default": "TikTok"
          },
          "sourceLanguage": {
            "title": "Input language",
            "type": "string",
            "description": "Leave empty to detect the language automatically. Detection covers far more languages than the output list below."
          },
          "outputLanguage": {
            "title": "Translate clips into (optional)",
            "enum": [
              "EN-US",
              "ES",
              "FR",
              "DE",
              "IT",
              "PT-BR",
              "AR",
              "ZH-HANS",
              "JA",
              "KO"
            ],
            "type": "string",
            "description": "Leave empty to keep the original language. Translation is machine-produced and is not reviewed by a human translator."
          },
          "outputLanguageMode": {
            "title": "Which subtitles to publish",
            "enum": [
              "original",
              "translations",
              "both"
            ],
            "type": "string",
            "description": "Choosing a translated option requires an output language.",
            "default": "original"
          },
          "aspectRatio": {
            "title": "Aspect ratio",
            "enum": [
              "9:16"
            ],
            "type": "string",
            "description": "This version produces vertical 9:16 clips only. Square and landscape output are not available yet.",
            "default": "9:16"
          },
          "resolution": {
            "title": "Resolution",
            "enum": [
              "720x1280",
              "1080x1920"
            ],
            "type": "string",
            "description": "Output resolution for vertical 9:16 clips.",
            "default": "720x1280"
          },
          "cropMode": {
            "title": "Framing",
            "enum": [
              "face_tracking",
              "center_crop",
              "blurred_background"
            ],
            "type": "string",
            "description": "Face tracking uses on-device detection. When no reliable face is found the fallback below is applied and the clip reports which framing was really used.",
            "default": "face_tracking"
          },
          "fallbackCropMode": {
            "title": "If no face is detected",
            "enum": [
              "center_crop",
              "blurred_background"
            ],
            "type": "string",
            "description": "Cropping method used when face tracking cannot produce a reliable result. Centre crop is recommended for a true full-frame vertical clip; blurred background preserves the complete landscape frame.",
            "default": "center_crop"
          },
          "burnSubtitles": {
            "title": "Burn subtitles into the video",
            "type": "boolean",
            "description": "Burn the generated subtitles directly into each video.",
            "default": true
          },
          "subtitleStyle": {
            "title": "Subtitle style",
            "enum": [
              "Clean",
              "Bold",
              "Minimal"
            ],
            "type": "string",
            "description": "Visual style applied to burned-in subtitles.",
            "default": "Clean"
          },
          "generateSrt": {
            "title": "Also produce .srt files",
            "type": "boolean",
            "description": "Generate a separate SRT subtitle file for each delivered clip.",
            "default": true
          },
          "generateVtt": {
            "title": "Also produce .vtt files",
            "type": "boolean",
            "description": "Generate a separate WebVTT subtitle file for each delivered clip.",
            "default": true
          },
          "createZip": {
            "title": "Package everything in a ZIP",
            "type": "boolean",
            "description": "Create a ZIP archive containing all delivered files.",
            "default": true
          },
          "maxCostUsd": {
            "title": "Maximum cost for this run (USD)",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "The run stops before contacting any paid service if the estimate exceeds this. The estimate is shown in the result.",
            "default": 5
          },
          "minimumViralScore": {
            "title": "Minimum score (0-100)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Passages scoring below this are discarded. The score is an editorial estimate, not a prediction of performance.",
            "default": 0
          },
          "avoidOverlaps": {
            "title": "Avoid overlapping clips",
            "type": "boolean",
            "description": "Prevent selected passages from significantly overlapping each other.",
            "default": true
          },
          "maxMediaMinutes": {
            "title": "Refuse sources longer than (minutes)",
            "minimum": 1,
            "maximum": 180,
            "type": "integer",
            "description": "Maximum accepted source-media duration in minutes.",
            "default": 90
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}