It depends on the species. Warm-water fish like guppies can stay together up to 24 hours; cool-water fish like goldfish no more than 12 hours; cold-water fish like trout no more than 6 hours. Bettas need only a few minutes. After the female releases eggs, remove her carefully. The male guards the eggs and fry until they are free-swimming.