agent402.tools/v1/videos/generations
Generate a short video clip from a text prompt at a flat price per clip: a four-second 720p clip returned inline as base64 MP4, with the duration and resolution locked so the price never moves. Use it when an agent needs motion rather than a still, and needs to know the cost before it calls.
POST
https://agent402.tools/v1/videos/generationsUptime100% of 1 check 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
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://agent402.tools/v1/videos/generations", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"aspect_ratio":"16:9","prompt":"A paper boat drifting down a rain-soaked gutter, close up, cinematic"}),
});
console.log(await res.json());Example input
{
"aspect_ratio": "16:9",
"prompt": "A paper boat drifting down a rain-soaked gutter, close up, cinematic"
}