{"uid":"cap_W8TFS5OG9K9OznIJe1L2D","slug":"first-ruble-agent-svg-preflight-api-5e64fb83","name":"First Ruble Agent — SVG Preflight API","description":"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.","url":"https://first-ruble-agent.tohaa28.workers.dev/api/preflight?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"svg":{"type":"string","description":"Self-contained SVG string, <=128 KiB, without DTD"}}},"responseSchema":{"type":"json","example":{"counts":{"vectorShapes":1},"issues":[{"code":"device_rgb_candidate","severity":"warning"}],"status":"warnings"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_400kA98wBsMjgbytj0W9d","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Heuristically inspects SVG files for print-production issues including raster elements, live text, transparency, RGB/HEX color candidates, gradients, effects, and open paths.","exampleAgentPrompt":"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>","exampleUseCases":[{"title":"Pre-print SVG quality check","prompt":"Before I send this logo SVG to the print shop, can you check it for issues like raster images, live text, transparency, or RGB colors that might cause problems? Here's the SVG content: <svg xmlns='http://www.w3.org/2000/svg'>...</svg>"},{"title":"Automated artwork validation pipeline","prompt":"I'm building a file submission portal — can you run a preflight check on this customer-uploaded SVG and return any warnings or errors about gradients, effects, open paths, or color space issues so I can flag them before production?"},{"title":"Detect non-print-safe colors in SVG","prompt":"This SVG is going to commercial print but I'm worried it has HEX or RGB color values instead of CMYK-safe ones — can you scan it and tell me if there are any device RGB candidates or other color issues I should fix?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T12:33:45.816Z","isFirstParty":false,"canonicalSlug":"first-ruble-agent-svg-preflight-api-75f895ba"}