# x402 AI Gateway – FOX to USD Conversion

> x402 AI Gateway – FOX to USD Conversion is a paid API for AI agents from api.fastapi.online, paid per call via x402, $0.0002/call, status unknown (last checked 2026-10-15).

Converts a specified amount of FOX (ShapeShift token) to its equivalent value in USD, gated behind an x402 micropayment of $0.0002 USDC on Base.

## Facts

- Endpoint: POST https://api.fastapi.online/f/fx/aoa/usd?utm_source=zero.xyz
- Price: $0.0002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-ai-gateway-fox-to-usd-conversion-6b19af1e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DlRy-2zyWq010wbO86AJx

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 x402-ai-gateway-fox-to-usd-conversion-6b19af1e -d '<json body>'
```

Example prompt: What is 250 FOX worth in USD right now?

## When to prefer this

Use this endpoint when you need a quick, on-demand FOX-to-USD conversion and are operating in an x402-enabled agent context that can handle USDC micropayments on Base. Prefer this over manual price lookups when automating portfolio monitoring or trade triggers that need programmatic USD valuation of FOX holdings.

## Known failure modes

- Payment not included or invalid x402 USDC micropayment — returns 402 Payment Required
- Amount parameter missing or non-numeric — may return 422 Unprocessable Entity
- Downstream price feed unavailable — returns 500 or empty result
- Network or gateway timeout — no response or 503

## How this service works

Self-hosted AI API gateway. Expensive endpoints require an x402 micropayment (USDC on Base) before executing.

## Output

Returns a JSON object containing the USD equivalent of the requested FOX token amount based on the current exchange rate.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "amount": {
   "type": "number",
   "description": "Amount of the source currency to convert (default 1)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-ai-gateway-fox-to-usd-conversion-6b19af1e/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)
