GenerateContent failed with status code 400

a poor Chinese student asking for help for the feedback “Error: HTTP POST https://generativelanguage.googleapis.com/v1beta/models/gemini-pro:generateContent failed with status code 400”

In China, I could verify the gemini api in my ZOTERO while I used a proxy software Nekoray. Preformatted text. For which, the host I used is https://generativelanguage.googleapis.com, model I chose is gemini-pro

But when I GET to Germany, I could not verify it in my literature software. And I tried all my best to handle the problem, like shift the model to gemini-1.5-flash, or verify it on another laptop produced for German…

Error code 400 usually means the request is malformed, it is bad json. If you are using software to generate the API request, showing the code that issues the request can help us help you.