In this paper we study the thermodynamics of black branes with a modulated complex scalar in the context of bulk and boundary theories. The modulation induces inhomogeneity to the dual field theory, anisotropic pressure, and brane charge to the bulk geometry. The first law of thermodynamics and the Smarr relation are obtained using the off-shell ADT and the reduced action formalisms. We discuss the prescription for the mass of black branes, which relies on relevant and marginal deformations in the dual field theory. One of the cases is the gravity dual to a ABJM model with a sinusoidal mass function depending on a spatial coordinate. This is the first study of the deformed ABJM model at finite temperature including bulk thermodynamics.