Skip to content
Discussion options

You must be logged in to vote

Yes, since llm 0.17 (Oct 2024). Images are "attachments", passed with -a (a file path or a URL):

llm -m gpt-4o-mini "describe this image" -a photo.jpg
llm -m gpt-4o-mini "what's different?" -a one.png -a two.png

To see which file types a model accepts: llm models --options -m gpt-4o-mini (look under "Attachment types"; on 0.36 that's JPEG, PNG, GIF, WEBP and PDF).

Docs: https://llm.datasette.io/en/stable/usage.html#attachments

(Checked with help from Claude against llm 0.36.)

Replies: 1 comment

Comment options

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