The present invention relates to a pharmaceutical composition comprising a peptide of 5 to 50 amino acids which comprises the amino acid sequence NPFPTX1X2KRX3X4 (SEQ ID NO: 2) wherein X1, X2, X3, and X4 may be the same or different and each is an amino acid residue, wherein said composition is in a form suitable for a transbuccal administration and use thereof for preventing or treating pain.