{"uid":"cap_j_5uQYxwAmRIuVVRUTDG2","slug":"x402-ai-gateway-currency-amount-converter-b8348d9d","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/ang/mzn?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_mmlC_tzIQCw3sKkKkTo9X","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, accessed via x402 micropayment on Base/USDC.","exampleAgentPrompt":"Can you convert 250 units of my source currency using the fastapi.online gateway — I need the converted value back right away.","exampleUseCases":[{"title":"Quick forex amount lookup","prompt":"Convert 500 of whatever source currency I'm using and tell me the result — I need it for a quick cost estimate."},{"title":"Automated pricing pipeline conversion","prompt":"Run a currency conversion for an amount of 1 through the AI gateway so I can normalize prices in my pipeline."},{"title":"Micropayment-gated currency check","prompt":"I want to convert 1000 units via the x402 gateway — go ahead and authorize the micropayment and give me the converted amount."}],"resultDescription":"Returns a JSON object containing the result of the currency conversion for the specified amount; exact fields depend on the gateway's current response schema.","failureModes":["Payment not authorized or insufficient USDC balance on Base — 402 Payment Required returned","Invalid or missing amount parameter — may return validation error","Unsupported currency pair — gateway may return an error or empty result","Network/gateway downtime — connection timeout or 5xx error","Malformed request body — 422 Unprocessable Entity"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-use currency conversion call with USDC micropayment billing on Base and can tolerate a self-hosted, lower-trust provider. Suitable for automated pipelines that already integrate x402 payment flows and need currency math at very low cost per call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T18:42:36.947Z","isFirstParty":false,"canonicalSlug":"x402-ai-gateway-currency-amount-converter-4eb59634"}