The beautiful story of two Queensland paramedics who took a dying woman to the beach one last time has inspired a new service to grant wishes for the terminally ill.

The state government and the Queensland Ambulance Service have teamed up to launch the new Wish ambulance.

It will be used to take Queenslanders who need constant care on important journeys before they die, perhaps to the beach, or to see their grandkids, or to the place where they got married.

This image of paramedic Graeme Cooper standing with a patient by the ocean as her dying wish went viral. (Queensland Ambulance)

The service was inspired by the regular acts of kindness Queensland paramedics perform, including the touching story of Graeme Cooper and Danielle Kellan who went out of their way to grant a woman's dying wish in 2017.

The Hervey Bay ambos had been tasked with taking the woman to a palliative care unit at a local hospital when she mentioned her love of the sea.

They took a small diversion, wheeled her out of the ambulance on her trolley bed, and perched it on the foreshore, allowing her to take in one last, long sweep of the ocean. A photo of the intimate moment went viral.

Mr Cooper even used a bag from the ambulance to collect some sea water so the woman could enjoy the salty smell she loved so much.