A Standard Visitor visa is valid for up to six months, but there are exceptions:
If you come to the UK for medical treatment.
If you are an academic, you and your family can apply for a visa for up to 12 months.
If you are a graduate of a medical school and come to do a clinical attachment or retake the PLAB test.