In Trigun, the people couldn't survive on Gunsmoke without the plants, giant humanoid alien things that were placed in equally giant bulbs from which energy was extracted, which powered just about everything.
The machines in Kakurenbo use the children they captured for this.
Everyone at Duel Academy during part of season 3 of Yu-Gi-Oh! GX. They were forced to wear wristbands which sucked out their energy as they dueled, all to give yubel the energy to regenerate from her arm.
Sailor Moon villains, especially Ail and Ann, quite often extract some sort of energy directly from human victims to supply to awakening some evil Big Bad.
Black Bird has this, with a twist. The living battery (the heroine) isn't harmed by having her energy used. She just gives it off like a fire gives off heat. Though the other things that she can provide aren't nearly as non-invasive to harvest...
Nurse Angel Ririka SOS has the Flower of Life. The flowers are used to make both the Green Vaccine (the heroine's power source) and the Black Vaccine (the power source for her enemies) through a process that isn't discussed, but seems to use the flowers up. Even though the flowers are supposed to grow wherever living things exist, quantities are severely limited and mostly in the hands of the bad guys.
The Uncanny X-Men: When the group first discovered the island of Genosha, they discovered that mutants had been enslaved to increase the quality of life for the human citizens. One mutant was used as a living power source for the monorail-like mass transit vehicle that he piloted.
In B.P.R.D.: Hollow Earth, The King of Fear has Liz Sherman kidnapped so he can use her life force to power his war mechas.
In All Fall Down, the Order of Despots kidnaps the superhero Isotope to use him for this very purpose.
In the story "Fountains of Youth", in issue #22 of The Vault of Horror, an elderly woman that went through a series of young female companions turned out to be a centuries-old creature that was sucking the life force from them.
The Powermasters from Transformers are this, though are more willing than usual for this trope. Though they usually use normal energon as a power source, the Marvel Comics versions were also capable of providing energy directly from their own body for a Transformer, though they had to eat absolutely enormous amounts of food to do this.
The machines in The Matrix were powered by a mixture of fusion and the energy produced by humans which they grew and harvested in fields like livestock or produce.
eXistenZ: The biological game device runs on the energy of the user, since it plugs directly into a "bioport" (sort of an extra anus artificially installed in the lower back). It's suggested that all gaming devices operate the same way.
In Final Fantasy: The Spirits Within some of the weapons and equipment used organic power cells containing bacteria from which "Bio-etheric energy" was extracted. The power pack of some long dead Red Shirt's weapon turns out to be one of the spirits.
In X-Men: First Class, Shaw was the main component of the weapon he was going to use to wipe out humans so mutants could inherit the Earth. In his mind, "Mutation may have been helped along by nuclear power/weapons" equaled "mutants are nukeproof." His energy powers were what would fuel it.
Magneto's mutating device in X1 also needed to be powered by Magneto's own magnetic abilities. Unfortunately, it would kill him. Fortunately (well, for him) there's a girl who takes on the powers of whoever she touches...
"Lose Now, Pay Later" by Carol Farley has aliens who powered their tech with human fat from special slimming machines they invented—and to ensure an adequate supply, they also came out with some beverage that was irresistibly delicious but also super-fattening.
One of the dark secrets of Tad Williams's The War of the Flowers is that, with Oberon and Titania gone, the world of Faerie is drawing its power from living, working class fairies, draining and discarding them. It's only a secret to Theo and the audience, though. The world of Faerie knows and hates it.
In the Doctor Who New Adventures novel Time's Crucible, a prototype Gallifreyan time capsule is powered by the psychic energies of its crew. "Battery" is an official title of one of the crew.
In the Ravenloft novel Dance of the Dead, a magical riverboat turns out to be powered by magical creatures and benign spirits imprisoned in its hold.
A generic high-school science textbook used the following example to describe a hypothesis: A car engine is considered a black box, but you can expect this car engine to contain alien creatures from another planet who feed off fuel and are then used to provide the power provided to propel the car. Note that the example doesn't meet the definition of a hypothesis given that there was no prior testing, examination or research of said engine.
In Coda, Conduits power the city via energy extraction. They also power President Z and the Board.
Live Action TV
The titular "beast" from the Doctor Who episode "The Beast Below". It was revealed that the entire cityship was being powered entirely by its own energy.
Also in Doctor Who, The Doctor explains that the 'pilot fish' in the Christmas Invasion wanted to carry him off because they could "run their batteries off [him] for a couple of years" with the energy from his regeneration.
In the fourth season of Buffy the Vampire Slayer, there was an episode where Buffy and Riley were living batteries in a frat house via nonstop sex.
In the Star Trek: Voyager episode "Equinox", the USS Equinox, like Voyager, had found herself trapped in the Delta Quadrant. Her crew had discovered a faster way to get home by torturing the alien of the week. Janeway was not pleased.
Occurs accidentally in Farscape when a Luxan priestess needs D'Argo's help to perform her death ritual, but chooses instead to make herself younger when she realizes how strong he is. Turns out she was actually sensing and stealing Moya's life energy.
Dungeons & Dragons. The Spelljammer campaign setting had Lifejammer and Death Helms, which powered their ship's flight by draining the Life Energy of the victim strapped into them (in game terms they drained Hit Points).
In Genius: The Transgression, Geniuses can take the merit "Calculus Vampire" which allows them to drain mania from living creatures (or other things). Manes also have the ability to do so automatically.
Dark Conspiracy supplement Darktek. A number of the Dark Minion items can only be recharged by draining the user's Life Force.
Shadowrun. Most cyberware is powered by the owner's bioelectric energy.
Rifts. The Splugorth's bio-wizardry frequently makes use of this, ranging from lobotomized alien snakes on the end of staves, to guns that literally torture faeries into projecting their powers out of the barrel.
The webcomic Machine Gun Angel has the Mega Corp. who took over the world After the End running power plants on energy harvested from genetically manipulated humans (originally, they used sentient human clones, but they caved to public pressure and made clones that were Empty Shells).
In Girl Genius, Agatha drinks water from the Dyne and is super-charged as a temporary power source.
In Breakfast of the Gods, Cookie Jarvis the Wizard forsaw the coming of Count Chocula and his forces and needed someone pure of heart to act as a battery to boost Cerelia's defenses. This turns out to be the reason King Vitaman was missing for nearly the entire story: he volunteered to be the battery.
Battery from Phaeton is this in every sense of the word, being a quadriplegic who produces more energy than he or anyone else knows what to do with it seemed like a good idea. It is no secret and no one, not even Battery himself has a problem with this. He is even nick named "The God of the Orphanage".
The badniks of early Sonic the Hedgehog games were powered by little animals, making it Sonic's mission to destroy them, freeing his friends inside. This played a large (and tragic) part in E-102 Gamma's story in Sonic Adventure.
Eggman returns to form in Sonic Colors, where his mind-control ray is powered from energy syphoned from an alien race called the Wisps.
In the Mega Man Zero series, Cyber Elves are sentient beings of energy that will sacrifice themselves to the benefit of the player. The nurse types specifically are converted into usable energy. The Dark Elf is the only one that is used as a continuous power source without dying.
In Metroid, infant Metroids are used like this by Space Pirates in Metroid Prime 2: Echoes, and in Super Metroid it is implied in the intro that this is what is meant by them being used to benefit mankind.
In Ecco: Defender of the Future, there's a level in the evil version of the future where evil dolphins are using humpback whales as a living power source.
In Quake IV, we discover just what produces the energy that the Strogg use: human corpses in various stages of mutilation note just the torso, torso and head, or sometimes the entire body. The ones with heads seem to be completely unaware of their surroundings, attached to the machinery they power. Near the end of the game, the player himself has to activate the distribution of these to power up a certain facility.
While they don't require one to operate, Lares and Lemures from Solatorobo will turn you into one in exchange for controlling them.
Unfortunate humans captured by demons in Shin Megami Tensei games can look forward to this as their eventual fate. The Mantra facilities and the Nightmare System in Nocturne and the Ashura-Kai Red Pill creation process are good examples of this, some of them crossing with People Farms.
It provides power even without this trope, but Yuri's basic power generator in Command & Conquer: Red Alert 2 Yuri's Revenge can have its output boosted by putting infantry in it. The good news is that this doesn't actually seem to do any damage to the people it uses, even if the reactor is destroyed (though that can be a bad thing if you put mind-controlled people inside it — they get liberated from the mind control once inside. So long as they're inside, they can do nothing but provide power to you, but once released...).
Wild Star has a giant terraforming device powered by the local ice golems in the Northern Wilds. A nearby datacube has one of the Eldan researchers expressing dismay they had to use them, but concedes that things like ethics musn't get in the way of "The Project."
The Synchronizers in Tsukihime, e.g. Hisui and Kohaku, are living magical batteries that can accumulate and transfer life energy to other people, such as Akiha, who has to live off a half of normal human life energy, and Shiki, after his Evil Twin starts parasitizing him.
Masters in Fate/stay night act as batteries for their Servants, empowering their abilities and allowing them to maintain a physical form. This is a dangerous prospect for some Masters, as a reckless Servant can use so much prana that it kills their Master as with Berserker and Kariya in the Fourth War.
In Generator Rex there's a whole country that gets its electricity from a single EVO.
In Ben 10, Max met his future wife Verdona when a group of aliens meant to use her (an Energy Being) as a power source, which would be painful and eventually kill her.
The Megawhatts were introduced as annoying electrical beings who play pranks on people. However, they once needed to ask Ben's help because some of them were being kept as a fuel source by the villain of the week.
In the first episode of Batman: The Brave and the Bold, Batman and the Blue Beetle face the villain Kanjar Ro, who is harvesting the Gribble aliens because apparently their bodies can be used as fuel. The process doesn't sound particularly pleasant.
In Ultraforce, it was revealed that Prototype's Powered Armor was fueled by his latent ultra abilities rather than having a built in power source.
At the end of Justice League Unlimited episode "Alive", Lex Luthor uses Tala as one of these to revive Brainiac after a failed revolt led by Tala and Gorilla Grodd. In a final act of revenge, Tala interferes with the ritual, causing the resurrection of Darkseid instead.
There are already quite a few types of devices that can be powered by human movement, body heat etc. but these tend to be novelties that are much simpler in function than counterparts with conventional power sources.
This article tells how Evgeny Katz, a chemist at Clarkson University, has developed a way to use live snails to generate a small amount of electricity. The idea is to eventually make implanted medical devices such as pacemakers self-powered by applying similar principles to the human body.