# First Ruble Agent — SVG Preflight API

> First Ruble Agent — SVG Preflight API is a paid API for AI agents from first-ruble-agent.tohaa28.workers.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-11-19).

Heuristically inspects SVG files for print-production issues including raster elements, live text, transparency, RGB/HEX color candidates, gradients, effects, and open paths.

## Facts

- Endpoint: POST https://first-ruble-agent.tohaa28.workers.dev/api/preflight?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/first-ruble-agent-svg-preflight-api-5e64fb83
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_W8TFS5OG9K9OznIJe1L2D

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 first-ruble-agent-svg-preflight-api-5e64fb83 -d '<json body>'
```

Example prompt: Can you preflight this SVG file for me and flag any print issues — things like embedded raster images, live text that hasn't been outlined, RGB or HEX color candidates, transparency, gradients, or open paths? Here's the SVG: <svg>...</svg>

## When to prefer this

Use this endpoint when you need a fast, automated heuristic scan of an SVG file for common print-production pitfalls — especially when building submission portals, pre-press pipelines, or agent workflows that need to flag potential issues before human review or certified prepress processing. It is not a substitute for certified prepress software (e.g. Acrobat Preflight) but is well-suited for quick automated triage of SVG assets under 128 KiB.

## Known failure modes

- SVG exceeds 128 KiB limit — request rejected
- Malformed or non-SVG string input — parsing error returned
- SVG contains DTD declarations — rejected per schema constraint
- Heuristic false positives on complex SVG constructs — not a certified prepress check
- Network timeout on Cloudflare Workers edge — transient failure
- Payment not fulfilled via x402 protocol — 402 response with payment details

## 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

A JSON object containing counts of detected vector shape elements, an array of issues each with a code (e.g. 'device_rgb_candidate') and severity (e.g. 'warning' or 'error'), and an overall status string ('ok', 'warnings', or 'errors') summarizing the preflight result.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "svg": {
   "type": "string",
   "description": "Self-contained SVG string, <=128 KiB, without DTD"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "counts": {
   "vectorShapes": 1
  },
  "issues": [
   {
    "code": "device_rgb_candidate",
    "severity": "warning"
   }
  ],
  "status": "warnings"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/first-ruble-agent-svg-preflight-api-5e64fb83/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)
