[FEATURE] Let image blocks set OpenAI's image detail level (low/high/auto)
SDK Language
Python
Problem Statement
OpenAI image inputs take a detail setting (low, high, auto) that trades cost and latency against how closely the model looks. Strands gives no way to set it:
OpenAIResponsesModelsends{"type": "input_image", "image_url": ...}with nodetail(strands-py/src/strands/models/openai_responses.py).OpenAIModelhard-codes"detail": "auto"(strands-py/src/strands/models/openai.py).ImageContenthas onlyformatandsource.
Checked on main at fec0427664.
Proposed Solution
An optional detail on the image block, passed through by both OpenAI providers and ignored by providers that do not support it:
{"image": {"format": "jpeg", "source": {"bytes": data}, "detail": "low"}}Default stays as today (auto), so nothing changes for existing users. Happy to send the PR if this shape works.
Use Case
We run a car-diagnostics agent on Strands with OpenAIResponsesModel. Users attach photos: a dashboard warning light needs only low, a repair quote or a VIN label needs high. Today every photo is billed at whatever auto picks.
Alternatives Solutions
A model-level config option (one detail for all images). Simpler, but it cannot mix a cheap photo and a text-heavy photo in one conversation.
Additional Context
OpenAI docs: https://platform.openai.com/docs/guides/images-vision (see "Specify image input detail level").
Source: strands-agents/harness-sdk