Place the sliced onions, olive oil, butter, and a pinch of salt into a heatproof casserole dish that fits inside your air fryer basket. Set the air fryer to 350°F (180°C) and cook for 25-30 minutes, stirring every 5 minutes to ensure the onions brown evenly and avoid burning.
2 tablespoons unsalted butter, 2 tablespoons olive oil, 4 large yellow onions
When the onions are golden and softened, add the minced garlic and cook for 1-2 more minutes until fragrant. Pour in the red wine vinegar and deglaze the dish by scraping up the browned bits from the bottom with a wooden spoon.
2 garlic cloves, 2 tablespoons red wine vinegar
Add the beef broth, thyme sprigs, and bay leaf to the casserole dish. Return the dish to the air fryer and cook for 12 minutes, allowing the flavors to meld together. Season with salt and freshly ground black pepper to taste.
6 cups beef broth, 5 sprigs fresh thyme, 1 bay leaf
While the soup simmers, brush the bread slices with olive oil and sprinkle them with a little salt and pepper. Place them in the air fryer and toast at 350°F for about 5 minutes, or until golden and crisp.
4 bread slices, Salt and freshly ground black pepper
Once the soup is ready, remove the thyme sprigs and bay leaf. Place the toasted bread slices on top of the soup and add a slice of cheese to each one. Return the dish to the air fryer and cook for 3-4 minutes, or until the cheese is melted, bubbly, and lightly browned.
4 gruyere or gouda cheese slices
Garnish with freshly ground black pepper and a few thyme leaves before serving.