We had a nasty compressor stall after hitting a flock on birds just after liftoff. CT7. It popped and banged but didn't flame out or feather, so after required actions we tried to increase power but couldn't get above 40% trq, above that it would start to surge. We left it running until landing as no other abnormalities were observed.