File size: 863 Bytes
35b20d0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
### GET request to example server
GET https://examples.http-client.intellij.net/get
    ?generated-in=PyCharm

###


# curl "https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash:generateContent"
#  -H 'Content-Type: application/json'
#  -H 'X-goog-api-key: AIzaSyBeeaJzCVPAqngbSS63xZigfAJzSIl-5Eo'
#  -X POST
#  -d '{
#    "contents": [
#      {
#        "parts": [
#          {
#            "text": "Explain how AI works in a few words"
#          }
#        ]
#      }
#    ]
#  }'
POST https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-pro:generateContent
X-goog-api-key: AIzaSyBeeaJzCVPAqngbSS63xZigfAJzSIl-5Eo
Content-Type: application/json

{
  "contents": [
    {
      "parts": [
        {
          "text": "Explain how AI works in a few words"
        }
      ]
    }
  ]
}

###