{"uid":"cap_jYZx7xl0Wuqny27osvzPC","slug":"x402-ai-gateway-currency-amount-conversion-bb3cbe77","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/mga?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_p71Q11RyPlRRDmyZayWN6","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 via a self-hosted AI gateway endpoint secured with x402 USDC micropayments on Base.","exampleAgentPrompt":"Convert 250 units of my source currency using the x402-gated conversion endpoint — charge the 0.0002 USDC micropayment and give me the result.","exampleUseCases":[{"title":"Quick currency amount lookup","prompt":"I need to convert 500 of my source currency — can you hit the x402 gateway, pay the micropayment, and tell me the converted amount?"},{"title":"Automated FX check in a workflow","prompt":"As part of my expense reconciliation, convert 1 unit using the x402-gated API and return the conversion result so I can use it downstream."},{"title":"Microtransaction-gated rate fetch","prompt":"Use the x402 AI gateway to convert 1000 units and return whatever the conversion result is — go ahead and authorize the USDC micropayment."}],"resultDescription":"A JSON object containing the currency conversion result for the specified amount; exact fields depend on the server implementation but typically includes the converted value.","failureModes":["402 Payment Required if USDC micropayment fails or wallet balance is insufficient","Invalid amount input returns a validation error","Upstream currency data unavailable returns a 503 or empty result","Malformed request body returns a 422 Unprocessable Entity","Network timeout if the self-hosted gateway is overloaded"],"whenToPreferThis":"Choose this endpoint when you need currency conversion in an agent workflow that already supports x402 micropayment flows on Base/USDC, and when cost per call ($0.0002 USDC) is acceptable. Prefer this over free alternatives when operating in a trustless, pay-per-use agent economy or when the self-hosted nature of the gateway provides privacy or control benefits.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T06:46:18.803Z","isFirstParty":false,"canonicalSlug":"x402-ai-gateway-currency-amount-conversion-374ae8eb"}