{"uid":"cap_xN2YnGyOKQDC0pxH-b9A9","slug":"docforge-chart-generator-db7f0fce","name":"DocForge Chart 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/chart","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":[],"properties":{"type":{"type":"string","description":"line (default), bar, pie, donut, scatter, area"},"theme":{"type":"string","description":"light (default) or dark"},"title":{"type":"string"},"width":{"type":"number","description":"200-2000, default 800"},"height":{"type":"number","description":"200-2000, default 500"},"labels":{"type":"array","description":"X-axis categories or pie/donut slice names"},"output":{"type":"string","description":"svg (default) or png"},"series":{"type":"array","description":"[{ name?, data: number[] }]; scatter also accepts [x,y] pairs. Required unless echartsOption is used."},"xLabel":{"type":"string"},"yLabel":{"type":"string"},"stacked":{"type":"boolean"},"transparent":{"type":"boolean"},"echartsOption":{"type":"object","description":"Raw ECharts passthrough (mutually exclusive with type/series)"}}},"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":"SVG chart (image/svg+xml) or PNG (image/png) when output=png"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.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_jsDcmxVRYsQzZKyYveaPM","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates SVG or PNG charts from data via a pay-per-call x402 (USDC on Base) API endpoint","exampleAgentPrompt":"Generate a bar chart showing monthly sales — January $12,000, February $15,500, March $9,800 — and give it to me as a PNG image.","exampleUseCases":null,"resultDescription":"Returns an SVG (image/svg+xml) or PNG (image/png) chart image rendered from the provided data. The format depends on the output parameter: omit for SVG or set output=png for PNG.","failureModes":["402 Payment Required if x402 payment header is missing or invalid — must retry with a valid USDC on Base payment header","Invalid or malformed chart data causing a 400 Bad Request","Unsupported chart type resulting in an error response","Network or service unavailability from the dynamic DNS host (duckdns.org) causing timeouts"],"whenToPreferThis":"Use this endpoint when you need to programmatically generate chart images (SVG or PNG) on a pay-per-use basis with USDC micropayments via x402, without requiring an API key subscription. Ideal for agents that need occasional chart generation billed per call rather than a flat subscription.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-16T01:29:04.385Z","isFirstParty":false}