CueFrame
Api

Compare a certified source frame with an existing composition preview

Returns unaligned PNG evidence at original coordinates. Resolves an existing preview; never renders the composition. Source frame numbers refer to its certified representation, not an inferred original-file timestamp.

POST
/v1/projects/{id}/compare-frames

Authorization

AuthorizationBearer <token>

API key auth. Prefix cf_live_ for production orgs, cf_test_ for sandbox.

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/projects/string/compare-frames" \  -H "Content-Type: application/json" \  -d '{    "reference": {      "mediaItemId": "string",      "representationIdentity": "sha256:0000000000000000000000000000000000000000000000000000000000000000",      "frame": 0    },    "candidate": {      "jobId": "string",      "artifactId": "string"    }  }'
{  "reference": {    "frame": 0,    "width": 1,    "height": 1,    "artifactSha256": "sha256:0000000000000000000000000000000000000000000000000000000000000000",    "byteLength": 1,    "normalization": {      "pixelFormat": "rgb24",      "sampleAspectRatio": "1:1",      "colorConversion": "ffmpeg_source_metadata",      "rotation": "ffmpeg_autorotate",      "sourceColorSpace": "string",      "sourceColorTransfer": "string",      "sourceColorPrimaries": "string"    },    "mediaItemId": "string",    "sourceIdentity": "sha256:0000000000000000000000000000000000000000000000000000000000000000",    "representationIdentity": "sha256:0000000000000000000000000000000000000000000000000000000000000000",    "representationRevision": "string",    "frameCount": 1,    "fpsNum": 1,    "fpsDen": 1,    "actualTimeSec": 0,    "coordinateSystem": "certified_representation"  },  "candidate": {    "compositionFrame": 0,    "renderFrame": 0,    "introFrames": 0,    "fps": 1,    "actualTimeSec": 0,    "artifactSha256": "sha256:0000000000000000000000000000000000000000000000000000000000000000",    "jobId": "string",    "artifactId": "string",    "requestedTimeSec": 0,    "previewed": {      "source": "inline",      "compositionId": "string",      "etag": "string"    }  },  "comparison": {    "sourceWidth": 1,    "sourceHeight": 1,    "width": 1,    "height": 1,    "referenceSha256": "sha256:0000000000000000000000000000000000000000000000000000000000000000",    "candidateSha256": "sha256:0000000000000000000000000000000000000000000000000000000000000000",    "crop": {      "x": 0,      "y": 0,      "width": 1,      "height": 1    },    "alignment": "none",    "normalization": {      "pixelFormat": "rgb24",      "alpha": "opaque_only",      "colorConversion": "none_rgb_samples"    },    "images": [      {        "view": "side_by_side",        "width": 1,        "height": 1,        "artifactSha256": "sha256:0000000000000000000000000000000000000000000000000000000000000000",        "pngBase64": "string",        "byteLength": 1      }    ]  }}
{  "error": {    "code": "string",    "message": "string",    "contract": "string",    "contractVersion": "string",    "details": {      "property1": null,      "property2": null    }  }}
{  "error": {    "code": "string",    "message": "string",    "contract": "string",    "contractVersion": "string",    "details": {      "property1": null,      "property2": null    }  }}
{  "x402Version": 2,  "accepts": [    {}  ],  "error": "string"}
{  "error": {    "code": "string",    "message": "string",    "contract": "string",    "contractVersion": "string",    "details": {      "property1": null,      "property2": null    }  }}
{  "error": {    "code": "string",    "message": "string",    "contract": "string",    "contractVersion": "string",    "details": {      "property1": null,      "property2": null    }  }}
{  "error": {    "code": "string",    "message": "string",    "contract": "string",    "contractVersion": "string",    "details": {      "property1": null,      "property2": null    }  }}
{  "error": {    "code": "string",    "message": "string",    "contract": "string",    "contractVersion": "string",    "details": {      "property1": null,      "property2": null    }  }}
{  "error": {    "code": "string",    "message": "string",    "contract": "string",    "contractVersion": "string",    "details": {      "property1": null,      "property2": null    }  }}
{  "error": {    "code": "string",    "message": "string",    "contract": "string",    "contractVersion": "string",    "details": {      "property1": null,      "property2": null    }  }}
{  "error": {    "code": "string",    "message": "string",    "contract": "string",    "contractVersion": "string",    "details": {      "property1": null,      "property2": null    }  }}