A "common base" configuration - adding one resistor and
making a divider with about a 1.2V center tap, connected
to BJT base, and applying the control voltage (you did not
say whether "0" and "1" are voltage, or logic) to the BJT
emitter terminal would do what you (say you) want, provided
that the control voltage is stiff enough to provide the needed
emitter current to pull the load (in which case your VOL will
be =Vin+Vce(sat).
This is how the front ends of old-timey TTL were made.