{"uid":"cap_N_utFR4598jxijEqSEEld","slug":"x402-ai-gateway-currency-conversion-endpoint-bd0df2c5","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/ang/hnl?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_24l6cHfNxlZvybqMBdSfs","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, accessible via x402 micropayment (USDC on Base) before execution.","exampleAgentPrompt":"Convert 250 USD to Japanese Yen using the x402 currency gateway — it costs a tiny USDC micropayment per call.","exampleUseCases":[{"title":"Travel budget currency check","prompt":"I'm heading to Japan next month — can you convert 500 USD to JPY so I know roughly what I'll have to spend?"},{"title":"E-commerce multi-currency pricing","prompt":"We're listing a product priced at 79.99 EUR — can you convert that amount to GBP so I can set the UK storefront price?"},{"title":"Crypto portfolio fiat valuation","prompt":"I hold 2.5 ETH and want to know its current value in USD — can you do the conversion for me?"}],"resultDescription":"Returns an object containing the result of the currency conversion for the specified amount, likely including the converted value and possibly the exchange rate applied. Exact response fields are not fully specified in the schema beyond a generic object.","failureModes":["Payment not received or insufficient USDC balance — HTTP 402 returned before execution","Invalid or unsupported currency codes — may return error or empty result","Amount not provided or malformed — defaults to 1 or returns validation error","Service unavailable on self-hosted infrastructure — connection timeout or 503","Ambiguous or missing target currency — incomplete conversion result"],"whenToPreferThis":"Choose this endpoint when you need a pay-per-call currency conversion with no subscription or API key setup, particularly in x402-compatible agent workflows where USDC micropayments on Base are already supported. Ideal for low-frequency, on-demand conversions where per-call billing at $0.0002 USDC is acceptable and you want a self-hosted, lightweight integration.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T18:43:09.699Z","isFirstParty":false,"canonicalSlug":"x402-ai-gateway-currency-conversion-endpoint-b50127b3"}