Rinse 2 cups of dried pinto beans under cold water to remove any dust or debris.
Chop 1 medium onion and mince 4-5 cloves of garlic.
Place the rinsed beans, 6 cups of water or broth, chopped onion, minced garlic, 1 tsp cumin (optional), and 1 bay leaf (optional) into the Instant Pot.
Secure the lid, set the valve to sealing, and cook on high pressure for 30 minutes (unsoaked beans) or 20-25 minutes if pre-soaked. Allow 10-15 minutes natural pressure release.
Open the lid carefully, remove the bay leaf, and season with 1-2 tsp salt and ½-1 tsp black pepper. Taste and adjust seasoning if needed.
Transfer beans to a serving bowl, sprinkle with 2 tbsp. chopped fresh cilantro, and serve with 2-3 lime wedges. Enjoy in tacos, burrito bowls, salads, or as a side dish.