Yes,
ShortPixel Adaptive Images (SPAI) works well with Autoptimize on most WordPress installations, as long as you do the following:
- Disable the options Optimize Images and Lazy-load images on Autoptimize’s settings.
- If you are aggregating the JS files, you may need to exclude the script “ai.min.js” from optimization to prevent possible conflicts.