{"uid":"cap_lSSWUQ-RassQOJRhgbdu2","slug":"x402-ai-gateway-currency-conversion-endpoint-dfbc9357","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/kwd?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":"down","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_fRaBrIy-rg_7VjtI-_lzv","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 an x402 USDC micropayment on Base before execution.","exampleAgentPrompt":"Convert 250 USD to EUR for me using the x402 micropayment gateway — just pay the $0.0002 USDC fee and give me the result.","exampleUseCases":[{"title":"Real-time forex rate lookup","prompt":"What is 1000 Japanese Yen worth in US dollars right now? Use the x402 currency conversion API and pay the micropayment fee."},{"title":"E-commerce multi-currency pricing","prompt":"I need to display the price of a $49.99 product in British pounds on my storefront — can you convert that amount for me using the x402 gateway?"},{"title":"Travel budget calculation","prompt":"I'm budgeting for a trip and need to know how much 3500 Mexican pesos is in Canadian dollars — run the conversion through the x402 API."}],"resultDescription":"Returns an object containing the converted currency value for the specified amount, based on current exchange rates. The exact response fields depend on the server implementation but typically include the converted amount and possibly the rate used.","failureModes":["Payment not included or insufficient — server returns HTTP 402 requiring x402 USDC micropayment on Base before proceeding","Invalid or unsupported currency codes — endpoint may return an error or empty result","Amount field missing or non-numeric — schema validation error","Network or server downtime on the self-hosted instance — connection timeout or 5xx error","Stale or unavailable exchange rate data — result may be outdated or endpoint returns error"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call currency conversion capability and are already operating within an x402-compatible payment infrastructure using USDC on Base. It is ideal for agents that handle small, infrequent conversions where a subscription-based forex API is overkill, or when testing x402 micropayment-gated workflows in a self-hosted environment.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-17T07:25:48.112Z","isFirstParty":false,"canonicalSlug":"x402-ai-gateway-currency-conversion-endpoint-b50127b3"}