How to use Gemini API [No One Solved]

I am trying to use Gemini as a math assistant. But something I don’t know isn’t working.

Have you added your api? Got any response? Share us your response text

I use the API, of course, but the image doesn’t include it.
Response: ((error ((code 403) (message SSL is required to perform this operation.) (status PERMISSION_DENIED))))

would you like to share your curl code

Try using https instead of http, and drop the lists:

curl “https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash:generateContent?key=YOUR_API_KEY
-H ‘Content-Type: application/json’
-X POST
-d ‘{
“systemInstruction”: {
“parts”: [{“text”: “You are a helpful AI assistant that specializes in explaining complex technical concepts in simple terms. Keep explanations concise and use analogies when possible.”}]
},
“contents”: [
{
“role”: “user”,
“parts”: [{“text”: “Explain how AI works”}]
}
]
}’