{"uid":"cap_Wen25Neq9-IKe70jilXK3","slug":"mimirapi-chart-numeric-series-to-svg-bb3337d9","name":"MimirAPI Chart — Numeric Series to SVG","description":"Data to chart in one call: a numeric series rendered as a deterministic 800x400 line or bar chart SVG with optional labels and title. No charting library, no browser — an agent composing a report gets a predictable picture of its numbers.","url":"https://mimirapi.com/v1/chart?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"type":{"enum":["line","bar"],"type":"string"},"title":{"type":"string","maxLength":80},"labels":{"type":"array","items":{"type":"string","maxLength":24}},"values":{"type":"array","items":{"type":"number"},"maxItems":100,"minItems":1}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.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_8i7tr5Qab_wZ6p2JwXNw8","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Renders a numeric data series as a deterministic 800×400 line or bar chart SVG, with optional axis labels and title, in a single API call.","exampleAgentPrompt":"Make me a bar chart titled 'Monthly Revenue Q1' with labels Jan, Feb, Mar and values 12000, 15400, 11800 — I need it as an SVG I can drop into a report.","exampleUseCases":[{"title":"Sales trend line chart for report","prompt":"I'm building a quarterly sales report — can you render a line chart titled 'Weekly Sales' with the labels Week 1 through Week 6 and values 4200, 5100, 4800, 6300, 7000, 6500 as an SVG?"},{"title":"Bar chart for agent dashboard summary","prompt":"My monitoring agent just collected CPU usage readings: 45, 67, 82, 55, 91, 73, 60 for the past seven days — generate a bar chart SVG titled 'CPU Usage (%)' with day labels Mon through Sun so I can embed it in the dashboard email."},{"title":"Visualizing experiment results","prompt":"I ran five A/B test variants and got conversion rates of 3.2, 4.1, 3.9, 5.0, and 4.7 — can you make a bar chart titled 'A/B Conversion Rates' with labels Variant A through E as an SVG image?"}],"resultDescription":"Returns a deterministic 800×400 SVG image representing the submitted numeric series as either a line chart or bar chart, including the specified title and axis labels. The SVG is browser-free, reproducible for identical inputs, and ready to embed in reports, emails, or documents.","failureModes":["Empty or missing values array returns a validation error","More than 100 values triggers a maxItems constraint error","Label strings exceeding 24 characters may be rejected or truncated","Invalid chart type (not 'line' or 'bar') returns an enum validation error","Title exceeding 80 characters may be rejected","Network timeout or service unavailability returns a 5xx error","Payment failure via x402 protocol results in a 402 response"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to embed a chart image in a generated report, email, or document without access to a browser, JavaScript charting library, or rendering environment. It is ideal for deterministic, reproducible charts where pixel-perfect consistency matters — the same inputs always produce the same SVG. Prefer it over screenshot-based chart services when you want a clean, lightweight SVG rather than a rasterized PNG, and over full charting frameworks when you want a zero-dependency, per-call solution at low cost.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T18:31:50.324Z","isFirstParty":false,"canonicalSlug":"mimirapi-chart-numeric-series-to-svg-bb3337d9"}