{"uid":"cap_KWEU4gY6Yx-985c6gkBML","slug":"x402-ai-gateway-currency-conversion-endpoint-270aec8a","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/kyd?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_KzQo2esqZy7Lg_egLVIpJ","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, accessible via micropayment-gated AI gateway using USDC on Base.","exampleAgentPrompt":"Convert 250 units of currency using the x402 micropayment-gated gateway and give me the result.","exampleUseCases":[{"title":"Automated FX rate lookup for invoicing","prompt":"I need to convert 500 in source currency to the target currency for an invoice I'm generating — can you call the micropayment currency conversion endpoint and get me the result?"},{"title":"Agent-driven multi-currency reporting","prompt":"My financial report needs currency conversions for various amounts — can you convert 1000 units via the x402 gateway and return the converted value?"},{"title":"Real-time FX check before payment","prompt":"Before I send a payment, I want to know what 75 units converts to — use the pay-per-call currency converter to get the current value."}],"resultDescription":"Returns a JSON object containing the result of the currency conversion computation for the specified input amount. The exact fields are unspecified beyond the generic object schema, but expected to include the converted value or equivalent output.","failureModes":["Payment not completed or rejected — endpoint returns HTTP 402 requiring USDC micropayment before proceeding","Invalid or missing amount input — may return a validation error or default to amount=1","Upstream gateway unavailable — returns 5xx server error","Malformed request body — returns 4xx with schema error","Insufficient USDC balance or wallet not connected — payment step fails before execution"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call currency conversion capability within an x402-compatible micropayment workflow, especially when operating on Base/USDC infrastructure. It is well-suited for AI agents that need occasional FX lookups without committing to a subscription-based FX API. Avoid if you need detailed exchange rate metadata, historical rates, or multi-pair batch conversions, as the schema is minimal.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T06:50:01.174Z","isFirstParty":false,"canonicalSlug":"x402-ai-gateway-currency-conversion-endpoint-b50127b3"}