Let AI pick thumbnail frames
Needs a key withgenerations:submit
"Let AI pick": finds the video's candidate frames (as extract), then has a vision model tag each one (people and expressions, products, the setting, the moment, the thumbnail role it suits) and pick the best 1–3 with a reason; with speech, it also suggests a thumbnail brief. Kept per video content: a video analyzed before returns its result at once, free. Otherwise the analysis is queued and charged (402 when the workspace can't cover it; refunded if it fails): follow it with GET /video-frames/{analysisId}/events. Videos up to 2 GB.
Requires scope generations:submit.
apiKeyx-api-key<token>An API key of your workspace (rmg_…), created in the web app. It acts for that workspace, not for a person, and keeps working when its creator leaves.
application/json- body
key*stringStorage key of one of your videos (an upload or a generation's output).
1 <= length <= 1024maxFrames?integerHow many candidate frames to keep (1–96, default 48). Used the first time a video is analyzed; later calls return what was kept then.
1 <= value <= 96The analysis, done or queued.
application/json- response
A video's candidate thumbnail frames and AI picks.
brief*|A thumbnail brief suggested from what the video says (subject, promise, job and recipe ids of the thumbnail engine), when it has speech.
completedAt*string|nullcreatedAt*stringcredits*integerCredits charged so far (only the AI pick is charged).
durationSeconds*number|nullerror*string|nullframes*array<>|The candidates in time order, once extracted.
id*stringmode*stringWhat the latest run does: extract (candidates only, free) or pick (the AI's tags and picks too).
"extract""pick"picks*array<>|The AI's 1–3 best frames, with roles and reasons.
progress*integer0 <= value <= 100stage*string"queued""extracting""picking""completed""failed"status*string"queued""processing""completed""failed"videoKey*stringcurl -X POST 'https://api.remagica.com/api/v1/video-frames/analyze' \ -H 'Content-Type: application/json' \ -d '{ "key": "uploads/org_123/0b6c.../talk.mp4"}'{ "brief": { "headline": "string", "job": "string", "promise": "string", "recipe": "string", "subject": "string", "title": "Autumn campaign" }, "completedAt": "string", "createdAt": "string", "credits": 12, "durationSeconds": 5, "error": null, "frames": [ { "exposure": 1, "faces": [ { "h": 1, "w": 1, "x": 1, "y": 1 } ], "height": 1280, "key": "generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.png", "ms": 1, "scene": true, "score": 1, "sharpness": 1, "tags": { "environment": "string", "moment": "string", "objects": [ "string" ], "people": [ { "expression": "string", "eyeContact": true } ], "products": [ "string" ], "quality": 1, "role": "subject" }, "url": "https://files.remagica.com/generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.png", "width": 1024 } ], "id": "a5614527-5b3d-4f60-8e2a-1d9c6b4f7e05", "mode": "extract", "picks": [ { "key": "generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.png", "ms": 1, "reason": "string", "role": "subject", "url": "https://files.remagica.com/generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.png" } ], "progress": 1, "stage": "queued", "status": "queued", "videoKey": "generations/e661f4c9-5b3d-4f60-8e2a-1d9c6b4f7e05/0.mp4"}