What's the right way to set unit of model with C API?

P.S. - The C++ API is retired. This applies to the newer C API.