LOS ANGELES — Netflix brought subscription-based movie and television streaming to the millennial masses. Spotify and Rhapsody did the same thing with music — pay once, listen to as much or as little as you want.

Now a major movie theater chain is trying to step onto the subscription gravy train as it seeks to reverse attendance declines, especially among young moviegoers. AMC Theaters, the No. 2 chain in North America behind Regal Entertainment, has agreed to a pilot partnership with MoviePass, a three-year-old company focused on letting people attend a movie a day for one monthly fee.

“It frankly wouldn’t be smart to ignore the success of subscription in other areas of media,” said Christina Sternberg, senior vice president for corporate strategy at AMC, which operates 4,959 movie screens.

In January, AMC theaters in Boston and Denver will begin working in concert with MoviePass to offer monthly subscription packages for $45 and $35. More cities will be added later. “The data will determine how fast we go,” Ms. Sternberg said. “Sometimes you first expand the test, sometimes you accelerate the deployment.”