{"uid":"cap_Xk_LEhEJGicIwcryVSa_3","slug":"x402-ai-gateway-currency-amount-converter-0b96beb6","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/kpw?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_c6tT4GGmhN_4-ZMDQyq1m","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 executing.","exampleAgentPrompt":"Convert 250 units of my source currency using the x402 micropayment gateway — it costs $0.0002 USDC per call on Base.","exampleUseCases":[{"title":"Quick foreign exchange amount check","prompt":"I need to convert 500 units of currency using that micropayment-gated conversion API — go ahead and pay the tiny USDC fee and give me the result."},{"title":"Automated FX calculation in agent workflow","prompt":"As part of my expense reporting workflow, convert the amount 1200 using the x402 gateway and return the converted value so I can log it."},{"title":"On-demand single-unit conversion rate lookup","prompt":"What does 1 unit convert to? Use the x402 currency conversion endpoint and pay the $0.0002 USDC fee automatically."}],"resultDescription":"Returns a JSON object containing the conversion result for the given amount; exact output fields depend on the gateway's underlying computation, but the response reflects the converted value after the x402 micropayment is processed.","failureModes":["402 Payment Required if the x402 micropayment has not been provided or is invalid","Malformed request if 'amount' is not a valid number","Timeout or 5xx error if the self-hosted gateway is unavailable","Insufficient USDC balance on Base for the micropayment","Gateway returns empty or null result if conversion data is unavailable"],"whenToPreferThis":"Choose this endpoint when you need a pay-per-call currency amount conversion that is gated by an x402 USDC micropayment on Base, making it suitable for autonomous AI agents that can handle blockchain-based micropayments natively without subscription management.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T00:41:11.157Z","isFirstParty":false,"canonicalSlug":"x402-ai-gateway-currency-amount-converter-0b96beb6"}