{"uid":"cap_1dWqACUhKBmQF-PJ5mG3J","slug":"x402-ai-gateway-currency-amount-conversion-c7f9d60d","name":"x402 AI Gateway – Currency Amount Conversion","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/ves?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_9y0znyFigXjSTEghqjsqg","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, gated by a $0.0002 USDC x402 micropayment on Base before executing.","exampleAgentPrompt":"Convert 250 units of the source currency using the x402 micropayment gateway — I'm okay paying the $0.0002 USDC fee per call on Base to get the result.","exampleUseCases":[{"title":"Single currency amount conversion","prompt":"I need to convert 500 units of my source currency through that x402-gated endpoint — go ahead and pay the micropayment fee and give me the converted result."},{"title":"Automated pricing pipeline conversion","prompt":"For my pricing pipeline, convert 1 unit of the source currency using the x402 gateway so I can get the base exchange value — the $0.0002 USDC fee per call is fine."},{"title":"Agent-driven multi-step financial workflow","prompt":"As part of my financial workflow, use the x402 AI gateway to convert 1000 units of the source currency and return the output so I can use it in the next step."}],"resultDescription":"Returns a JSON object containing the conversion result for the specified amount; exact fields depend on the gateway's configured currency pair and backend logic.","failureModes":["Payment not included or insufficient USDC: 402 Payment Required response blocking execution","Invalid or missing 'amount' field: request rejected or defaults to 1","Backend conversion service unavailable: 5xx error returned","Malformed x402 payment header: gateway rejects the request","Amount is zero or negative: undefined or error result"],"whenToPreferThis":"Choose this endpoint when you need a pay-per-call, self-hosted currency amount conversion that is gated by an x402 USDC micropayment on Base — ideal for agent workflows where on-chain payment authorization is required or preferred over API key subscriptions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T06:30:24.870Z","isFirstParty":false,"canonicalSlug":"x402-ai-gateway-currency-amount-conversion-374ae8eb"}