{
  "id": 23882288,
  "title": "Preparing video for multimodal LLMs with one API call",
  "url": "https://urgent.news/2026/12/06/preparing-video-for-multimodal-llms-with-one-api-call",
  "topic": "ai",
  "section": "AI",
  "published": "2026-12-06T18:51:02.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/sawfish_labs_c87e64999cf5/preparing-video-for-multimodal-llms-with-one-api-call-2n7b"
  },
  "original_language": null,
  "account": "Most multimodal pipelines cannot \"watch\" a video file directly. Instead, they sample frames, track their timestamps, and send a grid along with metadata to the model. This process can be cumbersome with FFmpeg, requiring the use of select, showinfo, passthrough timing, and parsing for each task. To streamline this process, Sawfish was created as a small FFmpeg API on Apify. It allows users to perform one simple call for video preparation.\n\nUsing Sawfish, one can make a post request to the API endpoint, providing the video URL, desired grid dimensions, and other parameters. The API returns a contact sheet (JPG or WebP) containing the original timestamps, a JSON manifest with metadata, grid specifications, frame timestamps, and a vision hint. This information is ready to be integrated into a vision prompt. Additionally, Sawfish offers other recipe operations such as recipe/transcribe-prep for mono 16 kHz WAV files, loudness-normalized to -16 LUFS for speech-to-text, and recipe/shorts-prep for trimming videos into a 9:16 aspect ratio and normalizing audio to -14 LUFS.\n\nOther operations available in Sawfish include probe for simple checks, trim for fast or frame-accurate cutting, extract-audio to isolate the audio track, normalize-audio (2-pass EBU R128) to ensure audio quality, contact-sheet to generate the image grid, and burn-subtitles to add SRT/ASS formatted subtitles to the video. The service charges per event rather than a subscription fee. The vision-prep operation costs around $0.0095, while the probe costs about $0.002. Before executing any tasks, Sawfish verifies the user's spending cap and stops the job if it would exceed the limit.\n\nCurrently, Sawfish has some limitations, such as an input size of 100 MB, a maximum runtime of 10 minutes, and an output resolution of 1080p. Users can also call Sawfish as a tool from the Apify MCP server. The service is still new, so feedback on desired future recipes or potential issues is welcomed.",
  "summary": "Most multimodal pipelines can't \"watch\" a video file directly. In practice you sample frames, keep track of their timestamps, and send a grid plus some metadata to the model. Doing that well with FFmpeg means select , showinfo , passthrough timing and a bit of parsing — every single time. I got tired of rewriting that glue code, so I packaged it as Sawfish , a small pay-per-task FFmpeg API on…",
  "summary_source": "publisher",
  "key_points": [
    "Sawfish simplifies video preparation for multimodal LLMs with one API call",
    "Users provide video URL, grid dimensions, and parameters for API request",
    "API returns contact sheet, JSON manifest, grid specs, and vision hint"
  ],
  "editors_take": null,
  "opinion": false,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "outlets_capped": false,
    "also_reported_by": []
  },
  "machine_translated": false,
  "ai_generated": true,
  "disclaimer": "Accounts, briefs, key points, the editor’s take and translations are written by software from other outlets’ reporting and may contain errors. A summary whose summary_source is \"publisher\" is the outlet’s own feed text. Always check the linked original."
}