{"uid":"cap_YR6pz8mUmOFNXhPjgPB6p","slug":"x402-agent-hub-visual-card-sparkline-renderer-102db73e","name":"x402 Agent Hub – Visual Card & Sparkline Renderer","description":"Deterministic visual card & sparkline renderer for coding and marketing agents. Produces crisp, zero-typo 1200x630 OpenGraph banners, 1080x1350 portrait social KPI slides, or trading signal sparkline cards as vector SVG (with data URI) or binary PNG.","url":"https://x402-agent-hub.x402-agent-hub.workers.dev/v1/render/card?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"badge":{"type":"string","description":"Top pill badge label"},"theme":{"enum":["dark","light"],"type":"string"},"title":{"type":"string","description":"Primary headline text"},"format":{"enum":["json","svg","png"],"type":"string","description":"json (returns SVG + data URI metadata), svg (raw image/svg+xml), or png (binary image/png)"},"subtitle":{"type":"string","description":"Supporting subtitle line"},"template":{"enum":["og_banner","social_kpi","trading_signal"],"type":"string","description":"Card layout preset (og_banner 1200x630, social_kpi 1080x1350, trading_signal 1200x630)"},"brandName":{"type":"string","description":"Footer brand attribution"},"sparkline":{"type":"array","items":{"type":"number"},"description":"Numeric series for deterministic area sparkline chart"},"accentColor":{"type":"string","description":"6-digit hex accent color, e.g. #38BDF8"},"metricDelta":{"type":"string","description":"Change/delta subtitle inside KPI card"},"metricLabel":{"type":"string","description":"KPI box label"},"metricValue":{"type":"string","description":"Primary KPI number/stat"}}},"responseSchema":{"type":"json","example":{"width":1200,"height":630,"dataUri":"data:image/svg+xml;base64,...","mimeType":"image/svg+xml"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.025","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.025/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.025","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.025","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_YSdkwq7PWFt4kxgceyGlQ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.025","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Renders deterministic OpenGraph banners, social KPI slides, and trading signal sparkline cards as SVG or PNG images","exampleAgentPrompt":"Generate a dark-themed OpenGraph banner (1200x630) for my product launch with the badge 'New Release', headline 'Ship Faster with AI', subtitle 'Built for developers', brand name 'Acme Corp', and accent color #38BDF8 — return it as a PNG.","exampleUseCases":[{"title":"OpenGraph banner for blog post","prompt":"Create a dark og_banner image for my new article — badge says 'Tutorial', title is 'Build an AI Agent in 10 Minutes', subtitle is 'A step-by-step guide for developers', brand name is 'DevBlog', accent color #6366F1, and give me back a PNG."},{"title":"Social KPI card for marketing report","prompt":"Render a light-themed social_kpi portrait card showing our Q3 revenue: metric label 'Revenue', metric value '$4.2M', delta '+18% QoQ', title 'Q3 Performance', subtitle 'Quarterly Business Review', brand name 'GrowthCo', accent color #10B981, output as SVG."},{"title":"Trading signal sparkline card","prompt":"Make a dark trading_signal card with the title 'BTC/USD Breakout', badge 'Long Signal', subtitle '4H timeframe', sparkline data [42000,42500,43100,42800,44200,45000,44700,46200], brand name 'AlphaDesk', accent color #F59E0B, and return it as PNG."}],"resultDescription":"When format is 'json': returns a JSON object with width, height, mimeType, and a base64-encoded data URI of the SVG. When format is 'svg': returns raw SVG markup as image/svg+xml. When format is 'png': returns a binary PNG image. All output is a fully rendered, zero-typo graphic at the exact dimensions of the chosen template (1200x630 for og_banner and trading_signal, 1080x1350 for social_kpi).","failureModes":["Invalid or missing template enum value — returns 400 with validation error","Malformed accentColor hex string — may default or return 400","Empty sparkline array for trading_signal template — chart may render without data curve","Unsupported format enum value — returns 400","Payment not provided or x402 payment rejected — returns 402 Payment Required","Cloudflare Worker timeout on complex SVG — returns 504"],"whenToPreferThis":"Choose this endpoint when you need deterministic, pixel-exact, zero-typo image cards for social sharing, marketing, or trading dashboards without relying on an LLM image model. It is ideal for automated pipelines that must produce consistent branded visuals (OG banners, KPI slides, sparkline charts) at fixed dimensions with structured data inputs rather than freeform prompts. Prefer it over DALL-E or Stable Diffusion when the output must be reproducible, text-accurate, and data-driven rather than generative and probabilistic.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-14T12:35:55.957Z","isFirstParty":false,"canonicalSlug":"x402-agent-hub-visual-card-sparkline-renderer-102db73e"}