SARASOTA, Fla. (AP) — Two-time AL Cy Young Award winner Johan Santana agreed Tuesday to a minor league contract with the Baltimore Orioles as he tries to come back from the second major operation on his left shoulder.

Santana would get a $3 million, one-year deal if added to the 40-man roster and would have the chance to earn an additional $5.05 million in roster and performance bonuses. He would receive the full amount for 120 days and 25 starts.

The 34-year-old left-hander became a free agent after completing a $137.5 million, six-year contract with the New York Mets, who declined a $25 million option and paid a $5.5 million buyout.

Santana, 139-78 with a 3.20 ERA in 12 seasons with Minnesota and the Mets, missed the 2011 season following shoulder surgery on Sept. 14, 2010, returned to pitch the Mets' first no-hitter on June 1, 2012, then missed last season after an operation on April 2.