Formal:
* The jester's jape was met with laughter from the court.
* His jape was intended to be humorous, but it came across as offensive.
Informal:
* He couldn't resist a good jape, even at his own expense.
* We spent the evening swapping japes and telling stories.
Figurative:
* The whole incident was a jape of fate, a cruel twist of circumstances.
* Life is full of unexpected japes, both good and bad.
Remember: "Jape" is a somewhat archaic word, so it's best used in contexts where a more formal or humorous tone is desired.