{"uid":"cap_M79M2z-JLsedXtZx-578l","slug":"relaystation-chart-generator-c722cd79","name":"RelayStation Chart Generator","description":"$0.0002/call. Render bar, line, or pie charts to PNG from JSON data — report-ready images in one call. 1¢ x402 min; remainder auto-credits — relaystation.ai/penny","url":"https://api.relaystation.ai/v1/generate/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":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","required":["label","value"],"properties":{"label":{"type":"string","maxLength":120},"value":{"type":"number"}}},"maxItems":50,"minItems":1},"type":{"enum":["bar","line","pie"],"type":"string"},"color":{"type":"string","maxLength":32},"title":{"type":"string","maxLength":200},"width":{"type":"integer","maximum":2000,"minimum":200},"height":{"type":"integer","maximum":2000,"minimum":150}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"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":null,"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":"unknown","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_9e21qqyzLAAXjurLyTLeL","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":"Renders bar, line, or pie charts from JSON data and returns a report-ready PNG image in a single API call.","exampleAgentPrompt":"Can you generate a bar chart PNG from this JSON sales data — categories on the X axis and revenue on the Y axis, with the title 'Q1 Sales by Region'?","exampleUseCases":[{"title":"Weekly sales report chart","prompt":"Turn this JSON into a bar chart PNG with the title 'Weekly Sales' — product names on the X axis and units sold on the Y axis. I need it ready to drop into a report."},{"title":"Budget breakdown pie chart","prompt":"Create a pie chart from this JSON budget breakdown showing each department's share of total spend, and give me back a PNG I can embed in a slide deck."},{"title":"Time series line graph","prompt":"Render a line chart from this JSON of daily active users over the past 30 days, with date on the X axis and user count on the Y axis, titled 'DAU Trend'."}],"resultDescription":"A PNG image binary of the rendered chart (bar, line, or pie), suitable for embedding in reports, dashboards, or documents. The image is returned directly in the response at $0.0002 per call (minimum 1¢ x402 charge).","failureModes":["Invalid or malformed JSON data returns a 400 error","Unsupported chart type (not bar/line/pie) returns a validation error","Malformed axis or series structure causes rendering failure","Network timeout on large or complex datasets","x402 payment failure if wallet balance is insufficient"],"whenToPreferThis":"Choose this endpoint when you need to programmatically generate a chart image (PNG) from structured JSON data in a single call — ideal for automated report generation, dashboard snapshots, or embedding charts in documents without a full charting library. Prefer it over client-side charting libraries when the chart needs to be a static image artifact produced server-side by an agent.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:48:49.969Z","isFirstParty":false}