TeacherGPT / test.http
Prince-1's picture
Updating the code
35b20d0 verified
raw
history blame contribute delete
863 Bytes
### 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"
}
]
}
]
}
###