{"uid":"cap_QYf6tGLbg4dzKCF5_G6Wi","slug":"x402-ai-gateway-currency-conversion-endpoint-af869fd3","name":"x402 AI Gateway – Currency Conversion Endpoint","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/try?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_u1X7_L_7iPYkW3q9pRTVv","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 from one currency to another, gated behind an x402 USDC micropayment on Base before executing.","exampleAgentPrompt":"Can you convert 250 USD to EUR for me using the x402 micropayment-gated currency converter? Just send the 0.0002 USDC payment and give me the result.","exampleUseCases":[{"title":"Traveler currency budget check","prompt":"I'm heading to Japan and want to know how much 500 USD converts to in Japanese yen right now — can you run it through the pay-per-call currency conversion API?"},{"title":"E-commerce multi-currency pricing","prompt":"I need to display product prices in euros for my European customers — convert 79.99 USD to EUR using the x402 currency converter."},{"title":"Crypto-to-fiat spot check","prompt":"What's 1 ETH worth in British pounds today? Use the micropayment currency conversion endpoint and just charge the USDC fee."}],"resultDescription":"A JSON object containing the converted currency value for the specified amount, likely including the resulting amount and possibly the exchange rate applied. The exact schema is unspecified beyond a generic object response.","failureModes":["Payment not provided or insufficient USDC — returns HTTP 402 Payment Required","Invalid or unsupported currency codes — may return an error or empty result","Amount parameter missing — defaults to 1 or may error","Network/gateway unavailability — connection timeout or 5xx error","Stale or unavailable exchange rate data — may return outdated or null values"],"whenToPreferThis":"Choose this endpoint when you need a pay-per-use, self-hosted currency conversion with x402 micropayment support on Base (USDC), especially in agent workflows where you want to avoid subscription-based FX APIs and prefer fractional per-call billing at $0.0002 per request. It is well-suited for low-frequency, on-demand currency lookups embedded in autonomous agent pipelines.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T06:50:58.042Z","isFirstParty":false,"canonicalSlug":"x402-ai-gateway-currency-conversion-endpoint-b50127b3"}