Season tofu: Place the tofu cubes in a large bowl. Add the soy sauce, and chili oil (if using). Toss the cubes until they are evenly coated. Add the garlic powder, onion powder, cayenne (if using), salt, pepper, cornstarch, and sesame oil. Toss until the cubes are evenly coated with the seasonings.
For air fryer tofu: Place the cubes in the air fryer basket in a single layer. Cook at 400ºF for 5 minutes. Shake the basket to move the cubes around so they cook evenly. Continue cooking for about 5 minutes more, or until the desired crispiness.
For oven-baked tofu: Preheat the oven to 425ºF. Bake the tofu on a nonstick roasting pan with rack*, or baking sheet, in a single layer for 10 minutes. Toss the cubes so they cook evenly. Bake for about 10 minutes more, or until golden brown. For extra crispiness, change oven setting to broil. Cook for 2 minutes more, or until the desired crispiness.
