# cad402 CAD File Validator

> cad402 CAD File Validator is a paid API for AI agents from cad402-production.up.railway.app, paid per call via x402, $0.02/call, status unknown (last checked 2026-12-03).

Validates STEP or STL CAD files for geometric correctness, watertightness, volume, and bounding box dimensions

## Facts

- Endpoint: POST https://cad402-production.up.railway.app/v1/validate?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-03
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cad402-cad-file-validator-c129613f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0XX6WlH_kqrkobuHw_zw2

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 cad402-cad-file-validator-c129613f -d '<json body>'
```

Example prompt: Can you check this STEP file (widget_housing.step) for validity and tell me if it's watertight, what its volume is, and what the bounding box looks like? Here's the base64-encoded content.

## When to prefer this

Use this endpoint when you need a quick, automated geometric sanity check on a STEP or STL file — especially before submitting to a manufacturer, 3D print service, or simulation pipeline. It uniquely combines validity, watertightness, volume, and bounding box in a single call, making it ideal for pre-submission QA workflows where you need all four metrics without running full local CAD software.

## Known failure modes

- File exceeds size limit (>3 MB for STEP, >10 MB for STL) — returns error
- Filename does not end in .step, .stp, or .stl — rejected
- Invalid or corrupted base64 data — decoding error
- Malformed or non-parseable CAD geometry — returns parse failure
- Unsupported file format submitted despite correct extension

## How this service works

Check a STEP or STL: validity, watertightness, volume, bounding box

## Output

Returns a structured report indicating whether the CAD file is geometrically valid, whether the solid is watertight (closed manifold), the computed volume of the model, and the axis-aligned bounding box dimensions (x, y, z extents).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "filename": {
   "type": "string",
   "description": "must end in .step, .stp or .stl"
  },
  "data_base64": {
   "type": "string",
   "description": "base64 file content; decoded max 3 MB for STEP, 10 MB for STL"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cad402-cad-file-validator-c129613f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from cad402-production.up.railway.app](https://www.zero.xyz/host/cad402-production.up.railway.app/llms.txt)
