Your opponent activated the ability, so your opponent controls the ability. So yes, your
Cobra Trap will cost just
!
Rule: 112.8. The controller of an activated ability on the stack is the player who activated it. The controller of a triggered ability on the stack (other than a delayed triggered ability) is the player who controlled the ability's source when it triggered, or, if it had no controller, the player who owned the ability's source when it triggered. To determine the controller of a delayed triggered ability, see rules 603.7d-f.