Unfortunately, the API doesn’t return any Response ID to give you, so below I’m pasting the entire request and response below.
We are getting a 500 error for more than a half of all requests
{
"request": {
"url": "https:\/\/generativelanguage.googleapis.com\/v1beta\/models\/gemini-3-pro-image-preview:generateContent",
"method": "post",
"headers": {
"content-type": "application\/json",
"x-goog-api-key": "[redacted]"
},
"options": {
"json": {
"contents": [
{
"role": "user",
"parts": [
{
"text": "Change the base color of image 1 to dark sea"
},
{
"inline_data": {
"data": "--BINARY--",
"mime_type": "image\/jpeg"
}
},
{
"inline_data": {
"data": "--BINARY--",
"mime_type": "image\/jpeg"
}
}
]
}
],
"generationConfig": {
"imageConfig": {
"imageSize": "2K",
"aspectRatio": "3:4"
},
"responseModalities": [
"IMAGE"
]
}
},
"receive_timeout": 180000
}
},
"response": {
"body": {
"error": {
"code": 500,
"status": "INTERNAL",
"message": "Internal error encountered."
}
},
"status": 500,
"headers": {
"date": "Wed, 11 Feb 2026 15:56:43 GMT",
"vary": [
"Origin",
"X-Origin",
"Referer"
],
"server": "scaffolding on HTTPServer2",
"alt-svc": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000",
"content-type": "application\/json; charset=UTF-8",
"server-timing": "gfet4t7; dur=22296",
"x-frame-options": "SAMEORIGIN",
"x-xss-protection": "0",
"transfer-encoding": "chunked",
"x-content-type-options": "nosniff"
}
},
"elapsed_ms": 22345.885
}