{"uid":"cap_91WyqnSUoAaagxqFS7IH2","slug":"x402-ai-gateway-currency-amount-conversion-374ae8eb","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/gnf?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_awhANMRPoSdYRbdXsKYAQ","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, returning the converted value, gated behind an x402 USDC micropayment.","exampleAgentPrompt":"Convert 250 units of the source currency for me — I'm okay with the $0.0002 USDC micropayment on Base to run the call.","exampleUseCases":[{"title":"Quick currency amount conversion","prompt":"I need to convert 500 of the source currency — go ahead and make the x402 micropayment and give me the result."},{"title":"Automated per-call FX lookup in workflow","prompt":"In my agent workflow, after each transaction I want to convert 1 unit of the source currency to get the baseline rate — handle the USDC micropayment automatically each time."},{"title":"Spot-check conversion for budgeting","prompt":"Convert 1000 units of the source currency for me and tell me what comes back, the micropayment cost is fine."}],"resultDescription":"A JSON object containing the conversion result for the specified amount; the exact fields depend on the gateway's underlying currency conversion logic, but typically includes the converted value or equivalent amount.","failureModes":["Payment not provided or insufficient USDC balance — 402 Payment Required returned before execution","Invalid or missing 'amount' field — 422 Unprocessable Entity or validation error","Gateway unreachable or self-hosted service down — 502/503 error","Amount is zero or negative — may return error or undefined result","Unsupported currency pair — empty or error response from underlying logic"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call currency amount conversion that requires no subscription or API key — only a small USDC micropayment on Base via the x402 protocol. It is best suited for agent workflows that need sporadic, low-cost currency conversions without committing to a monthly plan.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T12:49:52.542Z","isFirstParty":false,"canonicalSlug":"x402-ai-gateway-currency-amount-conversion-374ae8eb"}