{"uid":"cap_ooqCtDHOu1XsTTpBNGCjJ","slug":"x402-ai-gateway-currency-amount-conversion-endpoint-74d1edba","name":"x402 AI Gateway – Currency Amount 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/npr?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_gUfrZB2RDB5cx4UBFiq_e","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, gated by an x402 USDC micropayment on Base.","exampleAgentPrompt":"Convert 250 units of the source currency using the x402 AI gateway — it'll charge a tiny USDC micropayment per call on Base.","exampleUseCases":[{"title":"On-chain micropayment currency conversion","prompt":"I need to convert 500 of my source currency and I'm okay paying a small USDC fee per call on Base — use the x402 gateway to do it."},{"title":"Automated currency amount normalization","prompt":"For my app's pricing pipeline, convert 1 unit of the source currency through the x402 AI gateway so I can normalize costs across markets."},{"title":"Testing x402 payment-gated API flow","prompt":"Run a test conversion of 10 units through the x402 micropayment AI gateway and show me what comes back so I can verify the payment flow works."}],"resultDescription":"Returns a JSON object containing the result of the currency conversion computation. The exact fields depend on the endpoint's internal logic, but typically includes the converted amount or related financial data.","failureModes":["402 Payment Required if USDC micropayment on Base is not provided or insufficient","Invalid input if amount is not a valid number","Timeout or 5xx if the self-hosted inference backend is unavailable","Malformed response if the upstream AI gateway encounters an internal error","Rejected payment if the x402 facilitator cannot verify the transaction"],"whenToPreferThis":"Choose this endpoint when you need a pay-per-call, micropayment-gated currency conversion that integrates with the x402/USDC payment rail on Base, particularly in autonomous agent workflows where on-chain payments are preferred over subscription APIs.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T06:48:20.702Z","isFirstParty":false,"canonicalSlug":"x402-ai-gateway-currency-amount-conversion-endpoint-c64cd843"}