The formalin test is one approach to studying acute pain in rodents. Similar to formalin, injection with glutamate and veratrine can also produce a nociceptive response. This study investigated whether opioid-related compounds could suppress glutamate- and veratrine-induced nociceptive responses in mice at the same dose. The administration of morphine (3 mg/kg), hydromorphone (0.4 mg/kg), or fentanyl (0.03 mg/kg) suppressed glutamate-induced nociceptive response, but not veratrine-induced nociceptive response at the same doses. However, high doses of morphine (10 mg/kg), hydromorphone (2 mg/kg), or fentanyl (0.1 mg/kg) produced a significant reduction in the veratrine-induced nociceptive response. These results indicate that high doses are required when using morphine, hydromorphone, or fentanyl for sodium channel-related neuropathic pain, such as ectopic activity. As a result, concerns have arisen about overdose and abuse if the dose of opioids is steadily increased to relieve pain. In contrast, trimebutine (100 mg/kg) and fentanyl analog isobutyrylfentanyl (iBF; 0.1 mg/kg) suppressed both glutamate- and veratrine-induced nociceptive response. Furthermore, nor-isobutyrylfentanyl (nor-iBF; 1 mg/kg), which is a metabolite of iBF, suppressed veratrine-induced nociceptive response. Besides, the optimal antinociceptive dose of iBF, unlike fentanyl, only slightly increased locomotor activity and did not slow gastrointestinal transit. Cancer pain is a complex condition driven by inflammatory, neuropathic, and cancer-specific mechanisms. Thus, iBF may have the potential to be a superior analgesic than fentanyl.