This article is devoted to a class of nonassociative algebras with metagroup relations. This class includes, in particular, generalized Cayley-Dickson algebras. The separability of the nonassociative algebras with metagroup relations is investigated. For this purpose the cohomology theory is utilized. Conditions are found under which such algebras are separable. Algebras satisfying these conditions are described.