From my experience I find it extremely high variance to be going all in with AK preflop under any and all circumstances. However, it is situational.
I lean towards folding AKo and shoving AKs if I’m in a tough spot.
Having said this, you should be taking into account
Villain
Position
Stack size
Hero Image
I could probably fold AK facing a 4bet shove from a known nit, especially if they are in EP.
In the blinds or late position I’m getting it in and holding my breath.