Example inputPOST /api/v1/x402/log-loss
{
"prob": 0.7,
"outcome": 1
}
Portable intent card · signal-normalize
Log loss (cross-entropy) for a probability vs binary outcome. Call when training-style forecast quality when sharp mistakes matter. Returns log loss value as deterministic JSON for $0.001 USDC via x402 on Base. First-party local math only—no RPC, live market feed, API keys, storage, or mediagen. Advisory only; the caller owns capital, risk, and production controls.
Intent to transaction
The source header follows this discovery route through challenge, payment and delivery without exposing the buyer or request body.
npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/log-loss -m POST -H 'x-delx-source: intent-card-log-loss-api' --max-amount 0.001 -b '{"prob":0.7,"outcome":1}'
{
"prob": 0.7,
"outcome": 1
}
{
"intent": "Log Loss for an agent workflow",
"tool_name": "util_log_loss",
"price_usdc": "0.001",
"machine_url": "https://commerce.delx.ai/intents/log-loss-api.json"
}
Portable and inspectable