A quadruped needs 12 motors not counting the head. So at $300 each this comes to $3,600. A humanoid needs about 28 motors but the exact number depends if you want usable arms and hands or just simple walking on a flat floor. So let’s say $9,000 for a humanoid that can do useful work.
And then you need so structure and a few computers and batteries. Assuming you can do you own design and CNC machine work, the major just is the motors.
Humanoids really do requires large motors of this size but quadrupeds can be made smaller with motors costing half as much.
How large can the humanoid be given that the motors are 120 Newton Meters? The answer depends on the task, does it need to be able to lift and cary objects and will it walk of flat floors or on common outdoor surfaces? Also you might be able to double a few of the moters, running then in parallel to create 240 Nm torque for a knee and hip joint.