# Relief Forge Curve Clearance — Bezier Segment Gap Inspector

> Relief Forge Curve Clearance — Bezier Segment Gap Inspector is a paid API for AI agents from first-ruble-agent.tohaa28.workers.dev, paid per call via x402, $0.03/call, status unknown (last checked 2026-11-19).

Computes the minimum clearance distance between two Bezier curve segments and checks whether it meets a specified threshold, for print prepress safety validation.

## Facts

- Endpoint: POST https://first-ruble-agent.tohaa28.workers.dev/api/curve-clearance?utm_source=zero.xyz
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/relief-forge-curve-clearance-bezier-segment-gap-inspector-53d070a5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cHGS8FaGP61GJtaxC5Cn5

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 relief-forge-curve-clearance-bezier-segment-gap-inspector-53d070a5 -d '<json body>'
```

Example prompt: Check whether these two cubic Bezier curves are safely separated for print: segment A has control points [0,0], [5,10], [15,10], [20,0] and segment B has control points [0,3], [5,13], [15,13], [20,3] — flag it if the gap is less than 0.3 mm.

## When to prefer this

Use this endpoint when you need to programmatically verify that two specific Bezier curve segments maintain a minimum physical separation in millimeters — particularly in prepress, print production, laser cutting, or die-cutting workflows where path proximity is a safety or quality constraint. It is especially valuable inside automated prepress pipelines that need a cheap, fast geometric check without spinning up a full CAD or vector graphics library.

## Known failure modes

- Missing or malformed control point arrays returns an error — each segment needs 2–4 [x,y] pairs
- thresholdMm outside the valid range (<=0 or >1000) causes a validation error
- Degenerate or zero-length Bezier segments may produce unexpected distance results
- Network or Cloudflare Worker timeout on complex geometry
- x402 payment failure (insufficient USDC balance) blocks the request entirely

## How this service works

Focused APIs for SVG print risks, fine print details, Bezier clearance, tiny objects and holes, vector quality, cutting contours and native SVG/CorelDRAW EPS curves. From 0.02 USDC per request with x402 on Base. Free fixed samples and MCP discovery. Not a certified production approval.

## Output

Returns a JSON object with the tool name ('Relief Forge Curve Clearance'), a status string (e.g. 'gap_below_threshold' or similar pass/fail indicator), a boolean 'complete' flag, the computed minimum distance between the two Bezier segments in millimeters ('distanceMm'), and the input threshold value ('thresholdMm').

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "a": {
   "type": "array",
   "description": "Line, quadratic or cubic Bezier control points in mm: 2-4 [x,y] pairs"
  },
  "b": {
   "type": "array",
   "description": "Second Bezier segment: 2-4 [x,y] control points"
  },
  "thresholdMm": {
   "type": "number",
   "description": "Minimum permitted clearance in millimeters, >0 and <=1000"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "tool": "Relief Forge Curve Clearance",
  "status": "gap_below_threshold",
  "complete": true,
  "distanceMm": 0.2,
  "thresholdMm": 0.3
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/relief-forge-curve-clearance-bezier-segment-gap-inspector-53d070a5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from first-ruble-agent.tohaa28.workers.dev](https://www.zero.xyz/host/first-ruble-agent.tohaa28.workers.dev/llms.txt)
