Single-Label Classification Model¶
v2¶
Class: RoboflowClassificationModelBlockV2 (there are multiple versions of this block)
Warning: This block has multiple versions. Please refer to the specific version for details. You can learn more about how versions work here: Versioning
Run inference on a multi-class classification model hosted on or uploaded to Roboflow.
You can query any model that is private to your account, or any public model available on Roboflow Universe.
You will need to set your Roboflow API key in your Inference environment to use this block. To learn more about setting your Roboflow API key, refer to the Inference documentation.
Type identifier¶
Use the following identifier in step "type" field: roboflow_core/roboflow_classification_model@v2to add the block as
as step in your workflow.
Properties¶
| Name | Type | Description | Refs |
|---|---|---|---|
name |
str |
Enter a unique identifier for this step.. | ❌ |
model_id |
str |
Roboflow model identifier.. | ✅ |
confidence |
float |
Confidence threshold for predictions.. | ✅ |
disable_active_learning |
bool |
Boolean flag to disable project-level active learning for this block.. | ✅ |
active_learning_target_dataset |
str |
Target dataset for active learning, if enabled.. | ✅ |
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 Single-Label Classification Model in version v2.
- inputs:
Stitch Images,Image Threshold,Email Notification,Corner Visualization,Image Blur,Ellipse Visualization,Roboflow Dataset Upload,Depth Estimation,Absolute Static Crop,Multi-Label Classification Model,JSON Parser,Stability AI Image Generation,Grid Visualization,Dynamic Crop,Image Slicer,Image Preprocessing,Relative Static Crop,SIFT,Morphological Transformation,Line Counter Visualization,Trace Visualization,Halo Visualization,Dot Visualization,Model Monitoring Inference Aggregator,Keypoint Detection Model,Roboflow Custom Metadata,Pixelate Visualization,Circle Visualization,Image Convert Grayscale,Icon Visualization,QR Code Generator,Semantic Segmentation Model,S3 Sink,Twilio SMS Notification,Halo Visualization,Camera Focus,SIFT Comparison,Polygon Visualization,Text Display,Detections Consensus,Reference Path Visualization,Instance Segmentation Model,Identify Changes,Crop Visualization,Roboflow Dataset Upload,Mask Visualization,Heatmap Visualization,Webhook Sink,Label Visualization,Classification Label Visualization,VLM As Detector,Polygon Zone Visualization,Stability AI Inpainting,VLM As Classifier,Perspective Correction,Camera Calibration,VLM As Detector,PTZ Tracking (ONVIF),Background Color Visualization,Email Notification,Background Subtraction,Contrast Equalization,SIFT Comparison,Keypoint Visualization,Single-Label Classification Model,Identify Outliers,Color Visualization,Motion Detection,Dynamic Zone,Object Detection Model,Roboflow Vision Events,Local File Sink,VLM As Classifier,Twilio SMS/MMS Notification,Triangle Visualization,Clip Comparison,Blur Visualization,Bounding Box Visualization,Camera Focus,Polygon Visualization,Image Slicer,Image Contours,Model Comparison Visualization,Stability AI Outpainting,Slack Notification - outputs:
Detections Classes Replacement,Keypoint Detection Model,SAM 3,Roboflow Dataset Upload,Object Detection Model,SAM 3,Multi-Label Classification Model,SAM 3,Qwen2.5-VL,Single-Label Classification Model,Object Detection Model,Roboflow Vision Events,Instance Segmentation Model,Qwen3.5-VL,Instance Segmentation Model,Roboflow Dataset Upload,Qwen3-VL,Multi-Label Classification Model,Webhook Sink,GLM-OCR,Classification Label Visualization,Model Monitoring Inference Aggregator,Single-Label Classification Model,Roboflow Custom Metadata,Keypoint Detection Model,SmolVLM2,Moondream2,Semantic Segmentation Model
Input and Output Bindings¶
The available connections depend on its binding kinds. Check what binding kinds
Single-Label Classification Model in version v2 has.
Bindings
-
input
images(image): The image to infer on..model_id(roboflow_model_id): Roboflow model identifier..confidence(float_zero_to_one): Confidence threshold for predictions..disable_active_learning(boolean): Boolean flag to disable project-level active learning for this block..active_learning_target_dataset(roboflow_project): Target dataset for active learning, if enabled..
-
output
predictions(classification_prediction): Predictions from classifier.inference_id(inference_id): Inference identifier.model_id(roboflow_model_id): Roboflow model id.
Example JSON definition of step Single-Label Classification Model in version v2
{
"name": "<your_step_name_here>",
"type": "roboflow_core/roboflow_classification_model@v2",
"images": "$inputs.image",
"model_id": "my_project/3",
"confidence": 0.3,
"disable_active_learning": true,
"active_learning_target_dataset": "my_project"
}
v1¶
Class: RoboflowClassificationModelBlockV1 (there are multiple versions of this block)
Warning: This block has multiple versions. Please refer to the specific version for details. You can learn more about how versions work here: Versioning
Run inference on a multi-class classification model hosted on or uploaded to Roboflow.
You can query any model that is private to your account, or any public model available on Roboflow Universe.
You will need to set your Roboflow API key in your Inference environment to use this block. To learn more about setting your Roboflow API key, refer to the Inference documentation.
Type identifier¶
Use the following identifier in step "type" field: roboflow_core/roboflow_classification_model@v1to add the block as
as step in your workflow.
Properties¶
| Name | Type | Description | Refs |
|---|---|---|---|
name |
str |
Enter a unique identifier for this step.. | ❌ |
model_id |
str |
Roboflow model identifier.. | ✅ |
confidence |
float |
Confidence threshold for predictions.. | ✅ |
disable_active_learning |
bool |
Boolean flag to disable project-level active learning for this block.. | ✅ |
active_learning_target_dataset |
str |
Target dataset for active learning, if enabled.. | ✅ |
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 Single-Label Classification Model in version v1.
- inputs:
Stitch Images,Image Threshold,Email Notification,Corner Visualization,Image Blur,Ellipse Visualization,Roboflow Dataset Upload,Depth Estimation,Absolute Static Crop,Multi-Label Classification Model,JSON Parser,Stability AI Image Generation,Grid Visualization,Dynamic Crop,Image Slicer,Image Preprocessing,Relative Static Crop,SIFT,Morphological Transformation,Line Counter Visualization,Trace Visualization,Halo Visualization,Dot Visualization,Model Monitoring Inference Aggregator,Keypoint Detection Model,Roboflow Custom Metadata,Pixelate Visualization,Circle Visualization,Image Convert Grayscale,Icon Visualization,QR Code Generator,Semantic Segmentation Model,S3 Sink,Twilio SMS Notification,Halo Visualization,Camera Focus,SIFT Comparison,Polygon Visualization,Text Display,Detections Consensus,Reference Path Visualization,Instance Segmentation Model,Identify Changes,Crop Visualization,Roboflow Dataset Upload,Mask Visualization,Heatmap Visualization,Webhook Sink,Label Visualization,Classification Label Visualization,VLM As Detector,Polygon Zone Visualization,Stability AI Inpainting,VLM As Classifier,Perspective Correction,Camera Calibration,VLM As Detector,PTZ Tracking (ONVIF),Background Color Visualization,Email Notification,Background Subtraction,Contrast Equalization,SIFT Comparison,Keypoint Visualization,Single-Label Classification Model,Identify Outliers,Color Visualization,Motion Detection,Dynamic Zone,Object Detection Model,Roboflow Vision Events,Local File Sink,VLM As Classifier,Twilio SMS/MMS Notification,Triangle Visualization,Clip Comparison,Blur Visualization,Bounding Box Visualization,Camera Focus,Polygon Visualization,Image Slicer,Image Contours,Model Comparison Visualization,Stability AI Outpainting,Slack Notification - outputs:
Image Threshold,Email Notification,Corner Visualization,Image Blur,Ellipse Visualization,OpenAI,Roboflow Dataset Upload,Time in Zone,Stitch OCR Detections,Depth Estimation,CogVLM,Google Gemini,Stability AI Image Generation,Time in Zone,Dynamic Crop,Instance Segmentation Model,Image Preprocessing,Morphological Transformation,Line Counter Visualization,Trace Visualization,LMM For Classification,Halo Visualization,Dot Visualization,GLM-OCR,Model Monitoring Inference Aggregator,Roboflow Custom Metadata,Cache Get,Pixel Color Count,Circle Visualization,Icon Visualization,QR Code Generator,S3 Sink,Detections Classes Replacement,Twilio SMS Notification,Halo Visualization,Anthropic Claude,SAM 3,Polygon Visualization,Text Display,Reference Path Visualization,Instance Segmentation Model,Llama 3.2 Vision,Roboflow Dataset Upload,Crop Visualization,Mask Visualization,CLIP Embedding Model,Heatmap Visualization,Webhook Sink,Cache Set,Classification Label Visualization,Google Vision OCR,Label Visualization,Florence-2 Model,Segment Anything 2 Model,Florence-2 Model,Polygon Zone Visualization,Stability AI Inpainting,Google Gemini,SAM 3,Perspective Correction,Anthropic Claude,OpenAI,Distance Measurement,OpenAI,PTZ Tracking (ONVIF),Background Color Visualization,Anthropic Claude,Size Measurement,Email Notification,SIFT Comparison,Contrast Equalization,Keypoint Visualization,Time in Zone,Line Counter,Path Deviation,Stitch OCR Detections,LMM,Perception Encoder Embedding Model,Line Counter,SAM 3,Seg Preview,Color Visualization,OpenAI,Roboflow Vision Events,Local File Sink,Detections Stitch,Twilio SMS/MMS Notification,YOLO-World Model,Triangle Visualization,Clip Comparison,Bounding Box Visualization,Polygon Visualization,Google Gemini,Path Deviation,Moondream2,Model Comparison Visualization,Stability AI Outpainting,Slack Notification
Input and Output Bindings¶
The available connections depend on its binding kinds. Check what binding kinds
Single-Label Classification Model in version v1 has.
Bindings
-
input
images(image): The image to infer on..model_id(roboflow_model_id): Roboflow model identifier..confidence(float_zero_to_one): Confidence threshold for predictions..disable_active_learning(boolean): Boolean flag to disable project-level active learning for this block..active_learning_target_dataset(roboflow_project): Target dataset for active learning, if enabled..
-
output
predictions(classification_prediction): Predictions from classifier.inference_id(string): String value.
Example JSON definition of step Single-Label Classification Model in version v1
{
"name": "<your_step_name_here>",
"type": "roboflow_core/roboflow_classification_model@v1",
"images": "$inputs.image",
"model_id": "my_project/3",
"confidence": 0.3,
"disable_active_learning": true,
"active_learning_target_dataset": "my_project"
}