{"uid":"cap_zm80k-ikWDb7Pa5km24JG","slug":"x402-ai-gateway-currency-amount-conversion-6179c487","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/ghs?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_LpA9ko064W244sK6d85f5","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, gated by an x402 USDC micropayment on Base before executing.","exampleAgentPrompt":"Can you convert 250 of my source currency using the x402 AI gateway? It requires a tiny USDC micropayment on Base per call — go ahead and authorize that.","exampleUseCases":[{"title":"Real-time currency conversion for checkout","prompt":"I need to convert 500 units of currency for a checkout flow — use the x402 gateway and authorize the $0.0002 USDC micropayment to get the result."},{"title":"On-chain pay-per-call data enrichment","prompt":"Run a currency amount conversion for 1000 units through the x402 micropayment gateway and give me the output — pay the Base USDC fee automatically."},{"title":"Testing x402 micropayment-gated endpoint","prompt":"I want to test the x402 AI gateway by converting a default amount of 1 — go ahead and pay the required USDC micropayment on Base and show me what comes back."}],"resultDescription":"A JSON object containing the result of the currency conversion computation. The exact fields returned are not fully documented (response schema is a generic object), but expected to include the converted amount or equivalent value for the input amount provided.","failureModes":["Payment not provided or rejected — 402 Payment Required response blocking execution","Invalid or missing amount field — may default to 1 or return a validation error","Upstream gateway unavailable — 502/503 if self-hosted inference server is down","Malformed request body — 422 Unprocessable Entity if schema is violated","Insufficient USDC balance on Base for micropayment — payment gateway rejects the transaction"],"whenToPreferThis":"Choose this endpoint when you need a pay-per-call, micropayment-gated currency amount conversion that settles on-chain via USDC on Base. It is especially suitable for AI agents that natively support x402 payment flows and need lightweight, serverless-style computation without API key management. Prefer alternatives for high-volume batch conversions or when on-chain payment overhead is undesirable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T06:48:49.901Z","isFirstParty":false,"canonicalSlug":"x402-ai-gateway-currency-amount-conversion-07a42df6"}