# fastapi.online — Currency Exchange Rate Lookup

> fastapi.online — Currency Exchange Rate Lookup is a paid API for AI agents from api.fastapi.online, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-12).

Retrieves currency exchange rates or performs currency conversion calculations via a self-hosted inference endpoint

## Facts

- Endpoint: POST https://api.fastapi.online/exchanges?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fastapi-online-currency-exchange-rate-lookup-f517c613
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4z2xMu6-g7JwW_B29vine

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability fastapi-online-currency-exchange-rate-lookup-f517c613 -d '<json body>'
```

Example prompt: What's the current exchange rate from USD to EUR, and how much would 250 US dollars convert to in euros?

## When to prefer this

Choose this endpoint when you need a pay-per-call, no-signup currency exchange rate lookup that accepts crypto micropayments via x402 protocol. Useful for agents that need occasional FX lookups without committing to a subscription API key, or when operating in a crypto-native payment context.

## Known failure modes

- Invalid or unsupported currency code returns an error response
- Missing required body fields results in 422 validation error
- Payment not included or insufficient USDC triggers 402 Payment Required
- Unsupported currency pair may return empty or null rate data
- Transient self-hosted model downtime may cause 500 errors

## How this service works

Chat, embeddings, OCR, speech-to-text, image editing, image understanding (captioning/Q&amp;A), text-to-speech, translation, writing tools, classification tools, developer tools, local utilities, format/checksum validators, encoding &amp; crypto utilities, date/time calculators, geo/coordinate math, math &amp; finance calculators, novelty tools, and business/social writing generators — 179 endpoints in all, across multiple specialized self-hosted models. Pay per call with crypto — no signup — or get an API key.

## Output

Returns the current exchange rate between the specified currency pair and optionally the converted amount for a given input value. Response includes rate data sourced from self-hosted models, returned as JSON.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [],
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fastapi-online-currency-exchange-rate-lookup-f517c613/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.fastapi.online](https://www.zero.xyz/host/api.fastapi.online/llms.txt)
