{"uid":"cap_mXSkRbSKEOMg6q0BiLf1y","slug":"x402-ai-gateway-currency-amount-conversion-9fb77906","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/nio?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_8cBXv-GR0oKk0I-9Jp7It","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 x402 micropayment (USDC on Base).","exampleAgentPrompt":"Convert 250 units of my source currency using the x402-gated AI gateway — I'm okay paying the $0.0002 USDC micropayment per call.","exampleUseCases":[{"title":"Automated currency conversion pipeline","prompt":"I need to convert 500 units of my source currency through the x402 AI gateway — go ahead and authorize the micropayment and give me the result."},{"title":"Per-call priced FX lookup","prompt":"Can you run a currency amount conversion of 1 through the self-hosted AI gateway at fastapi.online? It needs an x402 micropayment, that's fine."},{"title":"Agent workflow with gated computation","prompt":"As part of my automated workflow, convert a default amount of 1 through the x402-gated conversion endpoint and return whatever result comes back — handle the USDC micropayment on Base."}],"resultDescription":"Returns a JSON object containing the conversion result for the specified amount; exact fields depend on the gateway's runtime response, but typically includes the converted value or computation output.","failureModes":["402 Payment Required — x402 micropayment not provided or insufficient USDC balance on Base","Invalid amount — non-numeric or missing amount field returns validation error","Gateway timeout — self-hosted server may be unavailable or slow","Unknown or unsupported currency pair — gateway may return empty or error response","Network error reaching api.fastapi.online"],"whenToPreferThis":"Choose this endpoint when you need a per-call, pay-as-you-go currency/amount computation gated by x402 micropayments on Base (USDC), and you are already operating within an x402-compatible payment flow. Suitable for AI agents that can autonomously authorize tiny USDC payments. Not ideal if you need free, high-volume, or SLA-guaranteed conversion.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T00:42:16.291Z","isFirstParty":false,"canonicalSlug":"x402-ai-gateway-currency-amount-conversion-07a42df6"}