{"uid":"cap_d34-ihgzsHle0AQ8K9uQz","slug":"x402-ai-gateway-currency-conversion-xdr-175d0b99","name":"x402 AI Gateway – Currency Conversion (XDR)","description":"Self-hosted AI API gateway. Expensive endpoints require an x402 micropayment (USDC on Base) before executing.","url":"https://api.fastapi.online/f/fx/aoa/xdr?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"amount":{"type":"number","description":"Amount of the source currency to convert (default 1)"}}},"responseSchema":{"type":"object"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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.0002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_CTOw4nQUt0bfufKGLbK_v","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts a specified amount of a source currency using a micropayment-gated AI gateway endpoint, returning conversion results after a USDC x402 payment.","exampleAgentPrompt":"Convert 50 units of XDR to USD for me — it uses that x402 micropayment gateway so go ahead and authorize the $0.0002 USDC fee.","exampleUseCases":[{"title":"Real-time XDR currency conversion","prompt":"What is 100 XDR worth right now? Use the micropayment-gated conversion endpoint and pay the small USDC fee."},{"title":"Travel budget currency check","prompt":"I'm budgeting for a trip — can you convert 500 units of XDR for me and tell me the result? It's fine to pay the tiny x402 micropayment."},{"title":"Automated FX rate lookup for invoicing","prompt":"I need to convert 1 XDR as a reference rate for an invoice I'm preparing — please use the x402 gateway and authorize the micropayment."}],"resultDescription":"Returns a JSON object containing the conversion result for the specified currency amount; exact fields depend on the server implementation but typically include the converted value and possibly the exchange rate used.","failureModes":["Payment not authorized or insufficient USDC balance — 402 Payment Required returned","Invalid or missing amount parameter — validation error","Upstream currency data unavailable — 500 or timeout","Unsupported currency pair — empty or error response","x402 facilitator unreachable — payment flow fails before execution"],"whenToPreferThis":"Choose this endpoint when you need a pay-per-call, self-hosted currency conversion with x402 micropayment support on Base (USDC), especially if you want to avoid subscription-based FX APIs and only pay $0.0002 per query. Prefer alternatives if you need free, high-volume, or multi-currency batch conversions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T12:49:49.610Z","isFirstParty":false,"canonicalSlug":"x402-ai-gateway-currency-conversion-xdr-175d0b99"}