Flamin’ Hot Cheetos get an origin story worthy of any Marvel superhero with the engrossing “Flamin’ Hot.” It’s the tale of how a Mexican American janitor came up with the idea of adding spice to the cornmeal, forever saving after-school snacking.

Is it true? Probably not. Don’t let that stop you.

You’ll wish “Flamin’ Hot” was accurate because it’s a winning tale of perseverance, family love, proud heritage and blue-collar success, told with a wink, some Cheetos dust and a ton of love by Eva Longoria in her directorial debut.

Jesse Garcia stars as Richard Montanez, a one- time Frito-Lay floor-sweeper in Southern California who persuaded his bosses to make a snack that celebrates the flavors of Mexico despite skeptics.

“New products take years to develop, cost millions to launch and they do not get created by blue-collar hoodlums who probably can’t spell ‘hoodlum,’ ” our hero is told.

Nevertheless, Montanez persists, cracking the Latino market and repairing his relationship with his abusive father along the way.

“I’m the guy who helped bring the world the most popular snack it’s ever seen,” he says in a voice-over.

It’s an unlikely story, for sure. No, really — The Los Angeles Times has published allegations that Montanez fabricated his role in the snack’s creation, and Frito-Lay says he “was not involved.”

But Longoria and the screenplay by Lewis Colick and Linda Yvette Chavez — based on Montanez’s memoir — will have you cheering when the gnarled red snacks finally zip along on an assembly line. Garcia plays Montanez understatedly but with deep soul.

This is more than just a snack-version “Rocky” story, with the filmmakers exploring the insecurity of factory shift workers, the stress of integrating into white culture, how hard it is for corporations to innovate and the ability to silence the voices in your head that urge you to quit.

In one heartbreaking early scene, Montanez — so poor he waters down the milk for his kids and uses chewing gum to seal holes in their shoes — is wide-eyed at the Frito-Lay factory until he notices all the overcooked chips are tossed. “People are always trying to throw away the brown ones,” he says.

There are a few references to Frito-Lay scientists in the Midwest also working on a spicy flavor, but this is strictly a fist-in-the-air portrayal of Montanez alone, set to a soundtrack of Latin artists like Santana and Ozomatli.

His heroic arc is more than a little unbelievable, especially when he taps his former drug-dealing pals to start handing out free bags of chips like pushers, and for the many times he jumps up on a piece of factory equipment to deliver a “Dead Poets Society” -like speech.

It’s the montages that really shine, like the moment in a park when Montanez, eating elote and watching everyone put hot sauce on their food, gets a vision of a spicy snack. “I had been searching for an answer. Or a door to open. And there it was all around me. It had been there the entire time,” he says.

There’s also the sequence when he and his family try every chile combo — poblano, pasilla, serrano, guajillo and habanero included — until they find the right formula, hovering around their youngest kid as he samples a chip and gives them the green light.

The final product is credited with opening the door to new convenience- store flavors and getting U.S. corporations to finally respect the Latino market. That’s a lot of stuff to put in a bag of chips, but it’s so fun to watch and burns so good.

MPA rating: PG-13 (for strong language and brief drug material)

Running time: 1:39

How to watch: Hulu