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).
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
}'const response = await fetch("https://hitfactorapp.com/api/v1/editor/vfx/add", {
method: "POST",
headers: {
"Content-Type": "application/json",
"x-api-key": process.env.HITFACTOR_API_KEY!,
"Idempotency-Key": "req_2026_001",
},
body: JSON.stringify({
"sessionId": "edsess_01j9example0000000000000",
"name": "example_name",
"html": "example_html",
"durationSeconds": 0.85
}),
})
const { data, meta } = await response.json()
console.log(data, meta)curl -sS -X POST "https://hitfactorapp.com/api/v1/mcp" \
-H "Content-Type: application/json" \
-H "x-api-key: $HITFACTOR_API_KEY" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "editor_add_vfx",
"arguments": {
"sessionId": "edsess_01j9example0000000000000",
"name": "example_name",
"html": "example_html",
"durationSeconds": 0.85,
"requestId": "req_2026_001"
}
}
}'Parameters
Idempotency-KeyheaderstringUnique retry key (up to 255 characters). Replaying the same key and body returns the original response with 0 extra credits charged.
maxLength: 255Request body
Send a JSON object with Content-Type: application/json. Unknown keys are rejected with 400 invalid_input.
sessionIdstringrequiredminLength: 1namestringminLength: 1maxLength: 200htmlstringminLength: 1maxLength: 2000000durationSecondsnumbermax: 600alphabooleanthemeenum (6 values)"hitfactor-v1""collate-v1""control-plane-v1""paper-v1""mozi-v1""betterstack-v1"brandobjectnullableShow object fields
kitVersionintegerrequiredmax: 9007199254740991formatIdstringrequiredminLength: 1maxLength: 120sourcePromptstringmaxLength: 20000assetsobject[]maxItems: 20Show item fields
idstringrequiredminLength: 1maxLength: 120kindenum (6 values)required"image""logo""video""lottie""font""other"requestedNamestringrequiredminLength: 1maxLength: 300matchedNamestringminLength: 1maxLength: 300matchedDomainstringminLength: 1maxLength: 253urlstring (uri)requiredcontentSha256stringcontentTypestringminLength: 1maxLength: 120widthintegermax: 9007199254740991heightintegermax: 9007199254740991catalogEntryNamestringminLength: 1maxLength: 200catalogValuesobjectassetIdstringreplaceAssetIdstringminLength: 1maxLength: 100placeobjectShow object fields
startSecondsnumberrequiredmin: 0behindbooleanstartSecondsnumbermin: 0behindbooleanResponse (200 OK)
Every successful response wraps the payload in data alongside billing and request metadata in meta.
okbooleanrequiredblockingany[]requiredassetobjectrequiredplacementobjectrequirednullableplacementsobject[]Show item fields
oidstringrequiredlennumberrequiredresizedbooleanrequireduserLengthbooleanrequirededitVersionintegerrequiredmin: -9007199254740991max: 9007199254740991statusstringrequiredfindingsany[]requiredframesany[]requiredmotionFramesany[]requirededitUrlstring (uri)requirednullablereplayedbooleanrequiredExample 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_input401Missing or invalid API key402insufficient_credits403insufficient_scope404operation_not_found409channel_sync_pending or idempotency_conflict429rate_limited