跳转到内容
EN

渲染预览帧

GET /cut/v1/projects/{project_id}/frames

Review the visual result at one or more project times without creating an export. Pass comma-separated seconds in at, such as 12,15.5; scale changes preview size and revision selects a committed project revision. Request at most eight times. Each returned url is an inline PNG data URL (data:image/png;base64,…), not a hosted HTTP image link. The default scale is 0.25; use 0.5 for subtitle layout inspection (1080×1920 renders at 540×960). The maximum is 0.5; values above it return INVALID_PARAMS. Actual width and height are returned per frame. PNGs above 2 MiB or responses above 4 MiB return RESPONSE_TOO_LARGE without silently lowering resolution. The response always includes warnings; FRAME_UNAVAILABLE means a source preview could not be obtained and an offline tile was drawn. Its message identifies a timeout, delivery capacity limit, or unavailable source and contains no source URL. Decode each image’s base64 payload to save it. Codemode returns at most four images per call, so request at most four times when reviewing there.

支持状态: supported

参数

名称位置类型必填说明
project_idpathstringtrueProject identifier returned by its create or list operation; use the id, not a display name.
atquerystringtrueRequired comma-separated non-negative project times in seconds, for example 12,15.5.
scalequerynumberfalseImage size multiplier, default 0.25, greater than zero and at most 0.5. Larger values return INVALID_PARAMS; pixel-area limits may reduce actual dimensions, reported as width and height.
revisionqueryintegerfalseOptional committed project revision from state or execute; omission selects the current revision.

响应

HTTP 200

Requested resource or operation result; use its revision when preparing a guarded edit.

application/json

名称 类型 说明
revision integer Committed project revision from retrieve, state, timeline or execute; increases after each successful write.
images object Requested times in seconds mapped to rendered images; keys retain their numeric spelling.
warnings array<object> Frame delivery warnings; empty when every requested source frame was available.
warnings[].code string FRAME_UNAVAILABLE means a source image could not be fetched for this preview.
warnings[].clip_id string Identifier of the clip whose source frame could not be fetched.
warnings[].message string Actionable safe explanation; source URLs and credentials are omitted.