if by "x-ray tetras" you're referring to pristellas then no, it most likely won't work. pristellas are commonly labeled as x-ray tetras. anyway, i had a betta in a 20 gallon with about 12 pristellas and it worked for a little while.. but eventually the tetras started to nip (as they usually...