Skip to content

Add HyperFrames VFX

Validate server-side, create or replace a HyperFrames VFX asset (from custom HTML or a HyperFrames catalog entry), queue its storyboard render, and optionally place it onto the timeline atomically. Supports idempotent retries via assetId. Costs 5 credits (0 credits on static policy refusal or idempotent replay; 1 credit if GPU browser validation fails).

POSThttps://hitfactorapp.com/api/v1/editor/vfx/add
MCP tooleditor_add_vfxCost5 creditsModeSync (200 OK)Scopeeditor:writeChannel syncNot required

Request examples

curl -sS -X POST "https://hitfactorapp.com/api/v1/editor/vfx/add" \
  -H "Content-Type: application/json" \
  -H "x-api-key: $HITFACTOR_API_KEY" \
  -H "Idempotency-Key: req_2026_001" \
  -d '{
  "sessionId": "edsess_01j9example0000000000000",
  "name": "example_name",
  "html": "example_html",
  "durationSeconds": 0.85
}'

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
namestring
minLength: 1maxLength: 200
htmlstring
minLength: 1maxLength: 2000000
durationSecondsnumber
max: 600
alphaboolean
themeenum (6 values)
"hitfactor-v1""collate-v1""control-plane-v1""paper-v1""mozi-v1""betterstack-v1"
brandobjectnullable
Show object fields
kitVersionintegerrequired
max: 9007199254740991
formatIdstringrequired
minLength: 1maxLength: 120
sourcePromptstring
maxLength: 20000
assetsobject[]
maxItems: 20
Show item fields
idstringrequired
minLength: 1maxLength: 120
kindenum (6 values)required
"image""logo""video""lottie""font""other"
requestedNamestringrequired
minLength: 1maxLength: 300
matchedNamestring
minLength: 1maxLength: 300
matchedDomainstring
minLength: 1maxLength: 253
urlstring (uri)required
contentSha256string
contentTypestring
minLength: 1maxLength: 120
widthinteger
max: 9007199254740991
heightinteger
max: 9007199254740991
catalogEntryNamestring
minLength: 1maxLength: 200
catalogValuesobject
assetIdstring
replaceAssetIdstring
minLength: 1maxLength: 100
placeobject
Show object fields
startSecondsnumberrequired
min: 0
behindboolean
startSecondsnumber
min: 0
behindboolean

Response (200 OK)

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

okbooleanrequired
blockingany[]required
assetobjectrequired
placementobjectrequirednullable
placementsobject[]
Show item fields
oidstringrequired
lennumberrequired
resizedbooleanrequired
userLengthbooleanrequired
editVersionintegerrequired
min: -9007199254740991max: 9007199254740991
statusstringrequired
findingsany[]required
framesany[]required
motionFramesany[]required
editUrlstring (uri)requirednullable
replayedbooleanrequired
Example 200 response
{
  "data": {
    "ok": true,
    "blocking": [
      null
    ],
    "asset": {},
    "placement": {},
    "placements": [
      {
        "oid": "br_01j9example",
        "len": 0.85,
        "resized": true,
        "userLength": true
      }
    ],
    "editVersion": -9007199254740991,
    "status": "example_status",
    "findings": [
      null
    ],
    "frames": [
      null
    ],
    "motionFrames": [
      null
    ],
    "editUrl": "https://hitfactorapp.com/acme/videos/proj_01j9example0000000000000/edit",
    "replayed": false
  },
  "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