Place the shrimp in a bowl and toss with the olive oil. Sprinkle over the salt, pepper, garlic powder, and granulated onion and toss to coat the shrimp with the spices.
Arrange the shrimp in a single layer in the air fryer basket. Cook for 5 minutes. Remove and serve hot or use in a recipe that calls for cooked shrimp. You can also cook them and use them in salads or other cold dishes.
Notes
To cook frozen shrimp in the air fryer, you'll need to add more time. Make sure to break the shrimp apart so they aren't clumped together. Follow the recipe directions, but cook them for 9 to 10 minutes, until cooked through and hot. Leave the shells on if you have unshelled frozen shrimp.
You can peel them after cooking, as soon as they are cool enough to handle. Or you can serve them in the shell and allow everyone to peel their own shrimp.