Each type of immigration status has different fees, which you will need to pay online when you make your application. These fees can change so check before applying. Normally, the shorter your stay in the UK the cheaper the fee. The most expensive fee are charged when you are applying for permanent residence or British citizenship.
You may also be required to pay an Immigration Health Surcharge if you are applying for a route that permits medium to long-term residence. This charge is to cover some NHS healthcare costs, and you will need to pay this even if you do not use the service, or if you already contribute through National Insurance contributions. If your application is refused you will be refunded your Immigration Health Surcharge, but not your application fee.
Depending on your nationality, you may also be required to record your biometric details or complete the application process at a visa centre, where this is necessary you will be invited to book an appointment online after you have submitted and paid for your application. There may be fees for booking your visa centre appointment or for recording your biometric details.