Hi Google team,
I’m using the Gemini generateContent API with Gemini 3.5 Flash.
My workflow is as follows:
- Use Gemini Code Execution to generate a
.docxfile. - The DOCX file is generated successfully.
- In a subsequent
generateContentAPI call, I try to provide the same DOCX as input usingfileData.
The request fails with the following error:
{
"error": "Unsupported MIME type: application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"statusCode": 400
}
The MIME type I’m sending is:
application/vnd.openxmlformats-officedocument.wordprocessingml.document
My questions are:
- Is this expected behavior for the
generateContentAPI? - If Code Execution can generate a DOCX artifact, why can’t the same DOCX be provided as input to a subsequent
generateContentrequest? - Is DOCX currently unsupported as an input format for
generateContent, or is this a bug? - Are there any plans to support this workflow in the future?
Has anyone else encountered this issue or found a supported workaround?
Thank you.