{"uid":"cap_WtLNldjW5w4YSbL1ccC3O","slug":"x402-ai-gateway-currency-conversion-endpoint-d63c7270","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/mkd?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_4kapv-0gkoodpfthmI4-v","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 behind an x402 USDC micropayment on Base before execution.","exampleAgentPrompt":"Convert 250 units of the source currency using the x402 AI Gateway — charge the $0.0002 USDC micropayment and give me the converted result.","exampleUseCases":[{"title":"Quick FX rate lookup for travel","prompt":"I'm traveling abroad and need to know how much 500 of my home currency converts to — can you run the currency conversion through the x402 gateway and tell me the result?"},{"title":"E-commerce checkout currency display","prompt":"Our checkout needs to show customers the price in local currency — convert 79.99 of the source amount using the x402 currency converter endpoint."},{"title":"Automated financial reporting","prompt":"For my daily report, convert 1 unit of the source currency and log the result — use the micropayment-gated conversion API on the x402 gateway."}],"resultDescription":"Returns a JSON object containing the converted currency value or exchange result. The exact schema is loosely typed (generic object), but expected to include the converted amount and possibly rate metadata.","failureModes":["Payment not provided or insufficient USDC balance — 402 Payment Required response","Invalid or unsupported currency pair — may return error or empty result","Missing 'amount' field — defaults to 1 but may behave unexpectedly","Network or gateway downtime — 5xx errors from self-hosted infrastructure","Rate data unavailable — upstream exchange rate provider may be down"],"whenToPreferThis":"Choose this endpoint when you need a low-cost ($0.0002 USDC), pay-per-call currency conversion with no subscription required, and your agent already supports x402 micropayment flow on Base. Ideal for agents with infrequent or bursty conversion needs where a monthly-fee FX API is overkill.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T18:50:26.378Z","isFirstParty":false,"canonicalSlug":"x402-ai-gateway-currency-conversion-endpoint-b50127b3"}