For AI agents: the complete documentation index is at llms.txt. Remove the trailing slash from a page URL and append .md to read its Markdown version. For the docs home, use index.md.

Roboflow Integration

The Roboflow Integration allows your app to use Roboflow to run and deploy computer vision models without complex infrastructure. Once connected, you can use Roboflow to power image detection, object tracking, classification, and segmentation workflows.

What You Can Do

With Roboflow, your app can:

  • Run pre-trained computer vision models for detection, classification, or segmentation.
  • Deploy and use custom-trained models built in Roboflow.
  • Automate workflows that rely on visual inputs — e.g., quality checks, object detection, image analysis.
  • Process images sent from your app on demand.
  • Combine vision outputs with other integrations (e.g., AI reasoning, automation flows).

Step 1: Obtain a Roboflow API Key

  1. Go to your Roboflow API settings.
  2. Under API Keys, copy your Private API Key. The Workspace ID on the same page is your WORKSPACE_NAME.

Documentation image

💡 Don't use the Publishable Key (rf_...). It can only run inference from browser code and won't work here.

Step 2: Set up your Model in Roboflow

  1. Go to Workflows and click Create a Workflow.
  2. Set up the workflow you want to use in your app, ensuring that it takes an image as input.
  3. Save and publish the workflow, then click Use at the top of the workflow editor and choose the hosted API option.
  4. Copy the workspace_name and workflow_id from the provided code snippet.

Documentation image

Step 3: Configure the Integration in Your App

  1. In Reflex Build, open the Integrations tab and select the Roboflow card.
  2. Click Add connection and fill in ROBOFLOW_API_KEY, WORKSPACE_NAME, and WORKFLOW_ID.
  3. Click Connect to save the connection.

Once connected, your app can call Roboflow models directly from workflows, UI actions, or automated triggers.

Step 4: Notes

  • Keep your key secure: Never expose your Roboflow key in client-side code.
  • Use environment-specific keys: Separate dev, staging, and production keys to control access.
  • Model flexibility: Use community models or your own custom-trained models.
  • Image-based vision: Ideal for applications involving photo uploads, inspection, or visual AI on still images.