Batch API with pdfs

Hi, does anyone know if gemini batch api supports pdf uploads? Specifically, I would like to attach distinct pdfs to each request in my batch.

Hi @Sarina_Xi
Welcome to the AI Forum!!!

Thank you for your question.
The Gemini Batch API does not directly support attaching separate PDF. You can upload PDF individually via the Files API to get file ID, which can then be used in single requests or in batch JSONL input where supported.
For more detailed information, please refer to these documents- File API, Batch API & Document understanding.