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

Deploy a Workflow

Choose Cloud Streaming for managed live cameras, the Cloud API for requests, Batch Processing for stored data, or your own runtime.

Choose how to run your Workflow based on the input and how long processing should continue.

Option
Best for

Live cameras on managed cloud compute, with source setup, previews, continuous deployments, and explicit stop controls.

HTTP API

Individual image requests to a hosted or self-hosted endpoint.

A private cloud runtime provisioned for your use.

Webcams, network cameras, or files processed on your own Inference Server.

Finite asynchronous jobs over stored images and videos.

Images, directories, or video files from a command line.

Inference Python package

The Execution Engine inside your application without an HTTP hop.

If you run your Workflow on your own hardware, you can run it on both images and video files (including streams from regular webcams and professional CCTV cameras).

By choosing on-premises deployment, you can run Workflows on any system where you can deploy Inference. This includes:

  • NVIDIA Jetson

  • AWS EC2, GCP Cloud Engine, and Azure Virtual Machines

  • Raspberry Pi

Roboflow Enterprise customers have access to additional video stream options, such as running inference on Basler cameras. To learn more about our offerings, contact the Roboflow sales team.

Deploy a Workflow

Click "Deploy" in the Workflow editor to choose a deployment path. Select "Cloud Streaming" for a connected live source, or use the relevant API or self-hosted instructions below.

The code snippets in your Workflows editor will be pre-filled with your Workflows URL and API key.

Snippets match the runtime your editor is running on. If you switch the editor to a local Inference server or a Dedicated Deployment, the api_url in each snippet points at that server, and the matching tab is marked as recommended. Snippets also fill in an example image from your saved Workflow preview when there is one.

To learn more about usage limits for Workflows, refer to the Roboflow pricing page.

Process Images

You can run your Workflow on single images using the Roboflow API or local Inference server.

First, install the Roboflow Inference SDK:

If you run locally, follow the official Docker installation instructions to install Docker on your machine and start Inference server:

Then, create a new Python file and add the following code:

Above, replace API_KEY with your Roboflow API key. Replace workspace-name and workflow-id with your Roboflow workspace name and Workflow IDs.

To find these values, open your Roboflow Workflow and click "Deploy Workflow". Then, copy your workspace name and workflow ID from the code snippet that appears on the page.

Local execution works on CPU and NVIDIA CUDA GPU devices. For the best performance, deploy on a GPU-enabled device such as an NVIDIA Jetson or a cloud server with an NVIDIA GPU.

If you prefer to call the endpoint directly, from any language, send an HTTP request:

Sending the key as an ?api_key= query parameter or api_key body field is the legacy channel. It still works, but the Authorization: Bearer header keeps your key out of URLs and logs. See Authenticate with the REST API.

The keys of the inputs object are dictated by your Workflow, so the names differ depending on the inputs you defined. Inputs declared as WorkflowImage take an object with type and value keys; over HTTP the supported type values are url and base64.

The examples above run a Workflow that is saved on the Roboflow platform. You can also send a full Workflow definition with the request, which is useful for Workflows built from scratch that do not use API-key gated blocks. See the Inference SDK for the specification argument.

Process a video stream

For managed live cameras, use Cloud Streaming. Click "Deploy", then "Cloud Streaming", select a source, review its Workflow inputs and processing estimate, then start processing. Follow the quickstart to connect a camera, see results, and explicitly stop the run.

The editor's "Run" action can preview a draft beside a deployment. Promoting an eligible preview preserves its exact running snapshot and disabled sinks without publishing or restarting. See Workflow lifecycle before applying edits to a continuous run.

For video on your own Inference Server, the Inference SDK WebRTC client remains available:

Start the self-hosted Inference Server first and replace the workspace, Workflow, and API-key values. See Video processing with Workflows for other source types and output handling. This WebRTC client is not the Cloud Streaming source and job API.

Process Batches of Data

You can efficiently process entire batches of data - directories of images and video files - using the Roboflow Batch Processing service. This fully managed solution requires no coding or local computation. Simply select your data and Workflow, and let Roboflow handle the rest.

We support both UI, CLI and REST API interactions with Batch Processing. Below, we present CLI commands. Discover all options.

To run the processing, install Inference CLI:

Then you can ingest your data:

When data are loaded, start the processing job:

Progress of the job can be displayed using:

And when the job is done, export the results:

Process a Local Directory with the CLI

For data that already sits on the machine you are running from, inference-cli can run a Workflow over individual images, a directory of images, or a video file without any code:

In the output directory you will find one sub-directory per input file, each containing a results.json file with that file's Workflow results plus any images produced during execution, and an aggregated_results.csv file with the results for every input concatenated together.

See the Inference CLI reference for all options.

Next steps

  • Run the Execution Engine directly inside your own Python application: see the Developer Guide.

  • Understand the shape of the results a Workflow returns: see Workflow execution.

Last updated

Was this helpful?