
Powered by Dr7.ai Medical AI Platform
Med-Flamingo is a multimodal few-shot learner for medicine from Stanford researchers. Built on OpenFlamingo-9B and pretrained on interleaved image-text data from medical textbooks and PubMed Central, it can answer questions about a new medical image after seeing just a handful of examples.
Upload a medical image and ask a question about it â the demo shows the interleaved image-and-text reasoning Med-Flamingo introduced for medicine.
Experience Advanced Medical AI
Get unlimited image question answering, higher upload limits and API access for multimodal medical research.
Med-Flamingo is a medical vision-language model released in 2023 by Michael Moor and colleagues at Stanford together with collaborators (Moor et al., "Med-Flamingo: a Multimodal Medical Few-shot Learner"). It adapts OpenFlamingo-9B â an open reimplementation of DeepMind's Flamingo â to the medical domain.
The model was continued-pretrained on interleaved image-text sequences from medical textbooks (the MTB dataset) and PMC-OA figure-caption pairs. Because it consumes images and text interleaved in one context, it supports in-context ("few-shot") learning: show it a few image-question-answer examples and it generalises to a new image without fine-tuning.
On VQA-RAD, PathVQA and a new Visual USMLE benchmark, clinicians rated Med-Flamingo's generative answers higher than baselines, but the authors are explicit that it is an early research prototype that can hallucinate and is not fit for clinical use.
Released July 2023 by Stanford researchers and collaborators (Moor et al., 2023)
Open weights on GitHub / Hugging Face for research; based on OpenFlamingo-9B
In-context learning for medical images
Few-shot medical visual question answering
Interleaved image + text inputs in one prompt
Generative (free-text) answers, not just multiple choice
Pretrained on medical textbooks and PubMed Central figures
Built on OpenFlamingo-9B (LLaMA-7B language backbone)
Evaluated on VQA-RAD, PathVQA and Visual USMLE
Clinician-rated evaluation protocol
Open research weights
Evaluation described in the Med-Flamingo paper; clinicians scored generative answers rather than a single accuracy number
Radiology visual question answering with in-context examples
Pathology image question answering
USMLE-style questions that require looking at an image, introduced with the paper
Human experts preferred Med-Flamingo answers over the compared baselines on average
Study in-context learning for medical images with an open model.
Answer free-text questions about a medical image for clinician review.
Image-based USMLE-style practice with explanations.
Research code and weights from the authors
Code and weights are published in the authors' GitHub repository and on Hugging Face; you also need the OpenFlamingo and LLaMA-7B base weights.
Compose a prompt of a few image-question-answer examples followed by the new image and question.
Plan for privacy, validation and human oversight before putting Med-Flamingo anywhere near patient data.
Med-Flamingo is a research model. Its outputs must be reviewed by qualified healthcare professionals before any clinical use.
The model is not a cleared or approved medical device. Ensure compliance with local healthcare regulations and data-protection rules (e.g. HIPAA, GDPR) before deployment.
The models described on this page are research tools for clinical imaging. If what you have is an everyday photo â a rash, a mole, a nail, a wound â AI Doctor Scan reads it and returns a free urgency level and a plain-language summary in about 30 seconds. It does not name a diagnosis, and it needs no account.
Try AI Doctor Scan â freeWhat few-shot learning changes
Stanford few-shot medical VQA
Research on in-context learning and generative medical VQA
How it compares
Pick by modality (text vs. image), licence, and the hardware you actually have
Common questions about Med-Flamingo
Michael Moor and colleagues at Stanford University with collaborators (2023). It is not a Google model.
You put a few example image-question-answer triples in the prompt; the model then answers about a new image without any fine-tuning.
OpenFlamingo-9B, an open reimplementation of DeepMind's Flamingo architecture with a LLaMA-7B language backbone.
No. The authors describe it as an early research prototype that can hallucinate; it must not be used for patient care.
The demo uses Dr7.ai's multimodal medical assistant to show image question answering. For the exact model, run the authors' code.