Both Detroit homers came off Houston starter Wandy Rodriguez, who gave up five runs in six innings.
Brian Bogusevic hit a two-run homer and a double for the Astros. Jose Altuve had three hits and scored three times and Brian Bixler added a two-run homer.
The Astros were down 5-0 before coming back in the second inning against Andy Oliver.
One of the candidates for the fifth spot in Detroit's rotation, Oliver gave up six earned runs and seven hits in three innings.