Gemini-3-pro-image-preview response finishReason other

When I use the API to call gemini-3-pro-image-preview, I occasionally encounter situations where the response does not return any content and only includes an error message with a finishReason of “other”. What could be the reason for this? Has anyone encountered a similar issue. here is the response {
“candidates”: [
{
“content”: {},
“finishReason”: “OTHER”,
“index”: 0
}
],
“usageMetadata”: {
“promptTokenCount”: 979,
“totalTokenCount”: 1156,
“promptTokensDetails”: [
{
“modality”: “TEXT”,
“tokenCount”: 721
},
{
“modality”: “IMAGE”,
“tokenCount”: 258
}
],
“thoughtsTokenCount”: 177
},
“modelVersion”: “gemini-3-pro-image-preview”,
“responseId”: “PHA7aaCoGLGzjuMPlbi7iA8”
}

2 Likes

Hi @chao_ren , Thanks for reaching out to us.

Could you please share details about the prompt you’re using with gemini-3-pro-image-preview model, such as complexity of the prompt? If possible, please share an example prompt, it will help us test the issue on our end.

Hi, sorry for the late reply. Here’s my prompt: [Role Definition: You are a senior wrapping paper texture designer who embraces Maximalism. You excel at creating commercial all-over prints. You strongly dislike rigid grid alignment. Your design philosophy is filling the canvas with elements, creating a lively, rich, yet orderly visual feast. [2] Task Objective: Generate a high quality commercial wrapping paper texture pattern. No Grids: Strictly forbid any obvious horizontal or vertical alignment. The layout must appear organic and flowing. [3] Visual Specifications: Layout Command: Use Organic, Random Scatter layout. Strictly forbid any formation of large clusters or any single element dominating a local area. Background Coverage (REINFORCE): Foreground elements must cover at least 60% of the background.</system_prompt> Create a complete wrapping paper design ONLY based on [THEME] & [REQUIREMENT]. [THEME]:Cobweb [REQUIREMENT]: Spider-Man themed wrapping paper UK, seamless repeat pattern, split design with bright red top half and royal blue bottom half, hand-drawn black spiderweb texture, small realistic spider on top right web, bold cartoon style, high contrast Arrangement Rule: Pack these elements within the unit in an organic, nested manner, maintaining a gap for definition. Arrange these elements within the unit without overlapping, maintaining a consistent gap between them for clarity. The final design must contain at least 10 distinct and complete repetitions of this master unit. Clarity & Quality: All elements must be rendered in sharp, clear, and perfect detail.], and I want to make a 4K image with it.
thanks

Did you end up finding a fix for this issue ? I’m encountering the same right now

I’m having the same issue. Gemini-3-pro-image-preview, using the python api, generate_content() sending an image alongside the text prompt. Interestingly, it works in AI Studio.

@chao_ren thank you for sharing
@izipizi , @George_Williams would it be possible to share the code snippet you are using when you encounter this issue , Also what prompt are you using in Ai studio which is working for you