SHANGHAI (AP) — Michael Phelps knew it would take a world record to win the 200-meter individual medley at the world championships. He just thought it would come from him.
Instead, Phelps found himself on the losing end of a close finish Thursday, watching teammate Ryan Lochte celebrate the first world record set since high-tech bodysuits were banned 1½ years ago.
It was Phelps' second straight loss to his good friend, who had beaten the 14-time Olympic gold medalist in the 200 freestyle two nights earlier.
"They both sort of told me the same thing, I need to be in better shape," Phelps said. "If I want to be faster the work has to be there and it has to be there consistently."
Lochte sprinted to the wall in 1 minute, 54.00 seconds, then pumped his right arm before clasping hands with Phelps in the next lane. He lowered his old mark set two years ago in Rome by a tenth of a second.
"One word describes that race — jeah!" Lochte said, using his favorite made-up expression.
Phelps checked his time of 1:54.16, then slid over the lane rope in front of Lochte and made his way out of the pool. Hungary's Laszlo Cseh took the bronze in 1:57.69.
"We're usually on the other end of the close ones," said Bob Bowman, Phelps' coach.
The final was virtually a match race between Phelps and Lochte, with Phelps leading the opening butterfly leg by six-hundredths of a second. Lochte took over on the backstroke leg and held a narrow lead through the finish.
Phelps outsplit Lochte by 0.13 seconds on the closing freestyle leg.
"I thought I had it on the last stroke," said Phelps, who glided into the wall. "After thinking about it, I probably could have rushed another stroke in there and maybe gotten to the wall faster."
Before Lochte's 2009 world record, Phelps had set the previous eight world records in the event dating to June 2003.
"I knew a world record was going to win that race," Phelps said. "It says something that we're still able to do those times."
Lochte set two world records at short-course worlds in Dubai in December, the only other individual marks set during the last 19 months, a stretch in which he has been the dominant American swimmer.
"I wanted to do something that everyone thought was impossible," he said. "Since they banned those suits, everyone thought a world record would never get touched again. I just wanted to show everyone that can happen. That's why we have records — they're meant to get broken."
As Lochte was building his credentials, Phelps was blowing off training for such leisure pursuits as golf. He got serious about next year's London Olympics only eight months ago.
"I didn't win because I wasn't as prepared as I should have been," he said.
Phelps had repeatedly ignored Bowman's warnings that time was running out on regaining the form that carried him to a record eight gold medals at the 2008 Beijing Olympics.
"This is something that will stick with him," Bowman said. "He's got the picture now."
Lochte and coach Gregg Troy deflected any notion that the torch has been passed from Phelps to the laid-back Floridian who once fueled his swimming with sugary Skittles and Sprite.
"I don't know if we're going to call a few hundredths of a second surpassing Michael Phelps," Troy said, "but it puts us in a good lead."