{"uid":"cap_vOeqIQtZuNGwaxDIfT9h0","slug":"x402-ai-gateway-currency-amount-conversion-da951bb5","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/pab?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_Oh41NYoKaPfkFax5sV03k","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 protected by x402 USDC micropayment.","exampleAgentPrompt":"Convert 250 units of my source currency using the x402 micropayment gateway — go ahead and authorize the $0.0002 USDC payment on Base to get the result.","exampleUseCases":[{"title":"Automated currency conversion in agent workflow","prompt":"I need to convert 100 units of my source currency right now — use the x402 gateway and pay the micropayment automatically so I get the converted amount back."},{"title":"Testing x402 micropayment-gated API","prompt":"Can you hit the x402 AI gateway currency conversion endpoint with an amount of 1 and confirm the USDC micropayment on Base goes through and returns a result?"},{"title":"Bulk micro-conversion for accounting pipeline","prompt":"Run a currency conversion for amount 500 through the fastapi.online x402 gateway — I want to see what value comes back after the micropayment clears."}],"resultDescription":"Returns a JSON object containing the result of the currency conversion computation. The exact fields are not documented in the schema beyond a generic object, so the agent should inspect the response body for the converted value and any metadata returned by the gateway.","failureModes":["Payment not authorized or insufficient USDC balance on Base — returns HTTP 402 Payment Required","Invalid or missing 'amount' field — may return a 4xx validation error","Gateway server unavailable or self-hosted instance down — returns 5xx or connection timeout","x402 facilitator unable to verify payment — transaction rejected before processing","Amount value out of supported range — unspecified error response"],"whenToPreferThis":"Choose this endpoint when you need a pay-per-call currency conversion that settles instantly via USDC micropayment on Base, especially in autonomous agent workflows where on-chain payment authorization is already set up. Prefer it over free or subscription-based APIs when you want minimal commitment and true usage-based billing at $0.0002 per call. Avoid if you need a well-documented schema, guaranteed uptime SLA, or do not have a USDC wallet configured on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T00:40:41.883Z","isFirstParty":false,"canonicalSlug":"x402-ai-gateway-currency-amount-conversion-07a42df6"}