{"uid":"cap_RPphxTeQUZyKdh1to2LZy","slug":"x402-ai-gateway-currency-amount-conversion-cb6af11d","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/zwg?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_53XNEm1ZqAG7EXVubkR4g","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 using a self-hosted AI gateway protected by x402 USDC micropayment on Base.","exampleAgentPrompt":"Convert 250 units of source currency using the x402 AI gateway — charge the $0.0002 USDC micropayment and give me back the conversion result.","exampleUseCases":[{"title":"Quick FX amount lookup","prompt":"How much would 500 units come out to after currency conversion? Use the x402 gateway to calculate it for me."},{"title":"Automated forex agent workflow","prompt":"As part of my trading bot, convert 1000 units of source currency using the AI gateway and return the result so I can decide whether to execute the trade."},{"title":"Small-scale currency check for travel","prompt":"I want to convert 75 units of currency for my trip budget — can you run it through the x402 AI gateway and tell me the converted amount?"}],"resultDescription":"Returns a JSON object with the conversion result for the specified currency amount. The exact fields depend on the gateway's AI model response, but typically includes the converted value and possibly metadata about the conversion.","failureModes":["Payment not made or x402 micropayment rejected — endpoint returns 402 Payment Required","Invalid or missing 'amount' field — endpoint returns validation error","Amount is zero or negative — may return an error or unexpected result","Gateway overloaded or self-hosted server unavailable — connection timeout or 503","Unsupported currency pair — may return an empty or error response"],"whenToPreferThis":"Choose this endpoint when you need a pay-per-call currency conversion via a self-hosted AI gateway with x402 USDC micropayment on Base, particularly in agentic workflows where you want minimal per-call cost ($0.0002 USDC) and no subscription overhead. Prefer this over traditional FX APIs when operating within an x402-compatible payment infrastructure.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T00:41:32.902Z","isFirstParty":false,"canonicalSlug":"x402-ai-gateway-currency-amount-conversion-374ae8eb"}