{"uid":"cap_RHzScSPLmzEtnYedIZwO1","slug":"x402-ai-gateway-currency-amount-conversion-07a42df6","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/ang/iqd?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_L1rTYU8lb-DICM-DyX5MD","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 micropayment-gated AI gateway endpoint.","exampleAgentPrompt":"Convert 50 units of IQD to USD for me — this is on the x402 AI gateway and I'm happy to pay the micropayment fee.","exampleUseCases":[{"title":"Travel budget currency planning","prompt":"I'm traveling to Iraq and want to know how much 200 USD is worth in Iraqi Dinar — can you run that conversion for me?"},{"title":"Invoice currency normalization","prompt":"I need to convert 5000 IQD to USD for an invoice I'm generating — can you compute that amount?"},{"title":"Automated FX rate check","prompt":"My agent needs to check the current conversion value of 1 IQD in USD every hour — can you set that up using the x402 gateway?"}],"resultDescription":"Returns a JSON object containing the converted currency value or exchange result for the specified amount, computed via the self-hosted AI gateway after a $0.0002 USDC micropayment on Base is settled.","failureModes":["402 Payment Required — micropayment not provided or insufficient USDC balance","Invalid or missing amount field — defaults to 1 if omitted but may return unexpected results","Unsupported currency pair — endpoint may not support all forex combinations","Gateway timeout — self-hosted infrastructure may be unavailable","Malformed response — schema is loosely typed, output structure may vary"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call currency conversion with no subscription overhead, and you are already operating within the x402/USDC micropayment ecosystem on Base. Ideal for agents making occasional or automated FX lookups where per-call cost predictability ($0.0002 USDC) matters more than high-volume rate discounts.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T00:41:55.972Z","isFirstParty":false,"canonicalSlug":"x402-ai-gateway-currency-amount-conversion-07a42df6"}