{"uid":"cap_E54V9O18i4o0fr2i0VeDO","slug":"x402-ai-gateway-currency-amount-conversion-4c229a95","name":"x402 AI Gateway – Currency Amount 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/lsl?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_EgI6K3oN_aQ1HnJ7s3lx8","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, using a self-hosted AI gateway protected by x402 USDC micropayment on Base.","exampleAgentPrompt":"Convert 250 units of a source currency using the x402 AI gateway — just send the amount as 250 and give me back the converted result.","exampleUseCases":[{"title":"Travel budget currency check","prompt":"I'm heading to Europe and want to know what 500 of my source currency converts to — can you run that through the AI gateway and give me the result?"},{"title":"E-commerce price localization","prompt":"We need to display localized prices on our store — can you convert an amount of 1 unit through the AI gateway so I can see the base conversion rate?"},{"title":"Automated financial reporting","prompt":"For our monthly report, convert 10000 units through the currency conversion endpoint and return the result so I can include it in the spreadsheet."}],"resultDescription":"Returns a JSON object containing the conversion result for the specified amount; exact fields depend on the server implementation but typically include the converted value and possibly exchange rate metadata.","failureModes":["Payment not attached or insufficient USDC micropayment — returns HTTP 402 Payment Required","Invalid or missing 'amount' field — returns 400 Bad Request or validation error","Server-side AI inference failure — returns 500 Internal Server Error","Network timeout on self-hosted endpoint — connection refused or timeout","Unsupported currency pair — may return empty or error response"],"whenToPreferThis":"Choose this endpoint when you need a pay-per-call currency conversion via a self-hosted AI gateway that accepts x402 USDC micropayments on Base, and you want extremely low cost ($0.0002 per call). Ideal for high-frequency automated agents that need cheap, programmatic currency lookups without committing to a subscription-based FX API.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T18:35:19.952Z","isFirstParty":false,"canonicalSlug":"x402-ai-gateway-currency-amount-conversion-374ae8eb"}