{"uid":"cap_G5aSL2w_dR2H1WnXcZvta","slug":"x402-ai-gateway-currency-conversion-441df938","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/lak?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_rp_mWXTlhcer_qDF-fzby","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 behind an x402 USDC micropayment on Base before executing.","exampleAgentPrompt":"Convert 250 USD to EUR for me — use the x402-gated currency conversion endpoint on fastapi.online and deduct the $0.0002 USDC fee automatically.","exampleUseCases":[{"title":"Real-time FX rate for invoicing","prompt":"I need to invoice a client in Japan — can you convert 5000 USD to JPY right now so I know the current amount to put on the invoice?"},{"title":"Crypto portfolio valuation","prompt":"Convert 2.5 ETH to USD using the x402 currency API so I can see what my holdings are worth in dollars today."},{"title":"Travel budget estimation","prompt":"I'm heading to London next month — convert 1000 CAD to GBP so I know roughly how much spending money I'll have."}],"resultDescription":"Returns a JSON object containing the converted currency value for the specified amount, computed at current exchange rates. The exact response schema is open-ended but expected to include the result of the conversion.","failureModes":["Payment not attached or insufficient USDC balance returns HTTP 402 Payment Required","Invalid or unsupported currency codes may return an error or empty result","Malformed amount (e.g. negative or non-numeric) may cause a 422 Unprocessable Entity","Service unavailability due to self-hosted infrastructure downtime returns 5xx","Missing amount field may default to 1 or return a validation error"],"whenToPreferThis":"Choose this endpoint when you need a quick, cheap currency conversion via a self-hosted gateway and your agent stack already supports x402 micropayment flows on Base (USDC). At $0.0002 per call it is cost-effective for high-frequency conversions. Prefer it when you want to avoid centralized FX API key management and instead use crypto-native pay-per-use access.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T00:43:04.713Z","isFirstParty":false,"canonicalSlug":"x402-ai-gateway-currency-conversion-7321f9c1"}