A cost analysis of comprehensive HIV services for key populations at higher risk of infection in Kenya and Malawi showed that costs can be substantial at all program implementation levels, not just service delivery; all these costs should be considered during program planning.