{"uid":"cap_yH_jK0KAVZIlhhMYKGiI3","slug":"x402-ai-gateway-currency-conversion-endpoint-3df85f1e","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/lrd?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_qg46U0FOzrgamAN_0_Sev","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 my source currency using the x402-gated fastapi.online conversion endpoint — pay the $0.0002 USDC micropayment and return the result.","exampleUseCases":[{"title":"Real-time FX amount lookup","prompt":"How much is 500 in the source currency worth after conversion? Use the x402 micropayment gateway on fastapi.online and pay with USDC on Base."},{"title":"Automated finance pipeline conversion","prompt":"In my automated bookkeeping workflow, convert 1000 units through the x402-gated currency endpoint on fastapi.online and give me the converted value."},{"title":"Single-unit exchange rate check","prompt":"What does 1 unit of the source currency convert to? Use the micropayment-gated converter at fastapi.online and deduct the $0.0002 USDC fee."}],"resultDescription":"Returns a JSON object containing the converted currency value or exchange result for the specified amount. Exact output fields are unspecified in the schema but expected to include the converted amount.","failureModes":["Payment not provided or insufficient — endpoint returns HTTP 402 requiring x402 USDC micropayment on Base","Invalid or missing amount field — endpoint may return validation error","Network or gateway error on the self-hosted server — returns 5xx","Unsupported currency pair — may return empty or error response","Amount of 0 or negative — may produce unexpected result"],"whenToPreferThis":"Choose this endpoint when you need a pay-per-call, self-hosted currency conversion that is gated by an x402 USDC micropayment on Base, particularly when minimizing per-call cost ($0.0002 USDC) and avoiding subscription-based FX APIs. Suitable for agents with x402 payment capability that need lightweight, on-demand currency conversion without API key management.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T18:41:42.984Z","isFirstParty":false,"canonicalSlug":"x402-ai-gateway-currency-conversion-endpoint-87c65b3a"}