{"uid":"cap_oiCfZ_-zHcxJabRc_Pkrs","slug":"codepulse-api-media-chart-generator-a27fb595","name":"CodePulse API – Media Chart Generator","description":"Generates charts (bar, line, pie) from JSON configuration payloads using QuickChart.io.","url":"https://codepulse-api.hahavoid0.workers.dev/media/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","required":["chart_config"],"properties":{"chart_config":{"type":"object","description":"Chart.js compatible configuration JSON"}}},"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":{"result":{"chart_url":"https://quickchart.io/chart?c=..."},"warnings":[],"supported":true,"confidence":"high","data_as_of":"2026-06","disclaimer":"Informational support only. Not legal, tax, medical, veterinary, or financial advice. Verify with the cited official source or a qualified professional before acting."}},"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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_j9hMSuX25iufR73UJengA","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates a chart image URL from provided data using QuickChart, returning a hosted chart link ready for embedding.","exampleAgentPrompt":"Can you generate a bar chart showing monthly sales — Jan: 1200, Feb: 950, Mar: 1800, Apr: 1400 — and give me a URL I can embed in my report?","exampleUseCases":[{"title":"Visualize survey results as pie chart","prompt":"I've got survey results from our last customer feedback round — Satisfied: 58%, Neutral: 27%, Dissatisfied: 15% — can you turn that into a pie chart image I can drop into our slide deck?"},{"title":"Plot weekly traffic trends line graph","prompt":"Can you create a line graph showing our website traffic for the past six weeks — Week 1: 4200, Week 2: 3800, Week 3: 5100, Week 4: 6300, Week 5: 5900, Week 6: 7200 — and give me a link I can share with the team?"},{"title":"Generate budget breakdown bar chart","prompt":"I need a bar chart comparing department budgets for Q3 — Engineering: 85000, Marketing: 42000, Sales: 61000, Support: 28000, HR: 19000 — can you generate the image and send me a URL I can embed in the board report?"}],"resultDescription":"Returns a JSON object containing a chart_url pointing to a QuickChart-rendered image, along with any warnings, a supported flag, a confidence rating (e.g. 'high'), the data_as_of date, and a disclaimer note. The chart_url can be used directly in HTML img tags or shared as a link.","failureModes":["Invalid or malformed chart configuration causes a failed render or unsupported response","Unsupported chart type returns supported:false","Missing required data fields may produce warnings array with details","QuickChart backend unavailable causes timeout or error response","USDC payment failure on Base network blocks the call before execution"],"whenToPreferThis":"Use this endpoint when you need a quick, hosted chart image URL from structured data without setting up a charting library or authentication. Ideal for AI agents that need to embed visualizations in reports, messages, or web pages on demand, paying per call with no API key required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:46:29.608Z","isFirstParty":false}