Compile a Model (API)