Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

Image API

The Image API serves live 1920x1080 PNG renders of the dashboard views. Every image is generated on demand from the same data the dashboard shows, cached for 60 seconds per parameter combination. A self-documenting index with clickable examples lives at api.patera.sh/images.

Unlike the broader Patera API, which is still in development, these endpoints are live today.

AI summary digest

GET https://api.patera.sh/images/ai_summaries/latest.png

The newest AI summary as a single frame: trending topics, the four category cards, key takeaways. The header carries the run's stats inline (tweets analysed plus token totals). No parameters.

Sentiment charts

GET https://api.patera.sh/images/sentiment/{category}/latest.png

Net-sentiment charts over time, rendered with the same styling as the dashboard's Sentiment view. all produces the 2x2 category overview; a single category produces one full-frame chart.

ParameterInValuesDefaultNotes
categorypathall politics crypto tech sentimentrequiredWhich category card(s) to render
timeframequery24h 7d 30d 90d all30dBucket granularity adapts per range
predictqueryon offoffFrozen-forecast overlay

With predict=on the chart gains the same marks as the dashboard's Predict mode: the dotted predicted line (the frozen model call), the dashed adjusted line (bias-corrected), the forecast mean for upcoming buckets, the shaded 80% range fan plus the now divider. The legend labels each mark.

Examples:

Activity heatmap

GET https://api.patera.sh/images/heatmap/latest.png

Events per weekday and 2-hour slot (Europe/London), colour-banded with the dashboard's low, mid, high, peak scale.

ParameterInValuesDefault
timeframequery7d 30d7d

Notes

  • Discord, Telegram and Slack cache link previews by exact URL. Append a throwaway v parameter that changes per post (?v=1720000000) to force a refetch; the renderer ignores its value.
  • All images are 1920x1080 PNG in the dashboard's dark theme with a patera.sh watermark.
  • Responses carry Cache-Control: public, max-age=60; a fresh render happens at most once a minute per parameter combination.
  • The Telegram digest channel posts the AI summary digest plus the crypto 30-day forecast chart automatically after every summary run.