{
  "id": 15652161,
  "title": "Currency Conversion API for AI Agents: ECB Reference Rates, Pay Per Conversion",
  "url": "https://urgent.news/2026/10/19/currency-conversion-api-for-ai-agents-ecb-reference-rates-pay-per",
  "topic": "ai",
  "section": "AI",
  "published": "2026-10-19T20:55:58.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/scriptmasterlabs01/currency-conversion-api-for-ai-agents-ecb-reference-rates-pay-per-conversion-1cnb"
  },
  "original_language": "en",
  "account": "The Currency Conversion API for AI agents, known as SML FX Convert, offers pricing, reporting, and budgeting capabilities across multiple currencies. Instead of relying on subscription FX feeds, additional API keys, or treating reference rates as tradable quotes, SML FX Convert provides a pay-per-call service. By checking the source upfront in the response itself, the API identifies the European Central Bank's daily reference rates. This is facilitated through a free GET request to /api/fx/info, which returns the exchanged rates from the ECB statistics.\n\nThe pricing model is straightforward: $0.001 USDC is charged for each accepted conversion on Base mainnet. When making a conversion request without payment, such as GET /api/fx/convert?from=USD&to=EUR&amount=100, the API will respond with an HTTP 402 status code and a PAYMENT-REQUIRED header quoting exactly 1,000 atomic USDC, using the network eip155:8453 and the exact scheme.\n\nA pack of 100-conversion credits is available for $0.005 USDC, equating to $0.00005 USDC per successful conversion when fully utilized. The service adopts a fail-closed approach, meaning that if the real rate is unavailable, no settlement occurs, and the caller receives an alternative route without incurring any costs. Invalid codes, malformed amounts, or unavailability of the reference data will not be silently converted into a paid, fabricated conversion.\n\nIt's crucial to note that SML FX Convert is designed for calculating ECB reference-rate conversions, not executing bank, card, exchange, or broker quotes. The service does not custody fiat, trade currencies, guarantee spreads, or guarantee that a reference rate is executable anywhere. Its primary purpose is to normalize vendor prices, compare API costs in different currencies, convert budget limits before tool selection, and maintain accurate reporting in a single reference currency. The API ensures that source provenance is prioritized over pretending a reference rate is a live dealing price. The terms and conditions remain current until a 402 challenge is issued, which signals the need for payment, not settlement. The complete evidence and claim receipts can be found in the linked article on this article's canonical source.",
  "summary": "Agent workflows price, report, and budget in more than one currency. The usual routes to a conversion are a subscription FX feed, another API key to babysit, or pretending a reference rate is a tradable quote. SML FX Convert is the pay-per-call primitive instead — with the source named up front. Measured live on 2026-10-19 GET /api/fx/info (free) identifies the source in the response itself:…",
  "key_points": [
    "SML FX Convert provides pay-per-call currency conversion service using ECB reference rates.",
    "API identifies ECB rates via free GET request to /api/fx/info.",
    "$0.001 USDC charged per accepted conversion on Base mainnet."
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}