A BiPAP machine uses 50-150 Watts, according to a random Google query, so you're looking at somewhere between 500 and 1400 Wh of total storage to get your 9 hours of sleep on a plane.
So what you're looking for is (a) a way to daisychain these batteries together so that you don't need to wake up ever 40 minutes to 2 hours to swap batteries and (b) a way to plug in your BiPAP machine, if your battery packs are all USB-C and your BiPAP isn't.
For this reason BiPAPs have much more beefy motors so they can ramp up and down quickly. Or perhaps two separate motors, I have never taken one apart (I have normal CPAPs which is basically just a pressure fan in a box with some regulation electronics)
But anyway my point is, a normal CPAP doesn't use that much power. It may use more than that if a humidifier is used (which is probably not a bad idea on a plane, but it requires distilled water which is an issue to bring on the plane in sufficient quantity). Because the humidifier is just a heater and heaters use lots of power.
I don't use a humidifier, my CPAP has a PSU of about 60W but I doubt it uses more than 20. The problem is more that they are not USB-C powered, nor are there official USB-C converters for it. I could probably construct one but bringing home-built electronics on a plane is probably not a great idea either.
So yeah I don't think this will be a great option tbh. If power is provided on the plane it would work but I've never seen this on my flights except in business/first.
Given 100Wh batteries, I've wondered if one could kludge a TSA-compatible carry-on electric mobility device, like skateboard wheels plus selfie sticks, as a one-bag travel scooter. My hungry laptop already needs several. Or carry a conversion kit for an "amazon, use, then give away" inexpensive manual kick scooter.
Travel CPAPs are a thing but you can't just buy one where I live. They're only supplied by the medical service here, and they don't do travel versions. It's not allowed to buy one yourself (and they're very expensive, around 700 bucks).
Ah, ok. Tnx. I assumed availability(eg [1]), so with a $1k-ish cost similar-order to travel, I wandered off looking for other obstacles.
The HME plugs used with travel CPAPs instead of a humidifier, with calcium chloride foam to transfer heat and moisture from exhalation to inhalation, looked interesting tech with winter coming. But for day-ish replacement.
And yeah the Resmed Airmini and Breez Z2 are the only ones I've seen for sale in my previous country (where it was legal to buy them personally if you have a prescription) but they added up to well over 1000 euros with the battery kit which for some weird reason is not included. For my country (medium-wage) that's pretty steep.