This Spells Trouble by Paul Collins and Sean McMullen
Winston is fourteen and apprenticed to the wizard Faramond. Winston’s problem is that he’s a lot brighter than his master. Faramond is being forced to bring more valuable magical slaves into the world. Winston wants to free the enslaved magical creatures who are already there. This spells trouble.