Skip to content
Discussion options

You must be logged in to vote

Hi @dpolistwm, sorry this sat unanswered for so long after Unshure's follow-up, that's on us.

Since we never got details on what failed, here's the state of things: multimodal input does work with GeminiModel today. Image and document content blocks are converted to Gemini inline data parts, and we run integration tests against exactly this shape:

from strands import Agent
from strands.models.gemini import GeminiModel

model = GeminiModel(client_args={"api_key": "<KEY>"}, model_id="gemini-2.5-flash")
agent = Agent(model=model)

with open("photo.png", "rb") as f:
    image_bytes = f.read()

result = agent([
    {"text": "What do you see in this image?"},
    {"image": {"format": "png", "so…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by yonib05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants