Gumball refuses to accept he is the only kid at school that doesn't have special powers. He convinces Mrs. Jötunheim, Hector's mom, to take him on as her apprentice but she soon learns leaving Gumball unsupervised around magic is a big mistake.
This episode is reminiscent of The Sorcerer's Apprentice act from Disney's Fantasia, where Mickey Mouse studies under a powerful sorcerer while doing chores for him.
The hat that grants Gumball magical abilities is a reference to the act in Fantasia where Mickey steals his master's hat and acquires magic powers after putting it on, and loses them once he takes it off.
The living carpet and genie in the lamp are references to characters from the film Aladdin.