Joe Kelly gave the St. Louis Cardinals exactly what they needed in a spot start on Wednesday. The bullpen had a much more difficult night.

ST. LOUIS (AP) — Joe Kelly gave the St. Louis Cardinals exactly what they needed in a spot start on Wednesday. The bullpen had a much more difficult night.

Kelly pitched into the sixth inning, but Maikel Cleto surrendered a grand slam to Paul Goldschmidt in the seventh and the Cardinals lost 10-3 to the Arizona Diamondbacks.

"I was just trying to go out there and give the team everything I could," Kelly said. "I was happy with it."

Kelly yielded two runs, one earned, and four hits in 5 2-3 innings. The right-hander struck out two and walked one.

"We really needed that," St. Louis manager Mike Matheny said. "His sinker was good and that was probably the best changeup I've seen him throw."

The Cardinals used five relievers in a 7-6 loss in 14 innings against Arizona on Tuesday. Kelly, who was starting because of a hole in the rotation caused by a day-night doubleheader Saturday, needed to go as deep as possible into Wednesday's game.

After making 16 consecutive relief appearances to begin the year, Kelly threw a season-high 80 pitches against the Diamondbacks and left with the game tied at 1.

Goldschmidt hit his second slam in five days and Wade Miley bounced back from his two worst outings of the season to lead Arizona to its fourth win in six tries against St. Louis this season.

Arizona has won four of five. St. Louis, with the best record in the majors, dropped back-to-back games for the first time since April 28-29.

Goldschmidt became the first Arizona player with two slams on the same road trip. He also hit one in a 12-4 win at the Chicago Cubs on Saturday.

"Sometimes you come through and sometimes you don't," he said. "I just show up and try to take a good at-bat."

Goldschmidt also had a go-ahead single in the 14th inning to beat St. Louis on Tuesday night. He has a team-best 14 homers and leads the NL with 53 RBIs, including 12 in his last five games.

"I feel like every time I come up there I have men on base," said Goldschmidt, who went 2 for 5 to raise his batting average to .336. "I've had a lot of opportunities."

Although Goldschmidt is uncomfortable talking about his exploits, Arizona manager Kirk Gibson is happy to sing his praises.

"He's on a roll and he's really carrying us," Gibson said. "He's got a great approach up there. He's a huge cog for us and he's getting better."

Goldschmidt's offense helped Miley (4-5) get back on track. He gave up three runs and 11 hits over 6 2-3 innings after allowing seven earned runs in each of his previous two starts.

"I just went out and pitched and tried not to think about anything," Miley said. "Go right at the guys and get ahead. I wanted to get as deep into the game as I could."

Martin Prado had two doubles and scored twice for the Diamondbacks. Willie Bloomquist added two hits.

The Diamondbacks' 10-run outburst is their most in St. Louis since scoring 17 runs on April 17, 2001.

Matt Carpenter had four hits for the Cardinals, running his career-best hitting streak to 14 games.

The Diamondbacks erupted for five runs in the seventh to make it 7-1. Wil Nieves had an RBI single before Goldschmidt hit his 421-foot slam.

Gerardo Parra keyed Arizona's three-run eighth with a two-run single.

David Freese extended his hitting streak to a career-best 15 games with a single in the St. Louis sixth. It's the longest current run in the majors.

NOTES: The start of the game was delayed 46 minutes by rain. ....St. Louis C Yadier Molina served a one-game suspension Wednesday. He was ejected for bumping umpire Mike Everitt on Sunday. Molina, who was originally going to appeal the decision, caught all 14 innings in a 7-6 loss to Arizona on Tuesday. ... St. Louis rookie RHP Shelby Miller (6-3, 1.82 ERA) will face Ian Kennedy (3-3, 4.74 ERA) on Thursday in the final game of the four-game series.