Although it will depend on the size of the filets, most fish can be cooked in the instant pot for between 5 and 8 minutes. However, cod requires a much shorter cooking time, only 2-4 minutes.