The chemical reactions and pathways resulting in the formation of a K antigen, a capsular polysaccharide antigen carried on the surface of bacterial capsules that masks somatic (O) antigens.
K antigen synthesis