{"uid":"cap_p4XQHN8v8bXmh3Hq5Y9gt","slug":"x402-ai-gateway-currency-conversion-fx-kes-a0bf1019","name":"x402 AI Gateway — Currency Conversion (FX KES)","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/kes?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_C2RNjnPF3zAEHsAxoWLYr","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, likely to/from Kenyan Shillings (KES), via a self-hosted AI gateway requiring an x402 USDC micropayment on Base.","exampleAgentPrompt":"Convert 250 US dollars to Kenyan Shillings for me using the x402 micropayment gateway.","exampleUseCases":[{"title":"Travel budget in Kenyan Shillings","prompt":"I'm heading to Nairobi next week — can you tell me how much 500 US dollars is in Kenyan Shillings right now?"},{"title":"Invoice amount cross-currency check","prompt":"I need to invoice a Kenyan client for 1200 euros — convert that to KES so I can include both amounts on the invoice."},{"title":"Remittance cost estimation","prompt":"If I send 300 British pounds to Kenya, how many Kenyan Shillings will the recipient get?"}],"resultDescription":"Returns a JSON object containing the converted currency amount, likely including the exchange rate applied and the resulting value in the target currency (KES or equivalent), computed at the time of the micropayment-gated API call.","failureModes":["Payment not included or insufficient USDC micropayment — returns HTTP 402 Payment Required","Invalid or unsupported source currency code — likely returns an error or empty result","Amount of 0 or negative value — may return error or zero result","Network or gateway downtime — returns 5xx server error","Malformed request body — returns 422 validation error"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call currency conversion without committing to a subscription-based FX API. Particularly suited for AI agents that make infrequent FX lookups and want to pay only $0.0002 USDC per conversion via the x402 protocol on Base. Ideal when integrating into crypto-native or Web3 agent workflows already using USDC micropayments.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T12:41:23.708Z","isFirstParty":false,"canonicalSlug":"x402-ai-gateway-currency-conversion-fx-kes-a0bf1019"}