Those look like fungus gnats. They will spread and kill your house plants so definitely need to take care of them.
I had an infestation (similar to yours) from a bad bag of potting soil. I lost several plants before I figured out how to treat them...here's what I did:
Beneficial nematodes - you can find these at nurseries and some farm and feed stores. There are also a few good brands on Amazon but make sure to read reviews. These little guys feed on the larvae until they are gone, then pass away.
Yellow stickies (see photo) - i can't recommend these enough. Not the prettiest addition but work very well at catching the adults flying around. They also catch just about everything else...mosquitoes, house flies, ect. You can find packs of these on Amazon for cheap.
Let your plants dry out as much as possible. These gnats love damp soil and need it to reproduce. They usually live in the top few inches of soil so after treating with the nematodes and watering in well, let your plants dry out a bit.
I really hope this helps!
~C
(Edited - misspelled "gnat" lol!)