Summary
- Any request with
"processing": "agentic"on gemini-3.8-flash and gemini-3.6-flash fails with HTTP 400 (extended_metadata must be a supported extension of beyond.files.ExtendedFileMetadata), even with a 5-second synthetic clip and a one-line prompt. - The identical request with
processingomitted (static) returns 200. - Reproduced with a key from a newly created project, with inline and Files API input, and on both generateContent and Interactions.
Timeline
Our last successful agentic analysis was 2026-10-20 19:53 +08:00. Our pipeline first failed on the night of 2026-10-21 +08:00. The response body from that first failure was not preserved; the extended_metadata error was confirmed in controlled tests on 2026-10-22, so we cannot pin the exact onset. We made no code, settings, or billing changes between these times.
Minimal reproduction
Create a five-second silent H.264 test pattern:
ffmpeg -nostdin -v error -n -f lavfi -i 'testsrc=size=320x240:rate=24' -t 5 -an -c:v libx264 -pix_fmt yuv420p -movflags +faststart synthetic-5s.mp4
Upload it with the Files API, wait until the file is ACTIVE, and set FILE_URI to its returned URI. The tested file is 25,424 bytes, 320×240, 24fps, no audio. SHA256: 7cd88091b7fd3c52ddccf8bd1be38a72b87d082b83452e586f27a0c7f59c6c30.
curl --request POST \
'https://generativelanguage.googleapis.com/v1beta/interactions' \
--header "x-goog-api-key: ${GEMINI_API_KEY}" \
--header 'Content-Type: application/json' \
--data-binary @- <<JSON
{
"model": "gemini-3.8-flash",
"input": [
{
"type": "video",
"uri": "${FILE_URI}",
"mime_type": "video/mp4",
"processing": "agentic"
},
{"type": "text", "text": "Describe this video."}
]
}
JSON
No system instruction, output schema, resolution, generation config, conversation history, previous interaction ID, or replayed processing steps are sent. Changing only the model to gemini-3.6-flash reproduces the same error.
Actual response
HTTP 400, Content-Type: application/json; charset=UTF-8 (3.6 Flash shown; 3.8 Flash returns the same error):
{"error":{"message":"* 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\n* 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\n","code":"invalid_request"}}
Expected: a completed description and, when dynamic navigation is used, processing steps as described in the video understanding documentation.
Tested combinations (2026-10-22)
Rows not marked “minimal” used a ~15s real ad clip and a longer analysis prompt.
| Model | API | Video input | Processing | Result |
|---|---|---|---|---|
| 3.8 Flash | generateContent | inline | agentic | 400, same extended_metadata error (inline_data path); reproduced on two different videos |
| 3.8 Flash | generateContent | Files URI | agentic | 400, same extended_metadata error (file_data path) |
| 3.8 Flash | Interactions | Files URI | agentic | 400, same error; also with the minimal synthetic request |
| 3.6 Flash | Interactions | Files URI | agentic, minimal | 400, same error |
| 3.8 Flash (new project key) | Interactions | Files URI | agentic, minimal | 400, same error; no usage or processing steps returned |
| 4 Argon | Interactions | Files URI | agentic, minimal | 400, {"error":{"message":"Invalid input received.","code":"invalid_request"}} |
| 3.8 Flash | generateContent | inline | static | 200, valid output |
| 3.8 Flash | Interactions | Files URI | processing omitted, minimal | 200, completed |
Failed requests returned no usage or processing steps. The static control returned 660 total tokens (320 input, 111 output, 229 thought), zero tool-use tokens, and no processing_call/processing_result steps. We do not know whether the Argon error has the same cause.
Hypothesis (unconfirmed): the service generates internal video-processing function_call/function_response content whose file metadata now fails validation. The rejected contents[1]/contents[2] are not in our request.
Questions
- Is this a known issue with agentic video processing on these Flash models?
- Is a fix in progress, and is there an expected timeline?
- Is there a supported workaround that keeps agentic processing?
We can share request timestamps and full response bodies if helpful.