Overview
This endpoint provides file analysis functionality.
Authentication
This endpoint requires authentication using a Bearer token.
Authorization
string
default:"sk-***********"
required
Your API key in the format: Bearer YOUR_API_KEY
Query Parameters
Request Body
Request Example
curl -X POST "https://gptproto.com/v1beta/models/gemini-2.5-pro-deepsearch:generateContent" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"contents": [
{
"parts": [
{
"text": "Please summarize the main content of this PDF"
},
{
"file_data": {
"mime_type": "application/pdf",
"file_uri": "https://discovery.ucl.ac.uk/id/eprint/10089234/1/343019_3_art_0_py4t4l_convrt.pdf"
}
}
]
}
]
}'
Response
Error Responses
{
"error": {
"message": "Invalid signature",
"type": "401"
}
}