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

WhenResultHTTPTimePrice
3 h agoPassed4022.6 s$0.12
6 h agoPassed402765 ms$0.12
10 h agoPassed4021.0 s$0.12
14 h agoPassed4022.5 s$0.12
17 h agoPassed402759 ms$0.12
21 h agoPassed4023.1 s$0.12
24 h agoPassed4022.5 s$0.12
28 h agoPassed4022.7 s$0.12
32 h agoPassed4022.5 s$0.12
35 h agoPassed4023.0 s$0.12
39 h agoPassed4022.8 s$0.12
42 h agoPassed4022.3 s$0.12
2 days agoPassed4022.1 s$0.12

History

11 Oct 2026Payment address changed from 0xe8dC41F9e675Ba8340140c99180CFaEE65D4d160 to 0xaE393a9CD728F7397F50f6f8C88096a0F3D2b42C