Here are some possible ways instance owners on Mastodon can generate revenue to cover their server costs:
Crowdfunding: Many instance owners ask their users to contribute to their server costs through platforms such as Patreon, Liberapay, or Ko-fi. This can be done on a regular basis or as a one-time donation.