Validate HyperFrames VFX
Validate a HyperFrames HTML overlay or motion graphic on the GPU browser validator with strict CSP and source-policy checks, returning findings and proof frames. Costs 1 credit (0 credits if the validator is unavailable).
Request examples
curl -sS -X POST "https://hitfactorapp.com/api/v1/editor/vfx/validate" \
-H "Content-Type: application/json" \
-H "x-api-key: $HITFACTOR_API_KEY" \
-H "Idempotency-Key: req_2026_001" \
-d '{
"name": "example_name",
"html": "example_html",
"durationSeconds": 0.85,
"alpha": true,
"theme": "hitfactor-v1",
"brand": {
"kitVersion": 10,
"formatId": "example_formatId"
},
"sourcePrompt": "example_sourcePrompt",
"sessionId": "edsess_01j9example0000000000000"
}'const response = await fetch("https://hitfactorapp.com/api/v1/editor/vfx/validate", {
method: "POST",
headers: {
"Content-Type": "application/json",
"x-api-key": process.env.HITFACTOR_API_KEY!,
"Idempotency-Key": "req_2026_001",
},
body: JSON.stringify({
"name": "example_name",
"html": "example_html",
"durationSeconds": 0.85,
"alpha": true,
"theme": "hitfactor-v1",
"brand": {
"kitVersion": 10,
"formatId": "example_formatId"
},
"sourcePrompt": "example_sourcePrompt",
"sessionId": "edsess_01j9example0000000000000"
}),
})
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_validate_vfx",
"arguments": {
"name": "example_name",
"html": "example_html",
"durationSeconds": 0.85,
"alpha": true,
"theme": "hitfactor-v1",
"brand": {
"kitVersion": 10,
"formatId": "example_formatId"
},
"sourcePrompt": "example_sourcePrompt",
"sessionId": "edsess_01j9example0000000000000",
"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.
namestringrequiredminLength: 1maxLength: 200htmlstringrequiredminLength: 1maxLength: 2000000durationSecondsnumberrequiredmax: 600alphabooleanrequiredthemeenum (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: 9007199254740991sessionIdstringrequiredminLength: 1startSecondsnumbermin: 0Response (200 OK)
Every successful response wraps the payload in data alongside billing and request metadata in meta.
okbooleanrequiredstatusstringrequiredblockingany[]requiredfindingsany[]requiredframesobject[]requiredShow item fields
timeSecondsnumberrequirednullablemediaTypestringrequiredbase64stringrequiredmotionFramesany[]requiredExample 200 response
{
"data": {
"ok": true,
"status": "example_status",
"blocking": [
null
],
"findings": [
null
],
"frames": [
{
"timeSeconds": 0.85,
"mediaType": "example_mediaType",
"base64": "example_base64"
}
],
"motionFrames": [
null
]
},
"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