{"uid":"cap_zxojB0vmmJM8TrHTRyR9L","slug":"x402-ai-gateway-currency-conversion-7321f9c1","name":"x402 AI Gateway — Currency Conversion","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/htg?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_S3mpmiFifLAT05LTyMe8F","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.","exampleAgentPrompt":"Convert 250 US dollars to Japanese yen for me — charge the micropayment automatically.","exampleUseCases":[{"title":"Travel budget currency check","prompt":"How much is 500 euros in US dollars? I need to know for my travel budget."},{"title":"E-commerce cross-border pricing","prompt":"Convert 1200 British pounds to Canadian dollars so I can display the right price on my store."},{"title":"Crypto fiat equivalent lookup","prompt":"What's 0.5 ETH worth in USD right now? Convert it for me."}],"resultDescription":"Returns a JSON object containing the converted currency amount and likely the exchange rate or pair metadata used for the calculation.","failureModes":["Payment not received — 402 response if micropayment is not provided or fails","Invalid or unsupported currency code — may return an error or empty result","Amount field missing or non-numeric — validation error","Upstream exchange rate provider unavailable — service may return 503 or stale data","Malformed request body — 422 Unprocessable Entity"],"whenToPreferThis":"Choose this endpoint when you need a pay-per-call currency conversion with no subscription required, settling in USDC on Base via the x402 protocol. Suitable for agents that perform occasional conversions and want to avoid API key management, or when operating in a micropayment-native environment.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T06:45:43.462Z","isFirstParty":false,"canonicalSlug":"x402-ai-gateway-currency-conversion-7321f9c1"}