Media generation endpoint bugfix.