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 | ||
| image, inline base64 | ||
image, Files API uri |
||
video, YouTube URL, processing: {"type": "static", "fps": 0.5} |
||
video, Files API uri, static |
||
video, YouTube URL, processing: "agentic" |
I reproduced this consistently on 2026-10-27 across several runs.
What I ruled out
- SDK version: same result on
google-genai2.30.1 and 2.33.0 (both sendApi-Revision: 2026-05-20, defaultv1beta). - API version: same 400 on
api_version="v1". - Request format: the image part matches the docs and the
ImageContentreference (type,data/uri,mime_type); both inline and Files API variants fail identically.storeis 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-flashexplicitly, 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
- Is this an intended limitation of background mode? If yes, could the supported input modalities be documented on the Background execution page?
- If it’s a bug, is there a fix planned or an ETA?