ton.halowerk.com/v1/caption-contrast
Measures the contrast of burnt-in captions and on-screen text against their background in a video: OCR finds the text lines, text and background colours are separated per line, and the WCAG 2.2 contrast ratio is checked against 4.5:1/3:1 (AA) and 7:1/4.5:1 (AAA).
POST
https://ton.halowerk.com/v1/caption-contrastUptime100% of 5 checks in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://ton.halowerk.com/v1/caption-contrast", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"max_frames":1,"region":"full","video_base64":"R0lGODlh8ABAAPf/MVVVVVtbW2hoaHNzc3p6eoiIiJqamqmpqbKyssDAwM7OzuLi4vDw8Pj4+P//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////),
});
console.log(await res.json());Example input
{"max_frames":1,"region":"full","video_base64":"R0lGODlh8ABAAPf/MVVVVVtbW2hoaHNzc3p6eoiIiJqamqmpqbKyssDAwM7OzuLi4vDw8Pj4+P//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////