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.pngThe 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.pngNet-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.
| Parameter | In | Values | Default | Notes |
|---|---|---|---|---|
category | path | all politics crypto tech sentiment | required | Which category card(s) to render |
timeframe | query | 24h 7d 30d 90d all | 30d | Bucket granularity adapts per range |
predict | query | on off | off | Frozen-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:
- sentiment/all/latest.png
- sentiment/crypto/latest.png?timeframe=30d&predict=on
- sentiment/tech/latest.png?timeframe=7d
Activity heatmap
GET https://api.patera.sh/images/heatmap/latest.pngEvents per weekday and 2-hour slot (Europe/London), colour-banded with the dashboard's low, mid, high, peak scale.
| Parameter | In | Values | Default |
|---|---|---|---|
timeframe | query | 7d 30d | 7d |
Notes
- Discord, Telegram and Slack cache link previews by exact URL. Append a throwaway
vparameter 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.