API referenceGenerations
Follow a frame analysis
GET
Needs a key withgenerations:read
Streams one frame analysis as server-sent events: its state at once (as GET /video-frames/{analysisId}), then each change, then a done event ({"status": "completed"} or "failed") when it ends. A stream closed without done (after 15 minutes at most) means it's still running: reconnect.
Requires scope generations:read.
apiKeyheader
x-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.
analysisId*stringLength
1 <= length <= 128An event stream of the analysis, ending when it does.
text/event-stream- response
event*unknowndata*A video's candidate thumbnail frames and AI picks.
id?stringretry?numbercurl -X GET 'https://api.remagica.com/api/v1/video-frames/d7ab799e-5b3d-4f60-8e2a-1d9c6b4f7e05/events'Example Response
{ "event": "message", "data": { "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" }, "id": "a5614527-5b3d-4f60-8e2a-1d9c6b4f7e05", "retry": 1}