# WOD Generator – Rule-Based Custom Workout (GET /wod)

> WOD Generator – Rule-Based Custom Workout (GET /wod) is a paid API for AI agents from wod-api-production.up.railway.app, paid per call via x402, $0.05/call, status unknown (last checked 2026-10-18).

Returns a rule-based custom workout of the day in Markdown, filtered by equipment availability, workout format, and training style, for $0.05 USDC via x402.

## Facts

- Endpoint: GET https://wod-api-production.up.railway.app/wod?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/wod-generator-rule-based-custom-workout-get-wod-fba04773
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uTyu0BsvjLsojwbixiAMS

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 wod-generator-rule-based-custom-workout-get-wod-fba04773
```

Example prompt: Can you generate me a Hyrox-style metcon workout for a full gym? Use seed 42 so I can reproduce it later.

## When to prefer this

Choose this endpoint when you need a fast, rule-based custom workout filtered to specific equipment, format, and style constraints for $0.05 USDC — ideal for agents that need deterministic or repeatable results via seed, or when the user does not need AI-personalised injury modifications or multi-week progressive programming (use POST /wod/custom at $0.35 for that).

## Known failure modes

- Missing required query parameters (equipment, format_type, style) cause request rejection before payment is processed
- Invalid enum values for equipment, format_type, or style return a validation error
- Payment failure via x402 prevents workout delivery
- Seed not supplied means results may vary between calls

## How this service works

Free: the programmed workout of the day (`/wod/today`, `/wod/week`, `/wod/day/{date}`).

Paid with **x402, USDC on Base mainnet (eip155:8453)**:
- `POST /wod/custom`: **$0.35 USDC**. Personalised programme (injuries, custom equipment, single session or multi-week progressive block) written by an AI coach with enforced movement substitutions.
- `GET /wod`: **$0.05 USDC**. Rule-based custom workout by equipment, format and style.

Requests that fail validation are rejected before any payment is requested, and failed generations are never settled.

_HYROX is a registered trademark of its owner. WOD Coach is an independent product and is not affiliated with, endorsed by or sponsored by HYROX._

## Output

A Markdown-formatted workout document including a warm-up section and main workout block, with emojis, tables, and structured rounds/time targets. The workout is tailored to the requested equipment availability, format type (e.g. Strength, Metcon, Engine), and training style (CrossFit, Functional Fitness, Hyrox). If the same seed is supplied, the same workout is returned deterministically.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "equipment",
      "format_type",
      "style"
     ],
     "properties": {
      "seed": {
       "type": "integer",
       "description": "optional; same seed = same workout"
      },
      "style": {
       "enum": [
        "CrossFit",
        "Functional Fitness",
        "Hyrox"
       ],
       "type": "string"
      },
      "equipment": {
       "enum": [
        "Home Gym",
        "Full Gym"
       ],
       "type": "string"
      },
      "format_type": {
       "enum": [
        "Strength",
        "Metcon",
        "Engine",
        "Long Metcon",
        "Speed Run",
        "Zone 2 Run"
       ],
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "format": {
     "type": "string"
    },
    "example": {
     "type": "string"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "text",
 "format": "markdown",
 "example": "# ⚡ “IRON TIDE”: Hyrox Metcon\n\n| 🏠 Equipment | 🧩 Format | 🎨 Style | ⏳ Duration |\n…\n\n## 🔥 Warm-Up · 10 min\n…\n\n## 🏃 Main Workout · 28 min\n**For Time · 5 rounds**\n…"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/wod-generator-rule-based-custom-workout-get-wod-fba04773/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from wod-api-production.up.railway.app](https://www.zero.xyz/host/wod-api-production.up.railway.app/llms.txt)
