The photo, captured by US media, shows Williams in a yellow swimsuit with what appears to be a baby bump.
Williams, 35, hasn’t played since beating her sister Venus in the final of the Australian Open in January to clinch a record 23rd Grand Slam singles title.
She cited a knee injury in pulling out of tournaments in Indian Wells and Miami in March.
In December she announced her engagement to Reddit co-founder Alexis Ohanian, first sharing that news on the Reddit social media site.
This is the reaction on Twitter to her post
Serena Williams really won the Australian Open while pregnant and I was sore for three days after losing Wii tennis…
— o'timmy ???? (@underlord5000) April 19, 2017
Serena Williams won the Australian open while pregnant. That's dedication of a true athlete.????????????
— Kenz (@Archibald_m1998) April 19, 2017
When Maria Sharapova tried to grab all the tennis headlines in April but Serena Williams announces she is pregnant ???? pic.twitter.com/C50CLSxuhv
— Chris Goldsmith (@TheTennisTalker) April 19, 2017
Serena Williams won a Grand Slam while pregnant. Please tell me more about women not being as athletic as men.
— Lexi Brown (@lexilafleur) April 19, 2017