{"uid":"cap_ezj0PT1fH3fJj7bIN00Fu","slug":"x402-ai-gateway-currency-amount-converter-4764dccf","name":"x402 AI Gateway — Currency Amount Converter","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/kmf?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_LdPdm9eiDZJeLAn8w1PNx","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 gated by an x402 USDC micropayment on Base.","exampleAgentPrompt":"Convert 50 units of my source currency using the x402 micropayment gateway — I'm okay with a $0.0002 USDC charge on Base per call.","exampleUseCases":[{"title":"Quick single-unit currency conversion","prompt":"Convert 1 unit of my source currency and give me the result — use the x402 micropayment gateway and charge the $0.0002 USDC fee on Base."},{"title":"Bulk amount currency calculation","prompt":"I need to convert 500 units of my currency through the x402-gated AI gateway. Go ahead and authorize the micropayment and return the converted value."},{"title":"Automated per-call currency rate check","prompt":"Every time I need a currency conversion, hit the x402 AI gateway with the amount I specify and handle the $0.0002 USDC micropayment on Base automatically — start with converting 10 units now."}],"resultDescription":"Returns a JSON object containing the result of the currency conversion computation. Exact fields are unspecified in the schema but typically include the converted amount or rate-related data.","failureModes":["Payment not authorized or insufficient USDC balance on Base — gateway returns 402 Payment Required","Invalid or missing 'amount' field — API may return 400 or default to 1","Gateway unavailable or self-hosted server down — 5xx error","x402 facilitator or payment channel failure — transaction not processed, request blocked","Unexpected empty or malformed JSON response object"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call currency conversion via a self-hosted AI gateway that uses the x402 micropayment protocol on Base (USDC). It is ideal for agents with crypto wallets on Base that want to avoid subscription fees and instead pay fractions of a cent per conversion call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T06:45:27.761Z","isFirstParty":false,"canonicalSlug":"x402-ai-gateway-currency-amount-converter-0b96beb6"}