CHANGE GPU FAN SPEED IN RUNTIME

Hi,
could anybody tell me does it possible to change fan speed of GPU by API call?
I found just nvidia-settings can do it.

Best regards,
Andrey