# 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

**URL:** <https://discuss.ai.google.dev/t/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/196302>\
**Category:** Gemini API\
**Tags:** models\
**Created:** [October 27, 2026, 1:41pm UTC](https://discuss.ai.google.dev/t/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/196302 "2026-10-27T13:41:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![user1896](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/user1896/32/52261_2.png) [@user1896](https://discuss.ai.google.dev/u/user1896)\
**Post date:** [October 27, 2026, 1:41pm UTC](https://discuss.ai.google.dev/t/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/196302/1 "2026-10-27T13:41:56Z")

</div>

## 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

```auto
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:

```python
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 | ✅ completed | ✅ completed |
| image, inline base64 | ✅ completed | ❌ 400 at create |
| image, Files API `uri` | ✅ completed | ❌ 400 at create |
| video, YouTube URL, `processing: {"type": "static", "fps": 0.5}` | ✅ completed | ✅ completed |
| video, Files API `uri`, static | ✅ completed | ✅ completed |
| video, YouTube URL, `processing: "agentic"` | ✅ completed | ✅ 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](https://ai.google.dev/gemini-api/docs/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](https://ai.google.dev/gemini-api/docs/models/gemini-3.8-flash) 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/](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?

---

<div class="post-metadata">

**Author:** ![Jon\_Matthews](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/jon_matthews/32/87966_2.png) [@Jon\_Matthews](https://discuss.ai.google.dev/u/Jon_Matthews)\
**Post date:** [October 30, 2026, 1:29pm UTC](https://discuss.ai.google.dev/t/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/196302/2 "2026-10-30T13:29:19Z")

</div>

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