68trust / 100
Clip
by Treza in News & content
x402 APIPassing, checked 3 h ago
Clip a YouTube video: send a link, get its most shareable 30 to 60 second moment back as a captioned clip, cut on the speaker in 9:16 (or 4:5, 1:1, 16:9), with a title and caption to post it with. Priced by the source's length, from $0.04 (about $0.45 for an hour), up to 2 hours. No account or API key: the payment is the only credential.
POST https://www.trezalabs.com/api/x402/clip
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 2.5 s typical, 3.0 s slowest 5%
- Last check
- 3 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://www.trezalabs.com/api/x402/clip" \
-H "content-type: application/json" \
-d '{"aspectRatio":"9:16","url":"https://www.youtube.com/watch?v=KtTXyBJ2N30"}'import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fwww.trezalabs.com%2Fapi%2Fx402%2Fclip
const res = await pay("https://www.trezalabs.com/api/x402/clip", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"aspectRatio":"9:16","url":"https://www.youtube.com/watch?v=KtTXyBJ2N30"}),
});
console.log(await res.json());Example input
{
"aspectRatio": "9:16",
"url": "https://www.youtube.com/watch?v=KtTXyBJ2N30"
}Example output
{
"aspectRatio": "9:16",
"outputs": {
"moment": "{\"start\":\"00:12:03,120\",\"end\":\"00:12:51,400\",\"publish\":\"...\"}"
},
"paidUsd": 0.12,
"runId": "2026-09-23T18:04:11.000Z#1a2b3c4d",
"sourceMinutes": 12,
"status": "success",
"statusUrl": "https://www.trezalabs.com/api/x402/clip?runId=...&token=...",
"transaction": "0x...",
"video": "https://www.trezalabs.com/api/media/generated/x402_captions/1a2b3c4d.mp4?s=...&c=..."
}Security scan
- Payment address changed recently in payment
Payment address changed from 0xe8dC41F9e675Ba8340140c99180CFaEE65D4d160 to 0xaE393a9CD728F7397F50f6f8C88096a0F3D2b42C
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 3 h ago | Passed | 402 | 2.6 s | $0.12 |
| 6 h ago | Passed | 402 | 765 ms | $0.12 |
| 10 h ago | Passed | 402 | 1.0 s | $0.12 |
| 14 h ago | Passed | 402 | 2.5 s | $0.12 |
| 17 h ago | Passed | 402 | 759 ms | $0.12 |
| 21 h ago | Passed | 402 | 3.1 s | $0.12 |
| 24 h ago | Passed | 402 | 2.5 s | $0.12 |
| 28 h ago | Passed | 402 | 2.7 s | $0.12 |
| 32 h ago | Passed | 402 | 2.5 s | $0.12 |
| 35 h ago | Passed | 402 | 3.0 s | $0.12 |
| 39 h ago | Passed | 402 | 2.8 s | $0.12 |
| 42 h ago | Passed | 402 | 2.3 s | $0.12 |
| 2 days ago | Passed | 402 | 2.1 s | $0.12 |
History
| 11 Oct 2026 | Payment address changed from 0xe8dC41F9e675Ba8340140c99180CFaEE65D4d160 to 0xaE393a9CD728F7397F50f6f8C88096a0F3D2b42C |