A highly specific two-photon fluorescent probe GP-BAN has been developed. The probe was successfully applied to detect DPP-IV in complex biological samples. The probe could be used for high throughput screening of DPP-IV inhibitors. The probe was successfully used for two-photon imaging of DPP-IV in living cells and tissues.