78trust / 100
Agent Task
by api.x-402.online in Productivity & SaaS
x402 APIPassing, checked 26 min ago
Give an objective and a budget; get a verified result assemb…
POST https://api.x-402.online/v1/agent/task
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 189 ms typical, 215 ms slowest 5%
- Last check
- 26 min ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://api.x-402.online/v1/agent/task" \
-H "content-type: application/json" \
-d '{"budget":0.02,"objective":"resume cette page en trois points factuels","source":"https://fr.wikipedia.org/wiki/Protocole_HTTP"}'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%2Fapi.x-402.online%2Fv1%2Fagent%2Ftask
const res = await pay("https://api.x-402.online/v1/agent/task", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"budget":0.02,"objective":"resume cette page en trois points factuels","source":"https://fr.wikipedia.org/wiki/Protocole_HTTP"}),
});
console.log(await res.json());Example input
{
"budget": 0.02,
"objective": "resume cette page en trois points factuels",
"source": "https://fr.wikipedia.org/wiki/Protocole_HTTP"
}Example output
{
"actual_cost": 0.0048,
"answer": "1. HTTP est un protocole client-serveur…",
"capability": "extract_and_interpret",
"latency_ms": 3500,
"steps": [
{
"cout_reel_usd": 0,
"id": "1:/v1/extract",
"statut": "COMPLETED"
}
],
"verification": {
"passe": true
},
"workflow": "WORKFLOW_B"
}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 |
|---|---|---|---|---|
| 26 min ago | Passed | 402 | 206 ms | $0.05 |
| 5 h ago | Passed | 402 | 187 ms | $0.05 |
| 8 h ago | Passed | 402 | 177 ms | $0.05 |
| 11 h ago | Passed | 402 | 189 ms | $0.05 |
| 16 h ago | Passed | 402 | 215 ms | $0.05 |
| 19 h ago | Passed | 402 | 156 ms | $0.05 |
| 24 h ago | Passed | 402 | 226 ms | $0.05 |