If you did get in prison, you have the option for being released on bail. The price of bail is determined in bonuses depending on the severity of the punishmentand the time left of prison sentence. The maximum term applicable for bail - 300 days. If you are sentenced for more than 300 days, you will have to wait until your time left to serve in prison will be less than 300 days, to be able to bail out.
To use this service you must log in to your account on the game website.