Keep it simple.
Got an anthill? Don’t use toxins. Birds, pets, kids, et al are vulnerable.
Just boil a kettle and carefully carry it outside and pour over entire area. They will be gone within an hour.
Trying to prevent them? In the spring and through the summer (if necessary), use two spray bottles, one filled with lemon juice, the other with vinegar. Ants like neither. Alternate applying these every two weeks initially. If there’s a problem area such as a patio, spray against sides of patio and any edges or holes where they be hiding. Has worked well for me the past 3-4 years.