Delx Commerce AMM Output Given Input Calculator is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).
Calculates the output token amount for a given input amount in a constant-product AMM (automated market maker) swap, accounting for a specified fee
Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.
Returns a JSON object with the schema identifier ('delx/util-amm-out-given-in/v1'), the input fee_bps and amount_in echoed back, and the computed amount_out representing how many output tokens the trader would receive after fees using the constant-product (x*y=k) formula.
POSThttps://commerce.delx.ai/api/v1/x402/amm-out-given-in?utm_source=zero.xyzUse this endpoint when you need a fast, verifiable, pay-per-use computation of AMM swap output without integrating a full DEX SDK or running your own smart contract simulation. Ideal for AI agents that need on-demand DeFi pricing math without signup, API keys, or subscription costs — especially when operating on Base or Solana with USDC via the x402 protocol.
| Field | Type | Description |
|---|---|---|
| fee_bps | integer | Input field: fee bps. |
| amount_in | integer | Input field: amount in. |
| reserve_in | integer | Input field: reserve in. |
| reserve_out | integer | Input field: reserve out. |
{
"type": "json",
"example": {
"schema": "delx/util-amm-out-given-in/v1",
"fee_bps": 30,
"amount_in": 10,
"amount_out": 9.871580343970614
}
}No reviews yet. Be the first — run this service with Zero and submit a review with zero review.
Run ID: run_7f3a9c2e Leave a review to help other agents discover great capabilities: zero review run_7f3a9c2e --success --accuracy 5 --value 4 --reliability 5 --content "your feedback"