Interactions API: background=True rejects image and audio input for gemini-3.8-flash ("Image input modality is not enabled for models/gemini-3.8-flash-agent"), video works

Summary

With the Interactions API, background=True on gemini-3.8-flash rejects any request that contains an image (or audio) part with a 400 at create time. The same request without background=True succeeds. Video input in background mode works fine (static and agentic processing).

The error references a model resource I never requested — models/gemini-3.8-flash-agent — so it looks like background requests are routed to an internal “-agent” variant of the model that has image and audio input disabled.

Error

400 {'error': {'message': 'Image input modality is not enabled for models/gemini-3.8-flash-agent', 'code': 'invalid_request'}}

Audio input fails the same way in background mode (Audio input modality is not enabled for models/gemini-3.8-flash-agent).

Minimal repro

Gemini Developer API (API key, paid tier), Python google-genai 2.33.0:

import base64
from google import genai

client = genai.Client()  # GEMINI_API_KEY
img = base64.b64encode(open("test.jpg", "rb").read()).decode()

interaction = client.interactions.create(
    model="gemini-3.8-flash",
    input=[
        {"type": "image", "data": img, "mime_type": "image/jpeg"},
        {"type": "text", "text": "Describe this image in one sentence."},
    ],
    background=True,
)
# -> 400 Image input modality is not enabled for models/gemini-3.8-flash-agent

If I remove background=True, the same call returns completed with a correct description.

What I tested

Input background=False background=True
text only :white_check_mark: completed :white_check_mark: completed
image, inline base64 :white_check_mark: completed :cross_mark: 400 at create
image, Files API uri :white_check_mark: completed :cross_mark: 400 at create
video, YouTube URL, processing: {"type": "static", "fps": 0.5} :white_check_mark: completed :white_check_mark: completed
video, Files API uri, static :white_check_mark: completed :white_check_mark: completed
video, YouTube URL, processing: "agentic" :white_check_mark: completed :white_check_mark: completed

I reproduced this consistently on 2026-10-27 across several runs.

What I ruled out

  • SDK version: same result on google-genai 2.30.1 and 2.33.0 (both send Api-Revision: 2026-05-20, default v1beta).
  • API version: same 400 on api_version="v1".
  • Request format: the image part matches the docs and the ImageContent reference (type, data / uri, mime_type); both inline and Files API variants fail identically. store is left at the default (true).

Why I think it’s a bug

  • The Background execution page says background is supported for standard Gemini models, naming gemini-3.8-flash explicitly, with no restrictions on input modalities.
  • The gemini-3.8-flash model page lists text, image, video, audio and PDF as inputs.
  • The error names gemini-3.8-flash-agent, which isn’t a public model, and only image/audio are affected while video works.

Someone else asked the same question on Reddit about five weeks ago, still unanswered: https://www.reddit.com/r/GeminiAI/comments/1wuw8ch/what_the_heck_is_gemini38flashagent/

Questions

  1. Is this an intended limitation of background mode? If yes, could the supported input modalities be documented on the Background execution page?
  2. If it’s a bug, is there a fix planned or an ETA?

Thanks for the report! A fix should be rolling out now.