We perform a comparative study on thermoelectric performance of antiperovskite oxides Ae3T tO and nitrides Ae3P nN (Ae = Ca, Sr, Ba; T t = Ge, Sn, Pb; P n = As, Sb, Bi) by means of firstprinciples calculation. As for the oxides with the cubic structure, Ca3GeO with a sizable band gap exhibits high thermoelectric performance at high temperatures, while Ba3PbO with Dirac cones without the gap is favorable at low temperatures. The latter high performance owes to high valley degeneracy including the multiple Dirac cones and the valleys near the Γ and R points. For the nitrides with the cubic structure, insulator with strong quasi-one-dimensionality exhibits high thermoelectric performance. We also find that the orthorhombic structural distortion sometimes sizably enhances thermoelectric performance, especially for Ba3GeO and Sr3AsN where the high valley degeneracy is realized in the P nma phase. Our calculation reveals that antiperovskites offer a fertile playground of various kinds of characteristic electronic structure, which enhance the thermoelectric performance, and provides promising candidates of high-performance thermoelectric materials.