{"uid":"cap_C-ViA5YZ61N6LlfFdqf2o","slug":"x402-ai-gateway-currency-conversion-endpoint-096c727c","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/aoa/vnd?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_t-2ew_4POf75VihdcEKVn","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 one currency to another via a self-hosted AI gateway, gated by an x402 USDC micropayment on Base.","exampleAgentPrompt":"Can you convert 250 US dollars to Japanese yen using the x402 AI Gateway — I need the converted amount now and it's okay to make the micropayment.","exampleUseCases":[{"title":"Travel budget currency check","prompt":"I'm heading to Japan next month — can you convert 500 USD to JPY so I know roughly how much spending money I'll have?"},{"title":"Crypto-to-fiat sanity check","prompt":"Convert 1 USDC to USD equivalent so I can see the current exchange value before I make a transfer."},{"title":"International invoice calculation","prompt":"I need to invoice a client in Euros — can you convert 1200 GBP to EUR so I can put the right amount on the invoice?"}],"resultDescription":"Returns a JSON object containing the converted currency amount for the specified source amount and currency pair, provided the x402 USDC micropayment on Base is successfully processed.","failureModes":["Payment not provided or insufficient — returns HTTP 402 requiring x402 USDC micropayment before execution","Invalid or unsupported currency codes — returns an error or empty result","Amount field missing or non-numeric — may default to 1 or return a validation error","Network or gateway downtime on the self-hosted server — returns 5xx error","x402 facilitator or Base network congestion — payment confirmation delay causing timeout"],"whenToPreferThis":"Choose this endpoint when you need a micropayment-gated, self-hosted currency conversion that integrates with the x402 payment protocol on Base/USDC. It is appropriate for agents that already have x402 payment capabilities and want a lightweight, per-call-priced conversion without committing to a subscription-based FX API.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T06:49:57.504Z","isFirstParty":false,"canonicalSlug":"x402-ai-gateway-currency-conversion-endpoint-b50127b3"}