Skip to content
Fourohtwo

640px JPEG frame at a given second, returned directly

mediaapi.wafflehacker.dev/v1/thumbnail

640px JPEG frame at a given second, returned directly. Commodity: ffmpeg does this locally for free.

BaseUnchecked
POSThttps://mediaapi.wafflehacker.dev/v1/thumbnail

UptimeNot checked yet

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

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://mediaapi.wafflehacker.dev/v1/thumbnail", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"type":"object","required":["url"],"properties":{"at":{"type":"number","description":"Seconds into the media."},"url":{"type":"string"}}}),
});
console.log(await res.json());

Example input

{
  "type": "object",
  "required": [
    "url"
  ],
  "properties": {
    "at": {
      "type": "number",
      "description": "Seconds into the media."
    },
    "url": {
      "type": "string"
    }
  }
}