{
  "openapi": "3.0.1",
  "info": {
    "title": "Video Contact Sheet: Storyboard Grid Image from Any Video",
    "description": "Turn video file URLs into a storyboard contact sheet: one grid image with timecodes and a tile-to-timestamp list. Frames evenly, every N seconds or by scene; set columns, size and header. Good for LLM vision. Direct files only, no YouTube. Free when a video fails.",
    "version": "0.1",
    "x-build-id": "ZLVz4alioYdCoLXU2"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/data-done-right~video-contact-sheet/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-data-done-right-video-contact-sheet",
        "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/data-done-right~video-contact-sheet/runs": {
      "post": {
        "operationId": "runs-sync-data-done-right-video-contact-sheet",
        "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/data-done-right~video-contact-sheet/run-sync": {
      "post": {
        "operationId": "run-sync-data-done-right-video-contact-sheet",
        "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": [
          "videoUrls"
        ],
        "properties": {
          "videoUrls": {
            "title": "Video URLs",
            "type": "array",
            "description": "Direct links to video files (mp4, mov, webm, mkv, avi). Example: https://example.com/clip.mp4. Each video gets one contact sheet (more if you split it). YouTube, Vimeo, TikTok and other streaming-site page links are rejected, with no charge.",
            "items": {
              "type": "string"
            }
          },
          "videos": {
            "title": "Videos with their own name",
            "type": "array",
            "description": "Optional: [{\"url\": \"https://example.com/a.mp4\", \"name\": \"launch-ad\"}, ...]. The name goes into the file names and the sheet header. Used in addition to 'Video URLs'."
          },
          "selection": {
            "title": "How to pick the frames",
            "enum": [
              "even",
              "interval",
              "scene"
            ],
            "type": "string",
            "description": "even = N frames evenly spaced over the whole video. interval = one frame every N seconds. scene = one frame per scene (the Actor scans the whole video for cuts; long videos take longer).",
            "default": "even"
          },
          "tiles": {
            "title": "Number of tiles",
            "minimum": 1,
            "maximum": 96,
            "type": "integer",
            "description": "Frames on the sheet. In interval mode this is the maximum (the interval is widened if the video would need more). Example: 12.",
            "default": 12
          },
          "intervalSeconds": {
            "title": "Interval (seconds)",
            "minimum": 0.5,
            "maximum": 86400,
            "type": "number",
            "description": "Interval mode only: one frame in the middle of every N seconds. Example: 10.",
            "default": 10
          },
          "sceneThreshold": {
            "title": "Scene sensitivity (0.05-0.95)",
            "minimum": 0.05,
            "maximum": 0.95,
            "type": "number",
            "description": "Scene mode only. Lower finds more, smaller changes; higher only hard cuts. 0.3 suits most videos. Example: 0.3.",
            "default": 0.3
          },
          "minSceneSeconds": {
            "title": "Shortest scene (seconds)",
            "minimum": 0.2,
            "maximum": 600,
            "type": "number",
            "description": "Scene mode only. Cuts closer together than this are merged (dissolves and flashes produce many detections). Example: 1.",
            "default": 1
          },
          "fillMissingScenes": {
            "title": "Fill up with evenly placed frames",
            "type": "boolean",
            "description": "Scene mode only. When fewer scenes than tiles are found, add frames in the longest gaps so the sheet has the tile count you asked for. Off = the sheet has only the scene frames.",
            "default": true
          },
          "layout": {
            "title": "Grid layout",
            "enum": [
              "grid",
              "auto",
              "filmstrip",
              "vertical"
            ],
            "type": "string",
            "description": "grid = the number of columns below. auto = a near-4:3 grid for the tile count. filmstrip = one row. vertical = one column.",
            "default": "grid"
          },
          "columns": {
            "title": "Columns",
            "minimum": 1,
            "maximum": 12,
            "type": "integer",
            "description": "Tiles per row for the 'grid' layout. Example: 4.",
            "default": 4
          },
          "tileWidth": {
            "title": "Tile width (px)",
            "minimum": 80,
            "maximum": 640,
            "type": "integer",
            "description": "Width of one tile. A tile is never larger than the video itself. Example: 320.",
            "default": 320
          },
          "tilePadding": {
            "title": "Gap between tiles (px)",
            "minimum": 0,
            "maximum": 40,
            "type": "integer",
            "description": "Space between and around tiles. 0 = tiles touch. Example: 4.",
            "default": 4
          },
          "backgroundColor": {
            "title": "Background colour",
            "type": "string",
            "description": "Hex colour of the gaps and the header strip. Example: #181818 (dark) or #ffffff (white).",
            "default": "#181818"
          },
          "tileLabels": {
            "title": "Tile labels",
            "enum": [
              "timecode",
              "timecode+number",
              "number",
              "none"
            ],
            "type": "string",
            "description": "timecode = the time in the corner of each tile. number = the tile number (matches the 'tiles' list in the output). none = clean frames.",
            "default": "timecode"
          },
          "labelPosition": {
            "title": "Label corner",
            "enum": [
              "bottom-left",
              "bottom-right",
              "top-left",
              "top-right"
            ],
            "type": "string",
            "description": "Which corner of the tile carries the label.",
            "default": "bottom-left"
          },
          "headerStrip": {
            "title": "Header strip",
            "type": "boolean",
            "description": "Add a strip above the grid with the video name, length, resolution and tile count (the sheet then explains itself to a person or a vision model).",
            "default": true
          },
          "maxSheetWidth": {
            "title": "Max sheet width (px)",
            "minimum": 0,
            "maximum": 8000,
            "type": "integer",
            "description": "0 = no limit. If the sheet would be wider, tiles are shrunk to fit. Useful when a vision model or a chat tool downsizes big images. Example: 1600.",
            "default": 0
          },
          "maxSheetHeight": {
            "title": "Max sheet height (px)",
            "minimum": 0,
            "maximum": 8000,
            "type": "integer",
            "description": "0 = no limit. If the sheet would be taller, tiles are shrunk to fit. Example: 1600.",
            "default": 0
          },
          "tilesPerSheet": {
            "title": "Tiles per sheet (0 = one sheet)",
            "minimum": 0,
            "maximum": 48,
            "type": "integer",
            "description": "Split a long storyboard into several sheets of at most this many tiles; each sheet is a separate image, row and charge. 0 puts all tiles on one sheet. Example: 24.",
            "default": 0
          },
          "maxSheetsPerVideo": {
            "title": "Max sheets per video",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Caps what one video can cost when you split it. Tiles beyond the cap are left out (with a note). Example: 4.",
            "default": 4
          },
          "imageFormat": {
            "title": "Image format",
            "enum": [
              "jpg",
              "png",
              "webp"
            ],
            "type": "string",
            "description": "File type of the sheets.",
            "default": "jpg"
          },
          "imageQuality": {
            "title": "Image quality (1-100)",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "JPG and WebP only. 85 is a good balance. Ignored for PNG.",
            "default": 85
          },
          "maxVideosPerRun": {
            "title": "Max videos per run",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard cap on videos processed in one run (and so on what you can be charged). Videos past the cap are listed as skipped.",
            "default": 100
          },
          "maxVideoSizeMb": {
            "title": "Max video file size (MB)",
            "minimum": 1,
            "maximum": 2048,
            "type": "integer",
            "description": "Source files above this size are rejected before the download finishes.",
            "default": 500
          },
          "maxDurationMinutes": {
            "title": "Max video duration (minutes)",
            "minimum": 0.1,
            "type": "number",
            "description": "Longer videos are rejected without charge. Example: 240 = 4 hours.",
            "default": 240
          },
          "maxSceneScanMinutes": {
            "title": "Max length for scene scan (minutes)",
            "minimum": 1,
            "type": "number",
            "description": "Scene mode decodes the whole video. Videos longer than this get evenly spaced tiles instead (with a note). Example: 5. Raising it raises the compute time per sheet.",
            "default": 5
          },
          "videoTimeoutSecs": {
            "title": "Timeout (seconds)",
            "minimum": 10,
            "maximum": 7200,
            "type": "integer",
            "description": "Applies separately to each download and to each ffmpeg step.",
            "default": 600
          },
          "outputStoreName": {
            "title": "Save images in a named store",
            "type": "string",
            "description": "Optional key-value store name. Named stores are kept until you delete them, while a run's own store expires after your plan's retention period. Example: my-contact-sheets."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}