remagicaDocs home
API referenceGenerations

Get a frame analysis

GET
/video-frames/{analysisId}

Needs a key withgenerations:read

A video frame analysis: its status and progress, the candidate frames (with download URLs) and, after an AI pick, their tags, the picks and a brief suggestion.

Requires scope generations:read.

Authorization

apiKey
headerx-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.

Path Parameters

analysisId*string
Length1 <= length <= 128

Response Body

The analysis.

application/json
  1. 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|null
createdAt*string
credits*integer

Credits charged so far (only the AI pick is charged).

durationSeconds*number|null
error*string|null
frames*array<>|

The candidates in time order, once extracted.

id*string
mode*string

What the latest run does: extract (candidates only, free) or pick (the AI's tags and picks too).

Value in"extract""pick"
picks*array<>|

The AI's 1–3 best frames, with roles and reasons.

progress*integer
Range0 <= value <= 100
stage*string
Value in"queued""extracting""picking""completed""failed"
status*string
Value in"queued""processing""completed""failed"
videoKey*string
Example Request
curl -X GET 'https://api.remagica.com/api/v1/video-frames/d7ab799e-5b3d-4f60-8e2a-1d9c6b4f7e05'
Example Response
{  "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"}