In a park amid skyscrapers, a gem has emerged: a posh public bathroom that cost nearly $300,000, complete with freshly delivered flowers, imported tiles, classical music and artwork.

The free-of-charge, air-conditioned splendor, inspired by visits to the city’s priciest hotels, is open to everyone. More than 1 million people a year are expected to use the facility, park officials said.

On Thursday, two bathroom attendants held toilet tissue that a park official cut as the inaugural ribbon for the high-tech facility housed in a landmarked Beaux Arts building behind the New York Public Library in Manhattan. The toilets, in 310 square feet divided between the women’s and men’s sides, are reopening after a three-month renovation.

The eye-popping, LED-illuminated elegance is unusual in a city where public toilets are scarce and generally grungy.

“It’s very clean, and the flowers are alive,” said Irena Marentic, a tourist from Slovenia, as she left the space, whose walls and floors are lined with tiles from Spain and Italy and adorned with art created by Bryant Park’s painters-in-residence.

The women’s side has three toilet stalls, while the men’s side has two stalls and three urinals, the same number as before the renovation. The facility can’t be expanded because the space surrounding it is considered a scenic landmark.

The public luxury was funded privately by the Bryant Park Corp., a not-for-profit that manages the city-owned park and works to improve business in the neighborhood, which includes Fifth Avenue.

“We strive for perfection and only settle for excellence,” declared Dan Biederman, the executive director of the Bryant Park Corp.

The team behind the new posh public bathroom visited the Waldorf Astoria and other luxury hotels for inspiration.

A few out-of-town companies provided donations not included in the facility’s $280,000 cost. The Japanese luxury brand Toto contributed self-flushing, energy-saving toilets and hands-free faucets and wash basins. Brill Hygienic Products Inc., of Delray Beach, Florida, supplied sanitary, electronic seat covers that rotate with each use.

Attendants with mops keep everything clean from 7 a.m. until midnight during the warm months and until 10 p.m. the rest of the year. By park rules, no tips are allowed.

The bathroom is most often used by visitors to the leafy, grassy refuge of Bryant Park, which draws them with its seasonal attractions including a skating rink in winter, holiday shops, outdoor movies on summer nights and tables and chairs.

The park went through a makeover some years ago after decades of urban decay and crime that spilled into the bathroom, which was closed for years and reopened only in the 1990s.

With the improvement of the park, the number of visitors has increased. So, too, has the daily use of the toilets, from an average of 1,800 in 2013 to 3,300 last year, or 1.2 million a year, park officials said. On the women’s side, the wait could be as long as 20 minutes.

On Thursday, with the line growing, park workers directed people to the massive library building and more public toilets, though not quite as fancy.