How do you use Gemini API?

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

1 Like

You want to use Gemini api specifically

I use the API, of course, but the image doesn't include it.

Did you set blocks as per their documentation?

curl "https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash:generateContent?key=YOUR_API_KEY" \
-H 'Content-Type: application/json' \
-X POST \
-d '{
  "contents": [{
    "parts":[{"text": "Explain how AI works"}]
    }]
}'

You need to show us all of your relevant blocks.

This error is no where related with this block. As said by kevin shows us compl blocks

As these are Kodular blocks and the question also has been asked there

I now will close this thread here

Taifun