Objectives The purposes of this study is a music class for middle school students using magenta, and artificial in-telligence(AI) creation program. Methods To this end, the structure, operating principles, and usage method of the Magenta were introduced. Next, a model for teaching Magenta online and offline was presented by applying blended learning teaching- learning. Results Using artificial intelligence in creative music classes can raise the level of musical output. Teachers and students can discover musicality by interacting online and offline. Conclusions This study can overcome limitations that my arise in the implementation of music creation classes. Also, using artificial intelligence can be effective difficult to use real instruments in the situation.