Skip to content

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).

POSThttps://hitfactorapp.com/api/v1/editor/vfx/validate
MCP tooleditor_validate_vfxCost1 creditModeSync (200 OK)Scopeeditor:writeChannel syncNot required

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"
}'

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.

namestringrequired
minLength: 1maxLength: 200
htmlstringrequired
minLength: 1maxLength: 2000000
durationSecondsnumberrequired
max: 600
alphabooleanrequired
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
sessionIdstringrequired
minLength: 1
startSecondsnumber
min: 0

Response (200 OK)

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

okbooleanrequired
statusstringrequired
blockingany[]required
findingsany[]required
framesobject[]required
Show item fields
timeSecondsnumberrequirednullable
mediaTypestringrequired
base64stringrequired
motionFramesany[]required
Example 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_input
401Missing or invalid API key
402insufficient_credits
403insufficient_scope
404operation_not_found
409channel_sync_pending or idempotency_conflict
429rate_limited