Fannie Mae, the mortgage-finance company operating under federal conservatorship, is seeking $1.5 billion in aid from the U.S. Treasury Department after a 12th straight quarterly loss.

A decline in costs from bad loans helped narrow the second- quarter loss to $1.2 billion from $14.8 billion in the same period a year earlier, the Washington-based company said today in a filing to the Securities and Exchange Commission. Fannie Mae has accrued more than $148 billion in consecutive losses since 2007, according to data compiled by Bloomberg.

The Treasury seized Fannie Mae and McLean, Virginia-based Freddie Mac, the biggest sources of U.S. mortgage funding, in 2008 as souring subprime loans pushed the companies to brink of collapse. Including todayโ€™s request, Fannie Mae has drawn $86.1 billion in aid. The growing tally has helped spur the Obama administration to solicit proposals to fix the companies, and prompted some lawmakers to demand their closure.