{"uid":"cap_5lnvjBh7j3Olkiry5Gu0B","slug":"x402-ai-gateway-currency-conversion-endpoint-8da1b8ce","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/uyu?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_IgpRelGDby0Z6DqvMWLP6","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 one currency to another, gated by a USDC micropayment on Base via the x402 protocol.","exampleAgentPrompt":"Convert 250 USD to EUR for me — this uses the x402 micropayment gateway so it'll charge a tiny USDC fee per call.","exampleUseCases":[{"title":"Real-time travel expense conversion","prompt":"I'm budgeting for a trip to Japan — can you convert 1500 USD to JPY so I know roughly what I'm working with?"},{"title":"Automated invoice currency normalization","prompt":"Our invoices come in mixed currencies. Convert 3200 GBP to USD so I can normalize it into our reporting."},{"title":"Crypto-adjacent fiat conversion check","prompt":"I need to know what 500 EUR is worth in CHF right now — can you run it through the currency converter?"}],"resultDescription":"Returns a JSON object containing the converted currency value for the specified amount. The exact fields depend on the gateway implementation, but typically includes the result of the conversion.","failureModes":["Payment not included or rejected — 402 Payment Required response; agent must attach valid USDC micropayment on Base","Invalid or missing amount field — may return a 422 or 400 validation error","Unsupported currency pair — gateway may return an error if the source/target currencies are not recognized","Network or gateway downtime — 5xx error from the self-hosted server","Insufficient payment amount — payment below $0.0002 USDC threshold rejected"],"whenToPreferThis":"Choose this endpoint when you need a pay-per-call, programmatic currency conversion without a subscription key, and you are already operating within an x402-compatible payment flow using USDC on Base. It is especially suitable for AI agents that handle their own micropayments autonomously.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T00:41:02.578Z","isFirstParty":false,"canonicalSlug":"x402-ai-gateway-currency-conversion-endpoint-b50127b3"}