Wings of Fire by Tui T. Sutherland
A prophecy predicts that five dragonets—a mud dragon, a sea dragon, a sand dragon, a night dragon, and a rainforest dragon—will end a great war. But when they realize that the dragons taking care of them have jailed them in a cave, the dragonets escape and take a dangerous journey home.