Relations between Pakistan and Afghanistan have been tense for months, with the two sides accusing each other of turning a blind eye towards certain militant outfits.
"What I'm offering the Pakistan government, the Pakistan security apparatus, is the invitation to a comprehensive dialogue," Ghani said during CNN's GPS Sunday talk show.
"So here is the opportunity. If Pakistan does not take this opportunity, I think there will be - they will pay a high price. So I hope that it's their interest to engage," he said.
Kabul says Pakistan provides safe havens to terrorists who launch cross-border attacks, while Islamabad complains Afghanistan and its intelligence services provide support to militant groups such as the Tehrik-i-Taliban Pakistan (TTP).
More From This Section
"The examination of Pakistan has never been as thorough, and the message for the need for Pakistan to engage and become a responsible stakeholder in the region and in the fight against terrorism has never been this clear," Ghani told the channel.
He said the Afghans are determined to fight and no one should underestimate their wish for a secure region.
Responding to a question, Ghani claimed that the Taliban are becoming less and less popular.
"It's a sign of weakness to attack a mosque. It's a sign of weakness, not strength, to kill people, soldiers who are praying. It's a sign of weakness to attack civilians in broad daylight. Blowing bombs, track bombs particularly, does not make you popular," he said.