Skip to main content
POST
Estimate Video Analysis Cost

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

organization_id
string
required
workspace_id
string
required

Body

application/json
creator_video_ids
string[]
required

The videos to price. Ids the workspace does not know are skipped rather than rejected, so a stale selection still gets a price for the rest of it.

Response

Successful Response

videos
VideoAnalysisCostItemResponse · object[]
required
total_cost
integer
required

Generations the whole selection would cost. A free_test workspace is not billed for them, but they are still recorded.

billing
string
required

generations: a Pencil workspace, billed in Generations for each analysis. free_test: any other workspace, which can start a fixed number of analyses in total, free of charge.

is_affordable
boolean
required

generations: always true, the workspace is billed in Pencil. free_test: true when the priced videos fit in the analyses left. A selection holding videos that were already analyzed is still priced in full here -- the trigger, not this endpoint, decides what is actually started.

free_test
FreeTestUsageResponse · object | null

Only for a free_test workspace.