82trust / 100
Videos Generations
by Video generation (4-second clip) in AI models & inference
x402 APIPassing, checked 2 h ago
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/generations
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 186 ms typical, 186 ms slowest 5%
- Last check
- 2 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://agent402.tools/v1/videos/generations" \
-H "content-type: application/json" \
-d '{"aspect_ratio":"16:9","prompt":"A paper boat drifting down a rain-soaked gutter, close up, cinematic"}'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%2Fagent402.tools%2Fv1%2Fvideos%2Fgenerations
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"
}Example output
{
"created": 1750000000,
"data": [
{
"aspect_ratio": "16:9",
"b64_json": "AAAAIGZ0eXBpc29t…",
"duration_seconds": 4,
"media_type": "video/mp4",
"resolution": "720p"
}
],
"model": "google/veo-3.1-lite",
"usage": {
"generation_seconds": 40
}
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 2 h ago | Passed | 402 | 187 ms | $0.2 |
| 7 h ago | Passed | 402 | 186 ms | $0.2 |