A maintenance team sends equipment photos to a vision-enabled gpt-4.1 deployment in Microsoft Foundry by using the Chat Completions API. The model must read small serial numbers printed on labels in the photos.
Requirements:
- Text in the photos must be recognized as accurately as possible.
- Each request must explicitly select an image detail mode rather than let the model choose between low and high based on image size.
How should you configure the detail parameter in the image_url field of each request?
Set detail to high to explicitly select high-resolution processing for the small printed serial numbers. This mode examines detailed image segments, while low detail may reduce text recognition accuracy. Selecting auto or omitting the parameter allows the model to choose the detail mode based on image size.
- Correct: Set detail to high. The high setting enables high-resolution processing, including detailed 512x512 image segments. Explicitly selecting this mode supports detailed text interpretation and prevents automatic selection between low and high.
- Not correct: Omit the detail parameter. The default is auto. Omitting the parameter therefore leaves the choice between low and high detail to the model.
- Not correct: Set detail to auto. With auto, image size determines whether the model uses low or high detail. This violates the requirement to select a mode explicitly.
- Not correct: Set detail to low. The low setting uses a 512x512 representation of the image. The sources warn that low-resolution processing may reduce text recognition accuracy, so it does not meet the accuracy requirement.
- How to use vision-enabled chat models - Microsoft FoundryMicrosoft Learn
- How to use vision-enabled chat models - Microsoft FoundryMicrosoft Learn