Skip to content

Place asset on timeline

Place a READY uploaded CLIP or IMAGE asset onto an editor session timeline at startSeconds as an overlay cutaway or split insert, with optional trim, time-lapse retime, look/zoom keyframes, audio track, and compare-and-swap expectedEditVersion. Costs 0 credits.

POSThttps://hitfactorapp.com/api/v1/editor/placements
MCP tooleditor_place_assetCost0 creditsModeSync (200 OK)Scopeeditor:writeChannel syncNot required

Request examples

curl -sS -X POST "https://hitfactorapp.com/api/v1/editor/placements" \
  -H "Content-Type: application/json" \
  -H "x-api-key: $HITFACTOR_API_KEY" \
  -d '{
  "sessionId": "edsess_01j9example0000000000000",
  "assetId": "edasset_01j9example0000000000000",
  "startSeconds": 0,
  "mode": "overlay",
  "lengthSeconds": 0.85,
  "clipStartSeconds": 0
}'

Parameters

Idempotency-Keyheaderstring

Unique retry key (up to 255 characters). Replaying the same key and body returns the original response with 0 extra credits charged.

maxLength: 255

Request body

Send a JSON object with Content-Type: application/json. Unknown keys are rejected with 400 invalid_input.

sessionIdstringrequired
minLength: 1
assetIdstringrequired
minLength: 1
startSecondsnumberrequired
min: 0
mode"overlay" | "split"
lengthSecondsnumber
max: 600
clipStartSecondsnumber
min: 0
retimeobjectnullable
Show object fields
speed"fit" | numberrequired
rampInnumber
min: 0max: 10
rampOutnumber
min: 0max: 10
lookobjectnullable
Show object fields
in"fade" | "zoom" | "slide" | "cut"
out"fade" | "zoom" | "slide" | "cut"
frame"full" | "card"
zoomobject[]nullable
minItems: 1maxItems: 24
Show item fields
tnumberrequired
min: 0
scalenumberrequired
min: 1max: 8
xnumberrequired
min: 0max: 1920
ynumberrequired
min: 0max: 1080
ease"inOut" | "linear" | "in" | "out"
audio"A" | "B"
expectedEditVersioninteger
max: 9007199254740991

Response (200 OK)

Every successful response wraps the payload in data alongside billing and request metadata in meta.

placementobjectrequired
Show object fields
oidstringrequired
srcstringrequired
anchornumberrequired
lennumberrequired
atnumber
audiostring
modestring
behindboolean
retimeobject
Show object fields
speed"fit" | numberrequired
rampInnumber
min: 0max: 10
rampOutnumber
min: 0max: 10
lookobject
Show object fields
in"fade" | "zoom" | "slide" | "cut"
out"fade" | "zoom" | "slide" | "cut"
frame"full" | "card"
zoomobject[]nullable
minItems: 1maxItems: 24
Show item fields
tnumberrequired
min: 0
scalenumberrequired
min: 1max: 8
xnumberrequired
min: 0max: 1920
ynumberrequired
min: 0max: 1080
ease"inOut" | "linear" | "in" | "out"
startSecondsnumberrequired
editVersionintegerrequired
min: -9007199254740991max: 9007199254740991
editUrlstring (uri)requirednullable
Example 200 response
{
  "data": {
    "placement": {
      "oid": "br_01j9example",
      "src": "example_src",
      "anchor": 0.85,
      "len": 0.85,
      "at": 0.85,
      "audio": "example_audio",
      "mode": "example_mode",
      "behind": true,
      "startSeconds": 0.85
    },
    "editVersion": -9007199254740991,
    "editUrl": "https://hitfactorapp.com/acme/videos/proj_01j9example0000000000000/edit"
  },
  "meta": {
    "requestId": "req_01j9example0000000000000",
    "creditsCharged": 1,
    "creditsRemaining": 499,
    "replayed": false
  }
}

Error responses

400invalid_input
401Missing or invalid API key
402insufficient_credits
403insufficient_scope
404operation_not_found
409channel_sync_pending or idempotency_conflict
429rate_limited