1. Route
Send an intent to `/intent` with `dry=true` and a max budget.
XoggAI
Route natural-language intent to x402 endpoints in dry-run mode first. Inspect endpoint fit, price, latency, and schema before any testnet execution path opens.
Send an intent to `/intent` with `dry=true` and a max budget.
Read the selected endpoint, price, rating, latency, and schema.
Execution stays beta-gated and operator-approved on Base Sepolia.
import { routeIntent } from './xoggai-sdk.js'
const route = await routeIntent('what is the ETH price?', {
budget: 0.005
})
console.log(route.endpoint)
curl "https://xoggai-backend.onrender.com/intent?q=what%20is%20the%20ETH%20price&budget=0.005&dry=true"