Create Clip API

Is it possible to change the length of the clip with API?