Authorization: Bearer ********************curl --location -g --request POST '/v1beta/models/gemini-2.5-pro:generateContent?key={{YOUR_API_KEY}}' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"contents": [
{
"role": "user",
"parts": [
{
"inline_data": {
"mime_type": "application/pdf",
"data": "JVBERi0xLjcKJaGzxd..."
}
},
{
"text": "Summarize this document"
}
]
}
]
}'{}