Share via

Azure OpenAI: Why am I getting “Too many images in request (max 10)” when I’m sending a PDF, not images?

Nawaf Alabdullah 0 Reputation points
2025-08-25T03:41:03.63+00:00

I submit a single PDF (~20 pages) to Azure OpenAI and receive this error:

{
  "error": {
    "type": "invalid_request_error",
    "message": "Too many images in request: 20, maximum allowed: 10."
  }
}

I am not explicitly sending images, so I’m trying to understand why an image limit is being enforced on a PDF input.

I'm using GPT-4.1 with the responses API.

Azure OpenAI in Foundry Models

1 answer

Sort by: Most helpful
  1. Manas Mohanty 16,835 Reputation points Microsoft External Staff Moderator
    2025-09-12T04:16:23.8333333+00:00

    Hi Nawaf Alabdullah and bhhsieh,

    100 pages, 32 MB max file limit is for Text based pdfs.

    Product group tested 160-page text only pdf successfully. In case they include only images, it is failing with above error.

    Successfully, tested a GPT 4.1 Response API endpoint with 10 MB file pdf with both text and image (12 pages)

    So, it seems the constraint is with image only pdfs

    PG team is working increase the limit of 10 pages to 100 pages

    Suggesting splitting image only pdfs under 10 pages for now.

    Thank you

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.