The chemical reactions and pathways resulting in the formation of cytokines, any of a group of proteins that function to control the survival, growth and differentiation of tissues and cells, and which have autocrine and paracrine activity.