Share model between different coding languages

I want to use Python to train a best model and use C api to load the trained model and use it. I tried, but failed(there’s no problem with the Python model itself because I can load and use the model in Python). I guess the model data format isn’t compatible between Python and C, but can’t find any useful docs about this problem. Can anybody give me some advice? Thanks a lot!

How did it fail? Can you be more specific?