{"uid":"cap_vLFEcowjDqWj6xtjtpi-Y","slug":"docforge-diagram-generator-9f3a0722","name":"DocForge Diagram Generator","description":"Machine-payable document & media generation via x402 (USDC on Base). Endpoints respond 402 with payment instructions; retry with an x402 payment header.","url":"https://docforge-selim.duckdns.org/diagram?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"required":["source","engine"],"properties":{"scale":{"type":"number","description":"PNG only: 1-3 (default 2)"},"theme":{"type":"string","description":"Mermaid only: default, dark or neutral (default neutral)"},"engine":{"type":"string","description":"'mermaid' or 'graphviz'"},"output":{"type":"string","description":"'svg' (default) or 'png'"},"source":{"type":"string","description":"Mermaid or Graphviz DOT source (max 50KB)"},"background":{"type":"string","description":"'transparent' or hex like '#f5f5f5' (default white)"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":"Standalone SVG (image/svg+xml) or PNG (image/png)"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"down","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_YYLuPQestW14YgqoSH6sg","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates standalone SVG or PNG diagrams from a description or specification, billed at $0.01 USDC per call via x402 on Base.","exampleAgentPrompt":"Generate a flowchart diagram showing a user login process with steps for entering credentials, checking authentication, handling failure with retry, and redirecting on success — output it as an SVG.","exampleUseCases":null,"resultDescription":"A standalone SVG (image/svg+xml) or PNG (image/png) image file containing the rendered diagram, returned after successful x402 USDC payment on Base.","failureModes":["402 Payment Required — returned first to provide x402 payment instructions; caller must retry with a valid x402 payment header","Invalid or insufficient payment — payment header malformed or USDC amount insufficient","Unsupported diagram type or malformed input description — service may return 400 or error JSON","Service unavailable on dynamic DNS host — duckdns.org domain may be offline or unreachable","Timeout if diagram is complex or server is under load"],"whenToPreferThis":"Choose this endpoint when you need to programmatically generate a diagram (flowchart, architecture, sequence, UML, etc.) as a standalone SVG or PNG image, are comfortable with the x402 micropayment flow on Base/USDC, and want a machine-payable API rather than a SaaS dashboard. Particularly useful in agentic workflows that need to embed or deliver diagrams without human-in-the-loop tooling.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T00:27:09.139Z","isFirstParty":false,"canonicalSlug":"docforge-diagram-generator-9f3a0722"}