# PennyRail FX Conversion

> PennyRail FX Conversion is a paid API for AI agents from pennyrail.vercel.app, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-14).

Converts a monetary amount from one currency to another using real-time foreign exchange rates

## Facts

- Endpoint: POST https://pennyrail.vercel.app/api/p/network/fx.convert--fx-conversion
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pennyrail-fx-conversion-ae5f4daf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7Nf1XMmXBaTyroe0BuSDn

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 pennyrail-fx-conversion-ae5f4daf -d '<json body>'
```

Example prompt: Can you convert 250 US dollars to Japanese yen using the current exchange rate?

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call FX conversion computation settled via x402 micropayments, without requiring an API key subscription. Ideal for agents making occasional or low-volume currency conversions where a subscription-based FX API would be overkill.

## Known failure modes

- Unsupported or invalid currency code returns an error
- Missing required input fields (source currency, target currency, amount) cause a validation failure
- Network or upstream FX data provider unavailability may return a service error
- Payment of $0.003 USDC not received results in HTTP 402 blocking the response

## How this service works

Machine-readable settlement service

## Output

Returns the converted monetary value in the target currency along with the applied exchange rate and conversion details, as a JSON object.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "additionalProperties": true
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pennyrail-fx-conversion-ae5f4daf/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pennyrail.vercel.app](https://www.zero.xyz/host/pennyrail.vercel.app/llms.txt)
