{"uid":"cap_2OTTRMUF5NXb1WyfASdSa","slug":"x402-ai-gateway-currency-amount-conversion-endpoint-c64cd843","name":"x402 AI Gateway – Currency Amount 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/fkp?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_8AeSqHY4u8hzy7IQU01Qm","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":"Accepts an amount of a source currency and returns a converted value, gated behind an x402 USDC micropayment on Base.","exampleAgentPrompt":"Convert 250 units of the source currency using the x402 AI gateway — pay the $0.0002 USDC micropayment and return the converted result.","exampleUseCases":[{"title":"Single currency amount conversion","prompt":"I need to convert 500 units of my source currency — use the x402-gated conversion endpoint and pay the micropayment automatically."},{"title":"Automated forex micro-conversion in pipeline","prompt":"In my data pipeline, convert an amount of 1 using the x402 gateway for each record that needs a currency value transformed, paying per call in USDC."},{"title":"Testing x402 micropayment-gated compute","prompt":"I want to test calling a real x402-gated API endpoint — send a request to convert the default amount of 1 and confirm the micropayment on Base goes through."}],"resultDescription":"A JSON object containing the result of the currency conversion computation after the x402 micropayment (0.0002 USDC on Base) is verified and processed. The exact fields in the response are not documented in the schema but are expected to include the converted value.","failureModes":["Payment not attached or insufficient USDC balance — returns HTTP 402 with payment instructions","Invalid or missing 'amount' field — returns validation error","Upstream inference or conversion service unavailable — returns 5xx error","Network timeout if the self-hosted gateway is under load","Incorrect Base network configuration causing payment failure"],"whenToPreferThis":"Choose this endpoint when you need a per-call, micropayment-gated currency amount conversion without committing to a subscription, and you already have a USDC wallet on Base capable of x402 payments. It is appropriate for agents that want pay-as-you-go access to a self-hosted AI gateway with transparent per-call pricing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T12:49:18.494Z","isFirstParty":false,"canonicalSlug":"x402-ai-gateway-currency-amount-conversion-endpoint-c64cd843"}