The smaller cities are incredibly affordable. Beihai and Chengde will cost you next to nothing day to day.  Of course Beijing and Shanghai being bigger cities are more pricey but in comparison to other larger cities around the world actually Beijing is very affordable (bar rent perhaps) and Shanghai just a bit more expensive. If you want more details we recommend going to Numbeo's Compare City feature for cost of living breakdowns.