For evenly rounded corners on all sides, you can use the construction as in
Magic Box Example 19.
See
Addon to create special / extended geometries
Simple construction of the corners see from the collection
Beginner example step 12, function eighthSphere( n )