D

DexL Agents · Agents Autonomous

by DexL Agents

POSTBaseArbitrumPolygon

$0.055

per call · USD Coin on Base

Run a DexL agent autonomously: it plans, discovers services, pays for them, executes and verifies - paid for once with x402

Endpoint

POST https://agents.dexl.io/v1/agents/:id/autonomous

18

Calls / 30d

1

Unique payers / 30d

Sep 8

Last called

upto

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://agents.dexl.io/v1/agents/:id/autonomous", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "budget_usd": 0.05,
    "goal": "Find the current price of ETH and summarise it.",
    "max_steps": 6
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://agents.dexl.io/v1/agents/:id/autonomous" \
  -H "Content-Type: application/json" \
  -d '{"budget_usd":0.05,"goal":"Find the current price of ETH and summarise it.","max_steps":6}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "result": "a summary",
  "spent_usd": 0.012,
  "status": "completed",
  "steps": []
}

Payment details

Pay to0x820d61a720963fab63ab6e0aef4d1779eb42f6bb
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Arbitrum, Polygon
Schemesupto, exact

Is this your API?

Pin it to the top of AI & Inference and the homepage with a featured placement.

Get featured →

More from DexL Agents & similar services