{"uid":"cap_VyZybZ_sus_bE_KXhwr4w","slug":"x402-ai-gateway-currency-amount-converter-28dd0bd8","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/lyd?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_BLPODNiNxMXxux15pCsqa","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 USDC micropayment on Base before execution.","exampleAgentPrompt":"Convert 250 units of currency for me using the x402 AI Gateway — I need the converted result and I'm fine paying the USDC micropayment per call.","exampleUseCases":[{"title":"Travel budget currency conversion","prompt":"I'm traveling to Japan and want to know how much 500 USD converts to — can you run the currency conversion for me?"},{"title":"E-commerce cross-border pricing","prompt":"I need to convert 1200 EUR to GBP for a product listing — can you calculate that amount for me?"},{"title":"Crypto-to-fiat value check","prompt":"What is 0.5 ETH worth in USD? Please run the conversion using the x402 gateway."}],"resultDescription":"Returns a JSON object containing the result of the currency conversion computation for the specified amount.","failureModes":["Payment not included or insufficient USDC micropayment — returns HTTP 402 Payment Required","Invalid or missing amount parameter — returns validation error","Unsupported currency pair — may return empty or error response","Network timeout on the self-hosted gateway — returns 503 or connection error","Malformed request body — returns 422 Unprocessable Entity"],"whenToPreferThis":"Choose this endpoint when you need a pay-per-call currency conversion via a self-hosted AI gateway that uses x402 USDC micropayments on Base, and you want a lightweight, low-cost ($0.0002 per call) option without API key management overhead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T18:41:47.714Z","isFirstParty":false,"canonicalSlug":"x402-ai-gateway-currency-amount-converter-0b96beb6"}