I've got the M1 Air with 16GB RAM and honestly, not being a fanboy or anything, it's the best computer I've ever owned. The battery lasts for days for me, it's very lightweight, zero noise (no fan on this model), not too warm, and has not yet struggled with any of the tasks I've thrown at it (I regularly keep open simultaneously Xcode, Slack, multiple browser tabs, PDF viewing, terminal scripts, etc). I also do some Logic Pro music projects, nothing really heavy, but it handles all the VSTs and stuff fine too.
Definitely recommend 16GB though. I have heard that the 8GB Air can be more problematic under these workloads.