What was the name given to kings in Germany before 1918?

From 1871-1918 the head of state in Germany was the Emperor (Kaiser).