The inauguration ceremony organised in Herat province of the country was also attended by Pakistan Prime Minister Shahid Khaqan Abbasi, Turkmenistan President Gurbanguly Berdimuhamedow, and Minister of State for External Affairs M.J. Akbar, Khaama Press reported.
Ghani delivered the message of regional cooperation during the ceremony.
He said Kandahar, Helmand, Nimroz and Herat residents have vowed to assist the Afghan forces in helping in the completion of the project work on time.
According to Ghani, other projects, including electricity, fibre optics, and railway network, will also be implemented alongside the TAPI gas pipeline.
Ghani said Herat province would remain the main roundabout between the Central and South Asia, but other provinces in the South and West would also benefit from the projects.
Akbar said India was committed to supporting the long-awaited project, which would take two years to complete, but had been several years in the planning.
The Pakistan Prime Minister said his country was committed to long-term economic goals which guaranteed stability in the region.
He said the implementation of the TAPI project was the biggest achievement for the countries involved.