{
  "openapi": "3.0.1",
  "info": {
    "title": "Video Breakdown AI – Hook Score, Shot List & Summary",
    "description": "Analyze your own video files with a vision AI: hook of the first 3 seconds with a score, timestamped shot list, on-screen text, products and brands seen, summary, captions and hashtags as JSON. MP4/MOV/WebM links or uploads. No API key. Failed files free.",
    "version": "0.1",
    "x-build-id": "k9eJc7Psulery1fvF"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/gazidev~ai-video-analyzer/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-gazidev-ai-video-analyzer",
        "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/gazidev~ai-video-analyzer/runs": {
      "post": {
        "operationId": "runs-sync-gazidev-ai-video-analyzer",
        "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/gazidev~ai-video-analyzer/run-sync": {
      "post": {
        "operationId": "run-sync-gazidev-ai-video-analyzer",
        "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": {
          "videoUrls": {
            "title": "Video file URLs",
            "type": "array",
            "description": "Direct links to video files you have the right to analyze: MP4, MOV, WebM, MKV, AVI, M4V and more (your CDN, S3/R2/GCS bucket, Dropbox or Google Drive file shared as 'Anyone with the link', OneDrive). **YouTube, TikTok, Instagram, Facebook, X, Vimeo, Twitch and other platform page links are rejected** (free error row): their terms of service forbid downloading. Export the file from your editor or your own account and upload it below instead.",
            "default": [
              "https://upload.wikimedia.org/wikipedia/commons/2/2c/Abbott_and_Costello_Go_to_Mars_Official_Trailer_%281953%29.webm"
            ],
            "items": {
              "type": "string"
            }
          },
          "uploadedVideos": {
            "title": "Or upload video files",
            "type": "array",
            "description": "Upload video files from your computer (your own ads, reels, UGC, drafts). They are analyzed after the URLs above."
          },
          "datasetId": {
            "title": "Read video URLs from an Apify dataset",
            "type": "string",
            "description": "Optional. Chain after another Actor: every value of the field below (string or array of strings) is processed like a video URL."
          },
          "datasetField": {
            "title": "Dataset field with the video URL",
            "type": "string",
            "description": "Name of the dataset field that holds the video file URL, e.g. `url`, `videoUrl` or `fileUrl`.",
            "default": "url"
          },
          "keyValueStoreId": {
            "title": "Videos stored in an Apify key-value store",
            "type": "string",
            "description": "Optional. Every record in this store is analyzed as a video file (e.g. files you uploaded with the Apify API). JSON/text records become free error rows."
          },
          "keyValueStorePrefix": {
            "title": "Only keys starting with",
            "type": "string",
            "description": "Optional key prefix filter for the key-value store (e.g. `video-`)."
          },
          "maxVideos": {
            "title": "Max videos per run",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many inputs (0 = no limit). Useful when reading a large dataset or store.",
            "default": 0
          },
          "model": {
            "title": "Vision AI model",
            "enum": [
              "google/gemini-2.5-flash-lite",
              "google/gemini-2.5-flash",
              "openai/gpt-4.1-mini",
              "openai/gpt-5-mini",
              "anthropic/claude-haiku-4.5"
            ],
            "type": "string",
            "description": "Called through Apify's OpenRouter Actor; token cost is billed to your Apify account at OpenRouter prices (10x on the Apify free plan). Default: about $0.001-0.003 per short video on paid plans. See README.",
            "default": "google/gemini-2.5-flash-lite"
          },
          "customModel": {
            "title": "Custom OpenRouter model ID",
            "type": "string",
            "description": "Optional: any vision-capable model ID from openrouter.ai/models, e.g. `qwen/qwen2.5-vl-72b-instruct`. Overrides the select above."
          },
          "outputLanguage": {
            "title": "Output language",
            "type": "string",
            "description": "Language for the summary, captions and hashtags, e.g. `English`, `Spanish`, `Turkish`. Empty = the language spoken in the video.",
            "default": ""
          },
          "instructions": {
            "title": "Extra instructions for the AI",
            "type": "string",
            "description": "Optional, e.g. `Captions for TikTok, playful tone, mention free shipping` or `Our brand is Acme; flag competitor logos`."
          },
          "captionCount": {
            "title": "Suggested captions",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many ready-to-post captions to write.",
            "default": 3
          },
          "hashtagCount": {
            "title": "Suggested hashtags",
            "minimum": 0,
            "maximum": 30,
            "type": "integer",
            "description": "How many hashtags to suggest (0 = none).",
            "default": 12
          },
          "maxFramesForAI": {
            "title": "Max shot keyframes sent to the AI",
            "minimum": 1,
            "maximum": 40,
            "type": "integer",
            "description": "Up to this many shot keyframes (evenly spread) plus 3 hook frames from the first 3 seconds are sent to the model. More frames = finer shot descriptions and more image tokens.",
            "default": 16
          },
          "sceneThreshold": {
            "title": "Shot-cut sensitivity",
            "minimum": 0.05,
            "maximum": 0.95,
            "type": "number",
            "description": "ffmpeg scene-change score (0.05–0.95) above which a new shot starts. Lower = more shots (0.2 for subtle cuts), higher = only hard cuts.",
            "default": 0.3
          },
          "minShotSeconds": {
            "title": "Minimum shot length (seconds)",
            "minimum": 0,
            "maximum": 600,
            "type": "number",
            "description": "Cuts closer than this to the previous one are merged (fast montages, flashes).",
            "default": 1
          },
          "maxShotSeconds": {
            "title": "Maximum shot length (seconds)",
            "minimum": 0,
            "maximum": 3600,
            "type": "number",
            "description": "Longer shots (talking heads, screen recordings) are split so the AI sees a frame at least this often. 0 = never split.",
            "default": 20
          },
          "maxShots": {
            "title": "Max shots per video",
            "minimum": 1,
            "maximum": 60,
            "type": "integer",
            "description": "Upper limit on shots in the shot list (default 24 keeps the AI answer within the 2,048-token output limit of Apify's OpenRouter Actor). If more cuts are found, evenly spread ones are kept.",
            "default": 24
          },
          "keyframeGrid": {
            "title": "Keyframe grid image",
            "type": "boolean",
            "description": "Save one contact-sheet JPEG of all shot keyframes with shot number and timecode (`gridImageUrl`). Free.",
            "default": true
          },
          "transcribe": {
            "title": "Transcribe speech (Whisper)",
            "type": "boolean",
            "description": "Transcribe speech with Whisper (on-CPU, included in the price) so the AI knows what is said, including the spoken hook. Turn off for silent or music-only videos.",
            "default": true
          },
          "whisperModel": {
            "title": "Whisper model",
            "enum": [
              "base",
              "tiny"
            ],
            "type": "string",
            "description": "`base`: good accuracy for clear speech in 99 languages. `tiny`: about 2× faster, fine for clean English. Same price.",
            "default": "base"
          },
          "language": {
            "title": "Spoken language",
            "type": "string",
            "description": "`auto` detects the language from the first 30 seconds of speech. Or force a Whisper code (`en`, `es`, `de`, `fr`, `pt`, `it`, `nl`, `tr`, `ru`, `ja`, `zh`, `ar`, `hi`…) for short or noisy clips.",
            "default": "auto"
          },
          "vocabularyHint": {
            "title": "Vocabulary hint",
            "type": "string",
            "description": "Optional names and jargon that help Whisper spell them right, e.g. `Apify, Kubernetes, Dr. Nguyen`."
          },
          "maxDurationMinutes": {
            "title": "Max minutes analyzed per video",
            "minimum": 0.25,
            "maximum": 120,
            "type": "number",
            "description": "Only the first N minutes of each video are analyzed (`truncated: true`). The base price covers the first minute; each further started minute is one `extra-video-minute` event.",
            "default": 10
          },
          "maxFileSizeMB": {
            "title": "Max file size (MB)",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Larger downloads are stopped (free error row).",
            "default": 1000
          },
          "downloadTimeoutSecs": {
            "title": "Download timeout (seconds)",
            "minimum": 30,
            "maximum": 3600,
            "type": "integer",
            "description": "Maximum time to download one file. Retried on network errors and HTTP 429/5xx.",
            "default": 600
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}