{"uid":"cap_tpT0rEvLd8xabkKcPz_ay","slug":"tryx402-agent-payment-layer-x402-b530d91c","name":"tryx402 Agent Payment Layer (x402)","description":"tryx402 is the payment layer for AI agents: hard budget caps, idempotent paid calls, a cost ledger and multi-currency fiat billing over x402.","url":"https://tryx402.fly.dev/v1/x402/call?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":null,"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_WYw-w6RsI8WDvkxBA5Ilb","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Executes a paid API call on behalf of an AI agent with hard budget caps, idempotency, cost ledger tracking, and multi-currency fiat billing over the x402 protocol.","exampleAgentPrompt":"Make a paid call to the weather API at https://api.example.com/forecast with a hard budget cap of $2.00 USDC, using idempotency key 'weather-run-001', and log the cost to my ledger.","exampleUseCases":[{"title":"Budget-capped agent tool call","prompt":"Call the summarization API at https://llm-tools.example.com/summarize with this document payload, cap spending at $0.50 USDC, and use idempotency key 'summarize-doc-42' so it won't double-charge if it retries."},{"title":"Multi-agent cost ledger tracking","prompt":"I'm running a fleet of 10 agents and I need each paid API call they make to be logged to my cost ledger — route this call to https://data.example.com/enrich with a $1.00 budget cap and record the expense."},{"title":"Idempotent paid API retry","prompt":"My agent tried to call the geocoding API at https://geo.example.com/lookup but the network dropped — re-execute that same call using idempotency key 'geo-lookup-session-7' so I don't get charged twice, and keep the budget cap at $0.25 USDC."}],"resultDescription":"Returns the response from the target paid API call along with a payment receipt, transaction ID, cost ledger entry showing amount spent, and remaining budget balance. If idempotency key matches a prior call, returns cached result without a new charge.","failureModes":["Budget cap exceeded — call rejected before execution with a budget error","Invalid or malformed x402 payment header — authentication/payment failure","Target API unreachable — upstream error propagated back","Duplicate idempotency key with mismatched payload — conflict error","Insufficient USDC balance — payment cannot be authorized","Target API returns non-2xx — payment may still be deducted depending on protocol semantics"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to make paid API calls with strict spending controls, idempotency guarantees, and per-call cost tracking. Ideal for agent fleets where overspending is a risk, or when you need an auditable cost ledger across multiple paid tool calls. Prefer over raw x402 implementations when you need budget enforcement and multi-currency fiat billing without building that infrastructure yourself.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-23T00:38:31.448Z","isFirstParty":false,"canonicalSlug":"tryx402-agent-payment-layer-x402-b530d91c"}