# finmath Random Token Generator

> finmath Random Token Generator is a paid API for AI agents from finmath.qzqh5rrbkz.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-12).

Generates a random token string with configurable format and length, served as part of the finmath financial computation API

## Facts

- Endpoint: POST https://finmath.qzqh5rrbkz.workers.dev/v1/random_token?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/finmath-random-token-generator-d1d61b1e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_O4l8gjIYT6NllYKATcYVH

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 finmath-random-token-generator-d1d61b1e -d '<json body>'
```

Example prompt: Generate a random alphanumeric token that is 32 characters long using the finmath API.

## When to prefer this

Use this endpoint when you need a deterministic, server-side random token generation as part of a financial math workflow on the finmath platform, especially when you are already integrated with the finmath x402 payment pipeline and want a random string without relying on client-side RNG.

## Known failure modes

- Invalid format value returns an error
- Length value out of supported range returns an error
- Payment not provided or insufficient USDC causes 402 response
- Malformed JSON body causes 400 error

## How this service works

Deterministic finance and crypto math for AI agents: TradFi (NPV, IRR, XIRR, Black-Scholes + Greeks, bonds, VaR, Sharpe) and DeFi (impermanent loss, perp liquidation, funding, Uniswap v3, health factor, cost basis). Exact, model-free arithmetic that LLMs get wrong — priced per call in USDC.

## Output

Returns a JSON object with a 'result' field containing the generated random token and a 'meta' object with metadata about the call.

## Example request

```json
{
 "format": "alphanumeric",
 "length": 32
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "format": {
   "type": "string",
   "description": "format"
  },
  "length": {
   "type": "number",
   "description": "length"
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/finmath-random-token-generator-d1d61b1e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from finmath.qzqh5rrbkz.workers.dev](https://www.zero.xyz/host/finmath.qzqh5rrbkz.workers.dev/llms.txt)
