Imaging the unfolded protein response in primary tumors reveals microenvironments with metabolic variations that predict tumor growth.