{"uid":"cap_hVtDVUusDhf4K4cjY7TYK","slug":"diagramforge-render-38c31830","name":"DiagramForge Render","description":"Pay-per-render diagram API for AI agents. Renders Mermaid, PlantUML, Graphviz, D2 and 20+ other text-to-diagram languages to SVG/PNG images. x402 payments (USDC on Base), no accounts or API keys.","url":"https://diagramforge.slatespark.workers.dev/render?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["type","source"],"properties":{"type":{"enum":["mermaid","plantuml","graphviz","d2","c4plantuml","erd","dbml","nomnoml","svgbob","wavedrom","vegalite","vega","pikchr","ditaa","blockdiag","seqdiag","actdiag","nwdiag","packetdiag","rackdiag","bytefield","structurizr","excalidraw","bpmn","tikz","wireviz"],"type":"string","description":"Diagram language"},"format":{"enum":["svg","png","jpeg","txt"],"type":"string","description":"Output format: svg (default) or png (jpeg for graphviz)"},"source":{"type":"string","description":"Diagram source code, e.g. 'graph TD; A-->B;' for mermaid"}}},"responseSchema":{"type":"string"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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":{"p10Cents":"0.3000","medianCents":"0.3000","p90Cents":"0.3000","minCents":"0.3000","maxCents":"0.3000","p95Cents":"0.3000","sampleCount":1,"varies":false,"failureChargeRate":1},"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_TZchSga_WohFnrsU8FdY-","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Renders text-based diagram source code (Mermaid, PlantUML, Graphviz, D2, and 20+ other languages) into SVG or PNG images via a pay-per-use API.","exampleAgentPrompt":"Can you render this Mermaid diagram as a PNG image? Here's the source: 'graph TD; A[Start] --> B{Decision}; B -->|Yes| C[Do it]; B -->|No| D[Skip];'","exampleUseCases":[{"title":"Generate visual flowcharts from process descriptions","prompt":"I've written out a workflow process in Mermaid syntax. Can you convert it to an SVG image so I can share it with the team? The diagram shows our customer onboarding steps from signup through activation."},{"title":"Create architecture diagrams for documentation","prompt":"I need to visualize our system architecture using PlantUML. Can you render this component diagram as a PNG? It shows how our microservices connect to each other and to the database layer."},{"title":"Transform state machines into shareable images","prompt":"I've got a Graphviz state diagram that describes our order fulfillment pipeline. Can you turn this DOT code into a PNG image I can embed in our technical documentation?"}],"resultDescription":"Returns an SVG or PNG image (as a string) of the rendered diagram. The output format depends on the requested format field (svg by default, or png/jpeg for graphviz).","failureModes":["Invalid or unsupported diagram language type returns an error","Malformed diagram source code causes a rendering parse error","Unsupported output format for a given diagram language (e.g. jpeg only for graphviz)","Payment failure or insufficient USDC balance blocks the request","Missing required fields (type or source) returns a validation error"],"whenToPreferThis":"Use DiagramForge when you need to convert text-based diagram code (Mermaid, PlantUML, Graphviz, D2, etc.) into a visual image (SVG or PNG) without needing an account or API key. Ideal for AI agents that generate diagram source code and need to produce shareable image output on-demand, paying per render with USDC on Base via x402.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T00:36:46.961Z","isFirstParty":false,"canonicalSlug":"diagramforge-render-38c31830"}