{"uid":"cap_dhL27scRLdRkZZivK52_4","slug":"x402-ai-gateway-currency-conversion-0a345b81","name":"x402 AI Gateway – Currency Conversion","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/xsu?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":"down","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_M7l03vutADyV0loztc3md","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, gated by an x402 USDC micropayment on Base before execution.","exampleAgentPrompt":"Convert 250 units of the source currency using the x402 AI gateway — it costs a tiny USDC micropayment per call.","exampleUseCases":[{"title":"Quick foreign exchange rate lookup","prompt":"Convert 500 of the source currency for me using the x402 gateway — I need the converted value right away."},{"title":"Automated per-call currency conversion in a pipeline","prompt":"I'm building a workflow that needs to convert amounts on the fly; use the x402 micropayment gateway to convert 1 unit of source currency and return the result."},{"title":"Testing x402 micropayment-gated API","prompt":"Run a test conversion of 1 unit through the x402 AI gateway so I can verify the USDC payment flow works correctly."}],"resultDescription":"A JSON object containing the result of the currency conversion computation, returned after the x402 USDC micropayment on Base is settled. Exact fields depend on server implementation but typically include the converted amount and possibly the exchange rate used.","failureModes":["Payment not provided or rejected — HTTP 402 returned, requiring a valid USDC micropayment on Base before proceeding","Invalid or missing amount field — server may return a 422 validation error","Unsupported currency pair — endpoint may return an error if the source/target currency is not supported","Server unavailable — self-hosted infrastructure may experience downtime or rate limiting","Micropayment facilitator network issues — Base network congestion could delay or fail payment settlement"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call currency conversion without subscription overhead, and you already have an x402-compatible USDC wallet on Base. It is ideal for low-frequency automated agents that want to avoid API key management and prefer crypto micropayments. Not ideal if you need high-volume batch conversions or guaranteed SLAs from a commercial FX provider.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T09:26:42.130Z","isFirstParty":false,"canonicalSlug":"x402-ai-gateway-currency-conversion-0a345b81"}