Preheat the air fryer to 375°F.
In a large bowl, combine ground beef, salt, black pepper, garlic powder, and onion powder.
Form the mixture into patties about 1 inch thick.
Lightly spray the air fryer basket with cooking oil.
Place the patties in the air fryer basket without crowding.
Cook the hamburgers for 10-12 minutes, flipping halfway through.
Optional: Add cheese to the patties in the last 2 minutes of cooking.
Remove the burgers and let them rest for a few minutes.
Assemble your burgers with desired toppings and serve.