For the complete documentation index, see llms.txt. This page is also available as Markdown.

Model Monitoring

A guide to Model Monitoring with Roboflow.

About

Roboflow's Model Monitoring dashboard shows how your models perform, from prototyping through production. You can view high-level statistics over time, or open individual inference requests to see how your models handle edge cases.

Model Monitoring will be deprecated and replaced by Vision Events. See Vision Events documentation for additional information.

Model Monitoring records inference requests made with Roboflow's Cloud API or the Roboflow Inference Server, as long as the Inference Server has internet access. This includes edge deployments that use Roboflow's License Server.

You can attach custom metadata to an inference (ex: where the image was taken, or the expected prediction) and pull Model Monitoring statistics into other systems. Both use the HTTP API.

You and your team can subscribe to email alerts when something goes wrong (ex: your model's confidence suddenly drops, or your Inference Server goes down and your model stops running).

Alerting

Inference Images

Model Monitoring does not save inference images by default. There are two ways to save them:

  • Roboflow Dataset Upload block: in a Workflow, add a "Roboflow Dataset Upload" block and connect the predictions and the prediction image.

  • Active Learning: configure Active Learning rules in your Project to collect production inference images automatically.

Images saved by Active Learning or Dataset Upload count the same as uploading an image to your project. Credit, limit or quota usage may apply according to your plan type.

Web App

Open the "Models" dropdown in your Workspace navigation and select "Model Monitoring".

The dashboard shows total requests, average confidence, and average inference time across all models. Inference time includes image preprocessing. Each % change compares the selected time range with the period before it. The default range is the last week.

The Models table lists every model that has inferences. Click a model to see the same statistics for that model, plus the number of detections per class. Other tabs show recent inferences across all models and your alerts.

Click "See All Inferences" to open the Inferences table, which also shows any custom metadata on each inference.

Click an inference to see its image, request details, and detections. The image appears only if you save inference images. Fields you hide in the details panel stay hidden in that browser.

HTTP API

Get Inference Statistics

Get inference counts, confidence, and inference time for your Workspace's models over a time range, with the same numbers for the period of the same length before it. This is the data behind the dashboard's totals and % changes. It is available on Enterprise plans, and each API key can make 50 requests per minute.

Get inference usage statistics

get

Get inference counts, confidence, and inference time for the Workspace's models, with the same numbers for the period of the same length before. Available on Enterprise plans. Requires workspace-stats:read. Each API key can make 50 requests per minute.

Authorizations
AuthorizationstringRequired

Roboflow API key or OAuth access token.

Path parameters
workspacestringRequired

Workspace URL slug.

Query parameters
startTimestringOptional

Start of the time range in UTC (ex: 2026-10-01 00:00:00). Defaults to 24 hours before the request.

Example: 2026-10-01 00:00:00
endTimestringOptional

End of the time range in UTC. Defaults to the time of the request.

Example: 2026-10-08 00:00:00
modelNamesstringOptional

Comma-separated model IDs without versions. Omit to include every model.

Example: license-plate-detector,truck-detector
Responses
200

Successful response.

application/json

Totals across the selected models, then one row per model and predicted class. A null value means there were no inferences for it in that period.

num_inferencesinteger · nullableOptional

Inferences in the time range.

prev_num_inferencesinteger · nullableOptional

Inferences in the period of the same length before the time range.

num_errorsinteger · nullableOptional

Failed inferences in the time range.

prev_num_errorsinteger · nullableOptional

Failed inferences in the previous period.

avg_confidencenumber · nullableOptional

Average prediction confidence, from 0 to 1.

prev_avg_confidencenumber · nullableOptional

Average prediction confidence in the previous period.

avg_response_timenumber · nullableOptional

Average inference time in seconds, including image preprocessing.

prev_avg_response_timenumber · nullableOptional

Average inference time in seconds in the previous period.

Other propertiesanyOptional
get/{workspace}/inference-stats
GET /{workspace}/inference-stats HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "num_inferences": 120,
  "prev_num_inferences": 290,
  "num_errors": 0,
  "prev_num_errors": 0,
  "avg_confidence": 0.925,
  "prev_avg_confidence": 0.861,
  "avg_response_time": 0.165,
  "prev_avg_response_time": 0.044,
  "inference_stats": [
    {
      "model_name": "cards-3z9gn",
      "predicted_class": "Playingcards",
      "num_inferences": 106,
      "prev_num_inferences": 190,
      "num_errors": null,
      "prev_num_errors": null,
      "avg_confidence": 0.931,
      "prev_avg_confidence": 0.936,
      "avg_response_time": 0.177,
      "prev_avg_response_time": 0.055,
      "median_confidence": 0.927,
      "class_count": 211,
      "deployment_types": "hosted",
      "inference_server_versions": "0.15.3,0.16.0",
      "model_num_inferences": 107,
      "prev_model_num_inferences": 190
    }
  ]
}

Attach Metadata to an Inference

Serverless and Inference Server responses include an inference_id. Send it with a field name and value to attach metadata you can filter and group by in the dashboard (ex: the camera location or production line). Field names are case-sensitive, so keep their spelling consistent.

Attach metadata to inference records

post

Attach custom metadata to inferences so you can filter and group them in Model Monitoring. Requires model:infer.

Authorizations
AuthorizationstringRequired

Roboflow API key or OAuth access token.

Path parameters
workspacestringRequired

Workspace URL slug.

Body
Responses
200

Successful response.

application/json
statusstring · enumOptional

Present when the metadata was saved.

Possible values:
errorstringOptional

Present instead of status when the metadata could not be saved. The status code is still 200.

post/{workspace}/inference-stats/metadata
POST /{workspace}/inference-stats/metadata HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 234

{
  "data": [
    {
      "inference_ids": [
        "a12a19a9-a933-44c9-970c-a55ea03bb453"
      ],
      "field_name": "camera_location",
      "field_value": "canada"
    },
    {
      "inference_ids": [
        "accf0af9-bdf0-4b22-8106-6988d4cada5a"
      ],
      "field_name": "camera_location",
      "field_value": "emea"
    }
  ]
}
{
  "status": "ok"
}

This example runs an inference on Serverless and attaches a location to it:

Last updated

Was this helpful?