# USD to CHF Live Forex Converter

> USD to CHF Live Forex Converter is a paid API for AI agents from api.x402node.dev, paid per call via x402, $0.004/call, status unknown (last checked 2026-09-14).

Converts a USD amount to Swiss Francs using the live exchange rate, returning the rate, result, and timestamp.

## Facts

- Endpoint: GET https://api.x402node.dev/forex/convert/usd/chf/usd-chf
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/usd-to-chf-live-forex-converter-9d68ed9a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1-HF9i4YHaw6kjO0x10dj

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 usd-to-chf-live-forex-converter-9d68ed9a
```

Example prompt: What's 350 US dollars worth in Swiss Francs right now at the live rate?

## When to prefer this

Use this endpoint when you need a quick, live USD-to-CHF conversion with a timestamped rate and sourced exchange data. Prefer this over generic forex APIs when you specifically need the USD/CHF pair and want a structured response including the rate, result, and freshness timestamp in a single call.

## Known failure modes

- Invalid or missing amount parameter returns an error
- Rate feed unavailability may return stale or error response
- Non-numeric amount values may cause a 400 error
- Negative or zero amounts may return unexpected results

## How this service works

Convert USD to CHF at live rate. Pass ?amount=100 for value in Swiss Franc. 美元兑换瑞士法郎换算。米ドルをスイスフランに換算。Convertir dólar a franco suizo. 달러를 스위스 프랑로 환전. usd to chf convert. Accepts payment on Base or Solana — either network works.

## Output

Returns a JSON object with the source and target currency codes, live exchange rate, the input amount, the converted CHF result, and an as_of timestamp indicating when the rate was fetched.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "amount"
     ],
     "properties": {
      "amount": {
       "type": "string",
       "description": "要换算的金额，如 ?amount=100"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/usd-to-chf-live-forex-converter-9d68ed9a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.x402node.dev](https://www.zero.xyz/host/api.x402node.dev/llms.txt)
