Integration of gemini api key with pure c++ project using curl in visual studio for solar system recommendation

I made a simple terminal application in c++ in visual studio and i want to integrate gemini api using curl in that project . i want to train the model using prompts i have all the prompts ready and then i will provide all the data that user input and push that to gemini api using http request by curl and then i want that gemini will give a complete organized set of text and table recommend the user the best solar system for him to buy

PLEASE help anyone . A little guide will help .
Thank you all.