Generating with the API

The sidecar that the API returns is exactly the analyzemedia 0.1 document that these pages describe. This page explains how the API's response maps to the format.

Two other places cover the API itself. The overview shows the four calls, and pricing lists the prices and the limits. The route reference documents every route with its request and response bodies, the error codes, the rate limits, and the webhook format.

What you declare and what you get

Three result formats

format=what it is
analyzemediaThe sidecar. This is the default. Save it as <name>.analyzemedia next to the original.
textThe same document rendered as plain text for a model, as reading one describes.
jsonThe API's full internal analysis. It is larger than the format, and it can change between releases. Use it to debug a result, and keep the sidecar.

The original and the proxy

The analysis only needs a 720p-class copy of a video. A client can upload a proxy and describe the original in source on the analysis request: name, bytes, sha256, quick_hash, capture time with the camera's time zone, location, camera, and the video and audio track facts. The API then writes the document about the original. The document's source block holds what the client declared, and generated.proxy records what the API analyzed. The API reads nothing from the proxy's own metadata for this. Pricing lists the limits and the proxy recipe.