magic up

Intermédiaire supérieur (B2) informal

To make something appear very quickly, like a magician pulling a rabbit from a hat — usually when it seems almost impossible.

"The chef managed to magic up a three-course dinner from whatever was left in the fridge."