{"uid":"cap_ic6bBbJ38XmfnjgqgfmUC","slug":"x402-ai-gateway-currency-conversion-endpoint-87c65b3a","name":"x402 AI Gateway — Currency 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/hrk?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_NIKm0QoQhToc6V8c8Xc1B","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 from one currency to another, requiring a micropayment in USDC on Base before execution.","exampleAgentPrompt":"Convert 250 US dollars to Japanese yen using the x402 AI gateway and tell me the result.","exampleUseCases":[{"title":"Travel budget currency conversion","prompt":"I'm planning a trip to Japan — can you convert 500 USD to JPY so I know roughly how much spending money I'll have?"},{"title":"E-commerce international pricing","prompt":"We're listing a product priced at 89 EUR — can you convert that to GBP, USD, and CAD so we can set international prices?"},{"title":"Freelance invoice in foreign currency","prompt":"My client wants to pay in Swiss francs but my invoice is 1200 AUD — how much is that in CHF right now?"}],"resultDescription":"Returns a JSON object containing the converted currency amount and likely the applicable exchange rate or conversion details for the requested currency pair and input amount.","failureModes":["Payment failure: x402 micropayment not completed or insufficient USDC balance, resulting in 402 Payment Required response","Invalid currency codes: unrecognized or unsupported currency pair returns an error","Amount out of range: zero or negative amount may cause validation error","Network/gateway unavailability: self-hosted service may be intermittently offline","Missing required parameters: omitting amount or currency codes may result in a 422 Unprocessable Entity error"],"whenToPreferThis":"Choose this endpoint when you need a pay-per-call currency conversion integrated into an x402-compatible agent workflow on Base/USDC, and want to avoid subscription-based FX APIs. Particularly useful for agents that only occasionally need conversions and want to pay fractions of a cent per call rather than maintaining API key subscriptions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T00:41:35.038Z","isFirstParty":false,"canonicalSlug":"x402-ai-gateway-currency-conversion-endpoint-87c65b3a"}