{"uid":"cap_86yqwoCJE7qCnVOcvT5z1","slug":"x402-ai-gateway-currency-amount-converter-fff04ac0","name":"x402 AI Gateway – Currency Amount Converter","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/xcg?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_msf30kkAeM_b0KdrxffMR","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 behind an x402 micropayment in USDC on Base before execution.","exampleAgentPrompt":"Convert 50 units of currency using the x402-gated API on fastapi.online — the micropayment of $0.0002 USDC on Base will be handled automatically.","exampleUseCases":[{"title":"Single unit currency baseline check","prompt":"Convert 1 unit of currency through the x402 gateway and tell me the result — go ahead and authorize the $0.0002 USDC micropayment on Base."},{"title":"Bulk amount conversion estimate","prompt":"I need to convert 500 units of my source currency through the x402-gated endpoint on fastapi.online — approve the micropayment and return the converted value."},{"title":"Automated agent FX pricing check","prompt":"My agent needs to check the converted value for 250 units using the x402 micropayment API, paying $0.0002 USDC on Base per call — run it now."}],"resultDescription":"Returns a JSON object containing the result of the currency conversion for the specified amount. The exact fields depend on the gateway's response but typically include the converted value and possibly metadata about the conversion.","failureModes":["Payment not authorized or insufficient USDC balance — 402 Payment Required returned","Invalid or missing 'amount' field — validation error","Gateway service unavailable — 503 or timeout","Malformed request body — 400 Bad Request","Amount out of acceptable range — error response"],"whenToPreferThis":"Choose this endpoint when you need a pay-per-call currency conversion gated by x402 micropayments in USDC on Base, particularly in agentic workflows where autonomous micropayment authorization is supported and cost-per-call pricing is acceptable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T06:48:55.040Z","isFirstParty":false,"canonicalSlug":"x402-ai-gateway-currency-amount-converter-4eb59634"}