TimesFM vs Moirai: long-horizon forecasting compared
Google TimesFM is a 200M patched-decoder optimized for long-horizon accuracy. Salesforce Moirai is a universal transformer built to handle any variable count, any frequency, and covariates natively. Both are strong — the trade-off is simplicity vs flexibility.
# TimesFM
{"model": "google/timesfm-2.0", "inputs": [...], "parameters": {"prediction_length": 28}}
# Moirai
{"model": "salesforce/moirai-1.1-r-base", "inputs": [...], "parameters": {"prediction_length": 28}}Swap the model ID. Everything else stays the same.
TimesFM
200M patched-decoder, strong long-horizon accuracy, up to 2048 context
Moirai
Universal transformer, native covariates, up to 5000 context
On TSFM.ai
Both available through one API with identical request shapes
Feature comparison
When to choose which
Choose TimesFM when
You want a single well-tuned model without size selection decisions, need strong long-horizon accuracy on univariate series, or prefer the simplicity of a one-model-fits-most approach backed by Google's pre-training corpus.
Choose Moirai when
Your forecasting problem involves covariates or exogenous variables, you need multivariate support, your series require very long context windows beyond 2048 steps, or you work across domains and frequencies that benefit from Moirai's universal design.
Or compare both
Send the same series to both models through the TSFM.ai API. Compare long-horizon accuracy, quantile coverage, and latency on your actual data.
Try in playgroundFrequently Asked Questions
Related Pages
Chronos vs TimesFM
Compare Amazon Chronos and Google TimesFM on architecture, latency, and benchmarks.
Read moreChronos vs Moirai
Compare Amazon Chronos and Salesforce Moirai on covariates and context length.
Read moreBest time series foundation models in 2026
A comprehensive comparison of all major time series foundation models.
Read moreCompare on your own data
Run TimesFM and Moirai on your actual series. Compare accuracy, latency, and quantile coverage before picking a production default.