Which figure of speech is used in this text?
Thou wast not born for death, immortal Bird!
—John Keats, "Ode to a Nightingale"

 - apostrophe
 - antithesis
The text uses apostrophe, a direct address to an absent person or a nonhuman entity.
Immortal Bird is a direct address to the bird, a nonhuman entity.