Meghan King Edmonds has revealed she gave her husband an IVF ultimatum.

The Real Housewives of Orange County star and her husband Jim Edmonds are now expecting their first child together, a girl, after the fertility treatment.

But the 31-year-old reality star told People she demanded former baseball player Jim, 46, unfreeze his sperm or she'd walk.

'I think I said 'Baby, or no me at all,' Meghan said. 'Me or nothing.'

Scroll down for video

Expecting: Real Housewives of Orange County star Meghan King Edmonds posed in a sports bra as she showed off her growing baby bump on Instagram last week

Sports broadcaster Jim, who has four children from two previous marriages, had his sperm frozen after having a vasectomy.

He is father to daughters Lauren, 22, and Hayley, 18, with his late first wife LeAnn Horton, and son Landon, 10, and daughter Sutton, seven, with second wife Allison Jayne Raski.

Meghan ended up getting pregnant after her first IVF treatment, and announced her pregnancy in June.

'Awestruck': The 31-year-old, who is expecting a baby girl after undergoing IVF, posed in a gold bikini as she said she was embracing the ups and downs of pregnancy

'It was just such a long process with the IVF, step by step by step with so much information,' she told People at the time.

'I've always dreamed of this, but it's still such a miracle. I can't even describe the feeling.'

The reality star has also been sharing her pregnancy with fans on Instagram, posting a photo of her growing belly for 'Bump Day' last week.

IVF journey: The reality star gave herself painful hormone injections the day after getting her eggs removed

'Today is #bumpday! And you know I can't pass up a good excuse to show off this beautiful growing baby girl!' she wrote, adding hashtag '#fiveandahalfmonthspregnant.'

And sharing a photo of herself in a gold bikini earlier this month, Meghan wrote that she was loving watching her body change.

'Bewildered and awestruck by my the changing beauty of my body during pregnancy and embracing each hard moment and each happy moment as a momentous transformation that will forever change me,' she wrote.

Expecting: Meghan revealed she gave her husband Jim - who already has four children - an ultimatum and demanded he unfreeze his sperm for IVF. Above, the couple last week

Meghan has also been open about the ups and downs of IVF, sharing Instagram photos and videos of herself receiving fertility treatments and injecting herself with hormones, and filming the process for RHOC.

'These are stills from a video I made the first day after my egg retrieval and I was not feeling well but had to give myself my first intramuscular estrogen shot as I listened to Jimmy announce the Cardinals game on tv,' she captioned a photo showing herself wincing in pain while giving herself injections.

The current season of RHOC also follows her IVF journey. The most recent episode showed her getting her eggs removed.

But she admitted she was upset Jim went golfing instead of being with her for the treatment, although she later said he was a very involved father.

RHOC airs on Bravo on Mondays.