Miami gave up 16 points in the final 29 seconds of regulation but regrouped, and Jason Sanders kicked a 37-yard field goal as time expired for a 38-35 win Sunday.
Andy Dalton threw for 396 yards and four touchdown passes, including three in the final 5:01 of regulation as Cincinnati rallied from a 35-12 deficit.
"There was no way it was going to happen," Miami quarterback Ryan Fitzpatrick said. "And then all of a sudden it became disbelief because it did happen. That's a wild, crazy finish; I've probably never seen one like that. It was nice for us to step up at the end."
Fitzpatrick threw for 419 yards and four scores, including one to rookie defensive tackle Christian Wilkins. Each team punted twice to start the extra period before Fitzpatrick led a 10-play, 51-yard march for the winning field goal.
"That," Cincinnati coach Zac Taylor said, "is the full range of emotions."
Despite the gallant comeback, the Bengals (1-14) settled for clinching next year's No. 1 draft pick. They're assured of at least tying for the worst record in club history; they went 2-14 in 2002.
The Dolphins (4-11) again hurt their chances of landing a franchise quarterback in next year's draft, but rookie coach Brian Flores has repeatedly said he's all-out to win now. Rebuilding Miami has four victories in the past eight games with a ragtag roster.
"It's important to win," Flores said. "It's important to me. I love coaching this team. They work extremely hard, and I want them to have success."
The stadium was mostly empty when the Bengals cut the deficit to 35-27 with 29 seconds left on Dalton's TD pass and 2-point conversion throw.
Then they recovered an onside kick and reached the 25 with four seconds left. Miami dropped eight defenders back to the goal line, but Tyler Eifert reached above two of them in the end zone to catch Dalton's throw.
On the 2-point conversion, Dalton couldn't find an open receiver and scrambled to tie the score, sparking the sort of celebration that has been a rarity for Cincinnati this season.
Wilkins scored his first NFL touchdown even though he earned no style points. He lined up at fullback, made his first career reception at the 1, fumbled and recovered in the end zone.
Wilkins joined William "The Refrigerator" Perry as the only rookie defensive linemen with a touchdown reception in the Super Bowl era.
"I just want to say that I'm the best receiver in the league right now," Wilkins said with a grin. "I'm one for one."
Fitzpatrick also threw touchdown passes of 31 and 13 yards to Mike Gesicki, and 7 yards to DeVante Parker. It was Fitzpatrick's 11th four-TD game -- more than John Elway, Tony Romo or Matt Ryan, among others.
Parker had five catches for 111 yards. He made a 51-yard basket catch on a flea flicker to surpass the 1,000-yard mark for the first time in his five-year career.
The Dolphins' 1972 perfect season team was honored at halftime. Players toasted their achievement with champagne, and coach Don Shula grinned as the crowd sang happy birthday to him. He turns 90 on Jan. 4.
Randy Bullock kicked a 57-yard field goal, a Bengals regular season record. ... The Dolphins' wild home finale drew a crowd of perhaps only 35,000.
Bengals: CB William Jackson departed with a right shoulder injury. CB Tony McRae was sidelined by a concussion and cervical strain. WR Stanley Morgan was shaken up and went to the locker room in the closing seconds.
Dolphins: CB Jomal Wiltz left the game in the first half with a shoulder injury. WR Allen Hurns left with a shoulder injury. LB Vince Biegel departed in the fourth quarter with an elbow injury. RB Myles Gaskin hurt his left ankle in the closing minutes.
DOLPHINS: They close the season at New England, where they last won in 2008. The Patriots won 43-0 when the teams met in Week 2.
BENGALS: They finish at home Sunday against Cleveland, which won 27-19 when the teams met two weeks ago. The Browns have won three in a row in the series.
More AP NFL: https://apnews.com/NFL and https://twitter.com/AP-NFL
Follow Steven Wine on Twitter: http://twitter.com/Steve-Wine.
Las Vegas Raiders place QB Marcus Mariota on IR with quadriceps injury
Raiders placed backup QB Marcus Mariota on Injured Reserve on Saturday after he aggravated a quadriceps injury in Thursday's win over the Ravens.
Packers DL coach Jerry Montgomery can't coach vs. Lions due to COVID protocols
The Green Bay Packers will be without defensive line coach Jerry Montgomery for Monday night's game against the Detroit Lions because of COVID-19 protocols.
NFL fines Browns' Ronnie Harrison for shoving Chiefs assistant Greg Lewis
Cleveland Browns safety Ronnie Harrison Jr. was fined $12,128 by the NFL for shoving Kansas City Chiefs running backs coach Greg Lewis during their game last Sunday.
New Orleans Saints lose two more assistants for game vs. Carolina Panthers amid COVID-19 protocols
The Saints announced Saturday defensive line coach Ryan Nielsen and pass rush specialist Brian Young will not be with the team for its second game of the year due to NFL COVID-19 protocols, joining six others from New Orleans coach Sean Payton's staff.
Philadelphia Eagles sign DE Josh Sweat to three-year extension
The Eagles have signed defensive end Josh Sweat to a three-year extension, the team announced. The deal could be worth up to $43 million and includes $26.9 million guaranteed, sources told ESPN's Adam Schefter.
Stephen A. blasts Joe Judge for Giants' loss at Washington
Stephen A. Smith and Tim Tebow debate who is most at fault for the Giants' last-second loss to the Washington Football Team.