In the title compound, C20H21N3O4, the 1,4-dihydropyridine ring adopts a boat conformation. An intramolecular C—H⋯O hydrogen bond generates an S(6) ring motif. The pyrazole ring makes dihedral angles of 87.81 (7) and 45.09 (7)° with the mean plane of the 1,4-dihydropyridine ring and the phenyl ring, respectively. In the crystal, molecules are linked by N—H⋯N, N—H⋯O and C—H⋯O hydrogen bonds into a three-dimensional network.