Overview
This endpoint provides gemini-2.5-flash-image-preview-hd functionality.
Authentication
This endpoint requires authentication using a Bearer token.
Your API key in the format: Bearer YOUR_API_KEY
Request Body
Request Example
curl -X POST "https://gptproto.com/v1beta/models/gemini-2.5-flash-image-preview-hd:generateContent" \
-H "Authorization: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"contents": [
{
"parts": [
{
"text": "Create a picture of a nano banana dish in a fancy restaurant with a Gemini theme"
}
]
}
]
}'
Response
Error Responses
{
"error": {
"message": "Invalid request parameters",
"type": "invalid_request_error",
"code": "invalid_parameters"
}
}