Gemini-3.1-flash-image: does max_output_tokens bound ALL billable output tokens (image + text + thinking) on /v1beta/interactions?

I’m building a cost-ceiling check that must know the maximum billable cost of a request BEFORE sending it.

Model: gemini-3.1-flash-image
Endpoint: POST /v1beta/interactions (Gemini Developer API)
Config: generation_config.max_output_tokens = M, thinking_level = minimal, image_size = 1K

Question: Is it guaranteed that the total billable output tokens of one request — image tokens (1120 per 1K image), text tokens and thinking tokens combined — never exceed M, including (a) responses that stop early with finish_reason = MAX_TOKENS and (b) responses with multiple image parts?

The pricing page documents the per-image token cost, and the model card says output images are limited by the model’s 32,768 output-token limit, but neither states that the per-request max_output_tokens parameter caps image tokens. I’d appreciate a documentation reference or a written confirmation from the Gemini API team.