Llama 3.2 Vision¶
v2¶
Class: LlamaVisionBlockV2 (there are multiple versions of this block)
Source: inference.core.workflows.core_steps.models.foundation.llama_vision.v2.LlamaVisionBlockV2
Warning: This block has multiple versions. Please refer to the specific version for details. You can learn more about how versions work here: Versioning
Ask a question to Llama 3.2 Vision model.
You can specify arbitrary text prompts or predefined ones, the block supports the following types of prompt:
-
Open Prompt (
unconstrained) - Use any prompt to generate a raw response -
Text Recognition (OCR) (
ocr) - Model recognizes text in the image -
Visual Question Answering (
visual-question-answering) - Model answers the question you submit in the prompt -
Captioning (short) (
caption) - Model provides a short description of the image -
Captioning (
detailed-caption) - Model provides a long description of the image -
Single-Label Classification (
classification) - Model classifies the image content as one of the provided classes -
Multi-Label Classification (
multi-label-classification) - Model classifies the image content as one or more of the provided classes -
Unprompted Object Detection (
object-detection) - Model detects and returns the bounding boxes for prominent objects in the image -
Structured Output Generation (
structured-answering) - Model returns a JSON response with the specified fields
๐ ๏ธ API providers and model variants¶
Llama 3.2 Vision is exposed via OpenRouter. By default this block
uses the Roboflow-managed OpenRouter key and bills your Roboflow credits โ no extra
setup needed. To bypass Roboflow billing, paste your own sk-or-... key into the
api_key field.
The privacy_level field controls which OpenRouter providers may serve the request:
- No data collection (default) โ providers may not train on your inputs.
- Allow data collection โ broader provider pool.
- Zero data retention โ strictest, restricts to providers that retain nothing.
๐ก Further reading and Acceptable Use Policy¶
Model license
Check the Llama 3.2 license before use.
Type identifier¶
Use the following identifier in step "type" field: roboflow_core/llama_vision@v2to add the block as
as step in your workflow.
Properties¶
| Name | Type | Description | Refs |
|---|---|---|---|
name |
str |
Enter a unique identifier for this step.. | โ |
api_key |
str |
OpenRouter API key. Defaults to Roboflow's managed key, billed in credits via Roboflow. Provide your own sk-or-... key to call OpenRouter directly without Roboflow billing.. |
โ |
privacy_level |
str |
Provider privacy filter. Stricter levels reduce the pool of providers and may increase per-call cost on the managed key.. | โ |
max_tokens |
int |
Maximum number of tokens the model can generate in its response.. | โ |
temperature |
float |
Temperature to sample from the model - value in range 0.0-2.0, the higher - the more random / "creative" the generations are.. | โ |
max_concurrent_requests |
int |
Number of concurrent requests for batches of images. If not given - block defaults to value configured globally in Workflows Execution Engine. Restrict if you hit rate limits.. | โ |
task_type |
str |
Task type to be performed by model. Value determines required parameters and output response.. | โ |
prompt |
str |
Text prompt to the Llama model. | โ |
output_structure |
Dict[str, str] |
Dictionary with structure of expected JSON response. | โ |
classes |
List[str] |
List of classes to be used. | โ |
model_version |
str |
Model to be used. | โ |
The Refs column marks possibility to parametrise the property with dynamic values available
in workflow runtime. See Bindings for more info.
Available Connections¶
Compatible Blocks
Check what blocks you can connect to Llama 3.2 Vision in version v2.
- inputs:
Anthropic Claude,Instance Segmentation Model,Google Vision OCR,Circle Visualization,Image Slicer,Google Gemini,Image Contours,Qwen 3.6 API,Single-Label Classification Model,Roboflow Vision Events,Depth Estimation,Line Counter Visualization,Stitch Images,Morphological Transformation,LMM,Model Comparison Visualization,Buffer,MoonshotAI Kimi,Grid Visualization,Twilio SMS/MMS Notification,OpenAI,Clip Comparison,Twilio SMS Notification,Qwen-VL,S3 Sink,Local File Sink,Keypoint Detection Model,Camera Focus,Halo Visualization,SIFT Comparison,Mask Visualization,SIFT,Anthropic Claude,MoonshotAI Kimi,Roboflow Dataset Upload,Text Display,Image Slicer,Multi-Label Classification Model,Absolute Static Crop,Llama 3.2 Vision,GLM-OCR,Object Detection Model,Roboflow Custom Metadata,Email Notification,Dynamic Crop,OpenRouter,Cosine Similarity,Model Monitoring Inference Aggregator,Contrast Enhancement,Motion Detection,Webhook Sink,Google Gemma API,Stability AI Image Generation,Color Visualization,Heatmap Visualization,Contrast Equalization,Google Gemini,Roboflow Dataset Upload,Slack Notification,Anthropic Claude,QR Code Generator,Clip Comparison,OpenAI,Bounding Box Visualization,Florence-2 Model,VLM As Classifier,Image Blur,Dot Visualization,Polygon Zone Visualization,Label Visualization,Icon Visualization,Image Threshold,LMM For Classification,Blur Visualization,Relative Static Crop,Dimension Collapse,Qwen3.5-VL,Trace Visualization,Size Measurement,Dynamic Zone,Florence-2 Model,Camera Focus,CogVLM,Pixelate Visualization,Llama 3.2 Vision,Image Convert Grayscale,Keypoint Visualization,Polygon Visualization,Google Gemma,Classification Label Visualization,Image Stack,Gaze Detection,Morphological Transformation,Camera Calibration,Google Gemini,Email Notification,Image Preprocessing,Corner Visualization,Stitch OCR Detections,Halo Visualization,Roboflow Asset Library Attributes,OpenAI,Reference Path Visualization,Identify Changes,Background Color Visualization,Ellipse Visualization,CSV Formatter,Stability AI Outpainting,VLM As Detector,EasyOCR,Triangle Visualization,OCR Model,Crop Visualization,Qwen 3.5 API,Perspective Correction,Stitch OCR Detections,OpenAI-Compatible LLM,Detections List Roll-Up,Polygon Visualization,Background Subtraction,OpenAI,Stability AI Inpainting - outputs:
Distance Measurement,Keypoint Detection Model,Instance Segmentation Model,Anthropic Claude,Google Vision OCR,Circle Visualization,Google Gemini,Qwen 3.6 API,CLIP Embedding Model,Roboflow Vision Events,Depth Estimation,Line Counter Visualization,VLM As Detector,Morphological Transformation,LMM,Model Comparison Visualization,Buffer,MoonshotAI Kimi,Segment Anything 2 Model,Grid Visualization,Cache Set,Instance Segmentation Model,Twilio SMS/MMS Notification,OpenAI,Detections Classes Replacement,Clip Comparison,Twilio SMS Notification,SAM 3,Qwen-VL,S3 Sink,SAM 3,Halo Visualization,Local File Sink,Semantic Segmentation Model,SIFT Comparison,Multi-Label Classification Model,Keypoint Detection Model,Mask Visualization,Path Deviation,Anthropic Claude,MoonshotAI Kimi,Roboflow Dataset Upload,Text Display,Llama 3.2 Vision,VLM As Classifier,PTZ Tracking (ONVIF),Path Deviation,GLM-OCR,Object Detection Model,Email Notification,Seg Preview,Dynamic Crop,Roboflow Custom Metadata,Instance Segmentation Model,Time in Zone,OpenRouter,Model Monitoring Inference Aggregator,Motion Detection,Webhook Sink,Google Gemma API,Stability AI Image Generation,Color Visualization,Heatmap Visualization,Contrast Equalization,Object Detection Model,YOLO-World Model,Google Gemini,Roboflow Dataset Upload,Slack Notification,Anthropic Claude,QR Code Generator,Clip Comparison,OpenAI,Bounding Box Visualization,SAM 3,Florence-2 Model,VLM As Classifier,Image Blur,Keypoint Detection Model,Detections Consensus,Dot Visualization,Polygon Zone Visualization,Label Visualization,Icon Visualization,Image Threshold,Cache Get,LMM For Classification,Object Detection Model,Line Counter,Trace Visualization,Moondream2,Size Measurement,Perception Encoder Embedding Model,Florence-2 Model,CogVLM,Llama 3.2 Vision,Time in Zone,Keypoint Visualization,Polygon Visualization,Line Counter,Google Gemma,Classification Label Visualization,Morphological Transformation,Email Notification,Google Gemini,Image Preprocessing,Corner Visualization,Stitch OCR Detections,Halo Visualization,Roboflow Asset Library Attributes,OpenAI,Reference Path Visualization,Detections Stitch,Background Color Visualization,Single-Label Classification Model,JSON Parser,Ellipse Visualization,Stability AI Outpainting,VLM As Detector,Triangle Visualization,Crop Visualization,Qwen 3.5 API,Perspective Correction,Stitch OCR Detections,OpenAI-Compatible LLM,Detections List Roll-Up,Instance Segmentation Model,Time in Zone,Polygon Visualization,Pixel Color Count,OpenAI,Stability AI Inpainting
Input and Output Bindings¶
The available connections depend on its binding kinds. Check what binding kinds
Llama 3.2 Vision in version v2 has.
Bindings
-
input
api_key(Union[secret,ROBOFLOW_MANAGED_KEY,string]): OpenRouter API key. Defaults to Roboflow's managed key, billed in credits via Roboflow. Provide your ownsk-or-...key to call OpenRouter directly without Roboflow billing..temperature(float): Temperature to sample from the model - value in range 0.0-2.0, the higher - the more random / "creative" the generations are..images(image): The image to infer on..prompt(string): Text prompt to the Llama model.classes(list_of_values): List of classes to be used.model_version(string): Model to be used.
-
output
output(Union[string,language_model_output]): String value ifstringor LLM / VLM output iflanguage_model_output.classes(list_of_values): List of values of any type.
Example JSON definition of step Llama 3.2 Vision in version v2
{
"name": "<your_step_name_here>",
"type": "roboflow_core/llama_vision@v2",
"api_key": "rf_key:account",
"privacy_level": "<block_does_not_provide_example>",
"max_tokens": "<block_does_not_provide_example>",
"temperature": "<block_does_not_provide_example>",
"max_concurrent_requests": "<block_does_not_provide_example>",
"images": "$inputs.image",
"task_type": "<block_does_not_provide_example>",
"prompt": "my prompt",
"output_structure": {
"my_key": "description"
},
"classes": [
"class-a",
"class-b"
],
"model_version": "11B - OpenRouter"
}
v1¶
Class: LlamaVisionBlockV1 (there are multiple versions of this block)
Source: inference.core.workflows.core_steps.models.foundation.llama_vision.v1.LlamaVisionBlockV1
Warning: This block has multiple versions. Please refer to the specific version for details. You can learn more about how versions work here: Versioning
Ask a question to Llama 3.2 Vision model with vision capabilities.
You can specify arbitrary text prompts or predefined ones, the block supports the following types of prompt:
-
Open Prompt (
unconstrained) - Use any prompt to generate a raw response -
Text Recognition (OCR) (
ocr) - Model recognizes text in the image -
Visual Question Answering (
visual-question-answering) - Model answers the question you submit in the prompt -
Captioning (short) (
caption) - Model provides a short description of the image -
Captioning (
detailed-caption) - Model provides a long description of the image -
Single-Label Classification (
classification) - Model classifies the image content as one of the provided classes -
Multi-Label Classification (
multi-label-classification) - Model classifies the image content as one or more of the provided classes -
Structured Output Generation (
structured-answering) - Model returns a JSON response with the specified fields
Issues with structured prompting
Model tends to be quite unpredictable when structured output (in our case JSON document) is expected.
That problems may impact tasks like structured-answering, classification or multi-label-classification.
The cause seems to be quite sensitive "filters" of inappropriate content embedded in model.
๐ ๏ธ API providers and model variants¶
Llama Vision 3.2 model is exposed via OpenRouter API and we require passing OpenRouter API Key to run.
There are different versions of the model supported:
-
smaller version (
11B) is faster and cheaper, yet you can expect better quality of results using90Bversion -
Regularversion is paid (and usually faster) API, whereasFreeis free for use for OpenRouter clients (state at 01.01.2025)
As for now, OpenRouter is the only provider for Llama 3.2 Vision model, but we will keep you posted if the state of the matter changes.
API Usage Charges
OpenRouter is external third party providing access to the model and incurring charges on the usage. Please check out pricing before use:
๐ก Further reading and Acceptable Use Policy¶
Model license
Check out model license before use.
Click here for the original model card.
Usage of this model is subject to Meta's Acceptable Use Policy.
Type identifier¶
Use the following identifier in step "type" field: roboflow_core/llama_3_2_vision@v1to add the block as
as step in your workflow.
Properties¶
| Name | Type | Description | Refs |
|---|---|---|---|
name |
str |
Enter a unique identifier for this step.. | โ |
task_type |
str |
Task type to be performed by model. Value determines required parameters and output response.. | โ |
prompt |
str |
Text prompt to the Llama model. | โ |
output_structure |
Dict[str, str] |
Dictionary with structure of expected JSON response. | โ |
classes |
List[str] |
List of classes to be used. | โ |
api_key |
str |
Your Llama Vision API key (dependent on provider, ex: OpenRouter API key). | โ |
model_version |
str |
Model to be used. | โ |
max_tokens |
int |
Maximum number of tokens the model can generate in it's response.. | โ |
temperature |
float |
Temperature to sample from the model - value in range 0.0-2.0, the higher - the more random / "creative" the generations are.. | โ |
max_concurrent_requests |
int |
Number of concurrent requests that can be executed by block when batch of input images provided. If not given - block defaults to value configured globally in Workflows Execution Engine. Please restrict if you hit limits.. | โ |
The Refs column marks possibility to parametrise the property with dynamic values available
in workflow runtime. See Bindings for more info.
Available Connections¶
Compatible Blocks
Check what blocks you can connect to Llama 3.2 Vision in version v1.
- inputs:
Anthropic Claude,Instance Segmentation Model,Google Vision OCR,Circle Visualization,Image Slicer,Google Gemini,Image Contours,Qwen 3.6 API,Single-Label Classification Model,Roboflow Vision Events,Depth Estimation,Line Counter Visualization,Stitch Images,Morphological Transformation,LMM,Model Comparison Visualization,Buffer,MoonshotAI Kimi,Grid Visualization,Twilio SMS/MMS Notification,OpenAI,Clip Comparison,Twilio SMS Notification,Qwen-VL,S3 Sink,Halo Visualization,Camera Focus,SIFT Comparison,Keypoint Detection Model,Local File Sink,Mask Visualization,SIFT,Anthropic Claude,MoonshotAI Kimi,Roboflow Dataset Upload,Text Display,Image Slicer,Multi-Label Classification Model,Absolute Static Crop,Llama 3.2 Vision,GLM-OCR,Object Detection Model,Roboflow Custom Metadata,Email Notification,Dynamic Crop,OpenRouter,Cosine Similarity,Model Monitoring Inference Aggregator,Contrast Enhancement,Motion Detection,Webhook Sink,Google Gemma API,Stability AI Image Generation,Color Visualization,Heatmap Visualization,Contrast Equalization,Google Gemini,Roboflow Dataset Upload,Slack Notification,Anthropic Claude,QR Code Generator,Clip Comparison,OpenAI,Bounding Box Visualization,Florence-2 Model,VLM As Classifier,Image Blur,Dot Visualization,Polygon Zone Visualization,Label Visualization,Icon Visualization,Image Threshold,LMM For Classification,Blur Visualization,Relative Static Crop,Dimension Collapse,Trace Visualization,Qwen3.5-VL,Size Measurement,Dynamic Zone,Florence-2 Model,Camera Focus,CogVLM,Pixelate Visualization,Llama 3.2 Vision,Image Convert Grayscale,Keypoint Visualization,Polygon Visualization,Google Gemma,Classification Label Visualization,Image Stack,Morphological Transformation,Gaze Detection,Camera Calibration,Google Gemini,Email Notification,Image Preprocessing,Corner Visualization,Stitch OCR Detections,Halo Visualization,Roboflow Asset Library Attributes,Reference Path Visualization,OpenAI,Background Color Visualization,Identify Changes,Ellipse Visualization,CSV Formatter,Stability AI Outpainting,VLM As Detector,EasyOCR,Triangle Visualization,OCR Model,Crop Visualization,Perspective Correction,Qwen 3.5 API,Stitch OCR Detections,OpenAI-Compatible LLM,Detections List Roll-Up,Polygon Visualization,Background Subtraction,OpenAI,Stability AI Inpainting - outputs:
Distance Measurement,Keypoint Detection Model,Instance Segmentation Model,Anthropic Claude,Google Vision OCR,Circle Visualization,Google Gemini,Qwen 3.6 API,CLIP Embedding Model,Roboflow Vision Events,Depth Estimation,Line Counter Visualization,VLM As Detector,Morphological Transformation,LMM,Model Comparison Visualization,Buffer,MoonshotAI Kimi,Segment Anything 2 Model,Grid Visualization,Cache Set,Instance Segmentation Model,Twilio SMS/MMS Notification,OpenAI,Detections Classes Replacement,Clip Comparison,Twilio SMS Notification,SAM 3,Qwen-VL,S3 Sink,SAM 3,Halo Visualization,Local File Sink,Semantic Segmentation Model,SIFT Comparison,Multi-Label Classification Model,Keypoint Detection Model,Mask Visualization,Path Deviation,Anthropic Claude,MoonshotAI Kimi,Roboflow Dataset Upload,Text Display,Llama 3.2 Vision,VLM As Classifier,PTZ Tracking (ONVIF),Path Deviation,GLM-OCR,Object Detection Model,Email Notification,Seg Preview,Dynamic Crop,Roboflow Custom Metadata,Instance Segmentation Model,Time in Zone,OpenRouter,Model Monitoring Inference Aggregator,Motion Detection,Webhook Sink,Google Gemma API,Stability AI Image Generation,Color Visualization,Heatmap Visualization,Contrast Equalization,Object Detection Model,YOLO-World Model,Google Gemini,Roboflow Dataset Upload,Slack Notification,Anthropic Claude,QR Code Generator,Clip Comparison,OpenAI,Bounding Box Visualization,SAM 3,Florence-2 Model,VLM As Classifier,Image Blur,Keypoint Detection Model,Detections Consensus,Dot Visualization,Polygon Zone Visualization,Label Visualization,Icon Visualization,Image Threshold,Cache Get,LMM For Classification,Object Detection Model,Line Counter,Trace Visualization,Moondream2,Size Measurement,Perception Encoder Embedding Model,Florence-2 Model,CogVLM,Llama 3.2 Vision,Time in Zone,Keypoint Visualization,Polygon Visualization,Line Counter,Google Gemma,Classification Label Visualization,Morphological Transformation,Email Notification,Google Gemini,Image Preprocessing,Corner Visualization,Stitch OCR Detections,Halo Visualization,Roboflow Asset Library Attributes,OpenAI,Reference Path Visualization,Detections Stitch,Background Color Visualization,Single-Label Classification Model,JSON Parser,Ellipse Visualization,Stability AI Outpainting,VLM As Detector,Triangle Visualization,Crop Visualization,Qwen 3.5 API,Perspective Correction,Stitch OCR Detections,OpenAI-Compatible LLM,Detections List Roll-Up,Instance Segmentation Model,Time in Zone,Polygon Visualization,Pixel Color Count,OpenAI,Stability AI Inpainting
Input and Output Bindings¶
The available connections depend on its binding kinds. Check what binding kinds
Llama 3.2 Vision in version v1 has.
Bindings
-
input
images(image): The image to infer on..prompt(string): Text prompt to the Llama model.classes(list_of_values): List of classes to be used.api_key(string): Your Llama Vision API key (dependent on provider, ex: OpenRouter API key).model_version(string): Model to be used.temperature(float): Temperature to sample from the model - value in range 0.0-2.0, the higher - the more random / "creative" the generations are..
-
output
output(Union[string,language_model_output]): String value ifstringor LLM / VLM output iflanguage_model_output.classes(list_of_values): List of values of any type.
Example JSON definition of step Llama 3.2 Vision in version v1
{
"name": "<your_step_name_here>",
"type": "roboflow_core/llama_3_2_vision@v1",
"images": "$inputs.image",
"task_type": "<block_does_not_provide_example>",
"prompt": "my prompt",
"output_structure": {
"my_key": "description"
},
"classes": [
"class-a",
"class-b"
],
"api_key": "xxx-xxx",
"model_version": "11B (Free) - OpenRouter",
"max_tokens": "<block_does_not_provide_example>",
"temperature": "<block_does_not_provide_example>",
"max_concurrent_requests": "<block_does_not_provide_example>"
}