Hello Krzysztof Krzaczkowski,
Thanks for raising it in the Q&A forum!
I understand you're looking to limit page processing for SharePoint Autofill columns to control costs and need visibility into actual page consumption.
Page Limit Recommendations
Microsoft recommends processing files no larger than 65 pages for optimal performance. The model might process more pages depending on line spacing and font size, but Microsoft will only charge up to 65 pages per file. This effectively provides a built-in cost ceiling per document.
Current Limitations
Unfortunately, there's no native way to set a specific page range (like "process only first 3 pages") in the Autofill functionality. Even if you specify page limits in your prompt (e.g., "Read max 3 first pages"), the service may still process more pages than requested, as you've observed.
Retrieving Processing Metrics
Currently, SharePoint Autofill doesn't expose real-time page count or cost metrics in browser console logs or audit logs. The Autofill activity panel shows processing status for files but not page-level consumption details. You're correct that waiting for Azure Cost Management updates is the only reliable method to see actual costs, which isn't efficient for prompt optimization.
Workaround Suggestions
Pre-processing: Consider splitting large documents into smaller chunks (under 10 pages) before uploading to SharePoint, ensuring predictable costs Sample testing: Use a small subset of documents with known page counts for prompt testing before bulk processing Budget alerts: Set up Azure Cost Management alerts to monitor spending thresholds in near real-time rather than end-of-day checks
Autofill is priced at $0.005 per page, with the 65-page cap per file providing some cost predictability. For your 100,000 document example with a theoretical 10-page limit, the maximum cost would be $5,000 (100,000 × 10 × $0.005), though actual costs may vary based on document structure.
If this helps, kindly accept the answer.
Best Regards,
Jerald Felix