Agentic video understanding fails with 400 extended_metadata must be a supported extension of beyond.files.ExtendedFileMetadata — even the official blog example

Agentic video understanding ("processing": "agentic") fails on every request with a 400 that appears to come from an internal request the backend builds for its own video tool. It reproduces with the exact code from the Google blog post, so it does not seem to depend on our input.

Minimal repro

Verbatim from the blog post Introducing agentic video understanding with Gemini:

from google import genai

client = genai.Client()

interaction = client.interactions.create(
    model="gemini-3.7-flash",
    input=[
        {
            "type": "video",
            "uri": "https://youtu.be/7Z5Vy9JBANs",
            "processing": "agentic"
        },
        {
            "type": "text",
            "text": "What are the 3 most important announcements in this keynote?",
        },
    ],
)

print(interaction.output_text)

Error

Returned after 2–3 seconds:

400 invalid_request
* GenerateContentRequest.contents[1].parts[0].function_call.parts[0].file_data.file_options.file_metadata.extended_metadata[0]: extended_metadata must be a supported extension of beyond.files.ExtendedFileMetadata
* GenerateContentRequest.contents[2].parts[0].function_response.parts[0].file_data.file_options.file_metadata.extended_metadata[0]: extended_metadata must be a supported extension of beyond.files.ExtendedFileMetadata

The failing fields are inside function_call / function_response of contents 1 and 2, i.e. the model’s own call to the internal video tool and its result. Nothing in our request maps to extended_metadata.

What we varied — same error in every case

Dimension Tried
Model gemini-3.8-flash, gemini-3.7-flash, gemini-3.6-flash, gemini-3.5-flash-lite (gemini-4-argon returns 400 Invalid input received.)
Video source public YouTube URL (the blog example), Files API upload (ACTIVE, video/mp4), inline base64, same MP4 with a silent audio track added
API surface Interactions API (interactions.create), and generateContent with media_processing="agentic" + mime_type
Call mode synchronous, background=True (status becomes failed after ~10 s), stream=True (events: interaction.created, status_update, step.start ×2, step.delta ×2, step.stop, then error)
Client google-genai 2.28.0 and 2.32.0, and raw REST to v1beta without the SDK
Request options resolution="low", store=False, service_tier="standard", thinking_level="low" (the configuration reported as working in thread 181801)

v1 rejects video content types; v1alpha is deprecated.

What works

  • The same files with "processing": "static" (or no processing) answer normally.
  • The same blog example worked for us through a third-party proxy to Google AI Studio on 2026-10-08 (~15 s, correct answer). Today the same route returns an empty answer at zero cost, which looks like the same failure.

Environment

  • Gemini API (Google AI Studio API key), endpoint https://generativelanguage.googleapis.com/v1beta/
  • Python 3.14.7, google-genai 2.32.0
  • Failing requests, for log correlation: 2026-10-21 between 19:00 and 20:40 UTC; an hourly probe with the blog example continues to fail, latest at 2026-10-21 20:36:02 UTC.

Related

Is this a known regression, and is there a workaround or an ETA? Agentic processing is the feature we need for a long-video benchmark, static mode works fine for us otherwise.

We’re seeing the same thing, with the JS SDK (@google/genai 2.21.0, Interactions API), on gemini-3.6-flash, 3.7-flash and 3.8-flash. Some data points that may help narrow it down:

Thanks, this matches what we see. Our last successful agentic request was 2026-10-20 11:53 UTC. (To clarify, we did not test YouTube URLs.)

Thanks for flagging, we’re looking into this.

Shouldn’t this be a critical outage and reported at the Gemini API status?

This issue has been fixed. Let us know if you still see the issue persist at your end. Thanks!

Confirmed the issue is fixed. Thanks!