No, bettas cannot live with zebra danios. Bettas are notorious for being aggressive and territorial, and they might attack or stress out your zebra danios.
Additionally, zebra danios may nip at the long, flowy fins of male bettas.
Female bettas, on the other hand, are known to be less aggressive than male bettas. Because of their more passive temperament, they tolerate other fish better than male bettas. Therefore, you can consider keeping your zebra danios with female bettas.
Make sure to keep a close eye on the tank dynamics and be prepared to separate them if the situation becomes hostile.