{"uid":"cap_IgMh5rqRZtqr0jyaSEB5T","slug":"x402-ai-gateway-currency-amount-converter-7cc82b33","name":"x402 AI Gateway — Currency Amount Converter","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/ttd?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_1ocfZGirvonkSWOoUVp4S","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, returning the converted value, via a micropayment-gated AI inference endpoint.","exampleAgentPrompt":"Convert 100 units of my source currency using the x402 AI gateway — just pass the amount and give me back the converted result.","exampleUseCases":[{"title":"Quick currency amount conversion","prompt":"Can you convert 250 units of currency through the x402 gateway and tell me what the converted amount comes out to?"},{"title":"Default single-unit conversion check","prompt":"What does 1 unit of the source currency convert to? Use the fastapi.online x402 gateway to get the result."},{"title":"Batch conversion estimate for invoicing","prompt":"I need to convert 5000 units via the micropayment-gated currency endpoint on fastapi.online — what's the converted value so I can use it in my invoice?"}],"resultDescription":"Returns a JSON object containing the conversion result for the specified amount of the source currency. The exact fields depend on the endpoint's implementation, but typically include the converted value and possibly the exchange rate or currency pair details.","failureModes":["Payment not provided or invalid x402 micropayment — returns HTTP 402 Payment Required","Amount field missing or non-numeric — returns validation error","Source or target currency not supported — may return empty or error object","Downstream AI inference service unavailable — returns 5xx error","Malformed request body — returns 422 Unprocessable Entity"],"whenToPreferThis":"Choose this endpoint when you need a micropayment-gated currency conversion computation hosted on a self-hosted AI inference gateway (fastapi.online), especially in workflows already using the x402 payment protocol on Base/USDC. It is best suited for agents that manage x402 payments natively and need a low-cost ($0.0002 USDC) per-call conversion without relying on traditional API-key-gated FX services.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T18:35:35.697Z","isFirstParty":false,"canonicalSlug":"x402-ai-gateway-currency-amount-converter-0b96beb6"}