Roboflow Docs
DashboardResourcesProducts
  • Documentation
  • Developer Reference
  • Changelog
  • Developer Tools
  • Authentication
  • Command Line Interface (CLI)
    • Using the CLI
    • Installation and Authentication
    • Download dataset
    • Upload Dataset
    • Run inference
    • Getting help
  • REST API
    • REST API Structure
    • Workspace and Project IDs
    • Workspaces
  • Workspace Image Query
  • Projects
    • Initialize
    • Project Folders API
    • Create
  • Batches
  • Annotation Jobs
  • Images
    • Upload Images
    • Image Details
    • Upload Dataset
    • Upload an Annotation
    • Search
    • Tags
  • Versions
    • Create a Project Version
    • View a Version
  • Train a Model
  • Export Data
  • Inference
  • Annotation Insights
    • Annotation Insights (Legacy Endpoint)
  • Model Monitoring
    • Stats
    • Custom Metadata
  • Python SDK
    • Using the Python SDK
  • iOS SDK
    • Using the iOS SDK
Powered by GitBook
On this page
  • Inference via Python SDK (roboflow package) – Deprecated
  • What's Changed?
  • Use These Instead
  • Why Deprecate the Python SDK Inference Method?
  • Need Help Migrating?

Was this helpful?

Inference

PreviousExport DataNextAnnotation Insights

Was this helpful?

Inference via Python SDK (roboflow package) – Deprecated

⚠️ Deprecated Running inference using the roboflow Python SDK was deprecated. This method is no longer actively maintained, and we recommend migrating to the new Inference SDK and Serverless Hosted APIs for all current and future projects.


What's Changed?

Roboflow has introduced more powerful and flexible inference options, including:

  • ✅ Native support for all models

  • ✅ Access to foundation models (YOLO-World, CLIP, OCR, SAM, Florence2, etc.)

  • ✅ Improved performance and latency using GPU-accelerated infrastructure

  • ✅ A simplified and unified inference endpoint


Use These Instead

🧠

Use this package for running inference across a wide range of model types, with local and hosted backends supported out-of-the-box. It supports modern use cases like versionless models and foundation models.

👉 Explore:


☁️

A GPU-accelerated cloud API with unified endpoints for all tasks. Offers lower latency for inference requests and support for powerful models such as Florence2 and SAM2.


If you're using older models or workflows, the original serverless API is still available. This includes individual endpoints for object detection, classification, segmentation, and more.


Why Deprecate the Python SDK Inference Method?

While the roboflow Python SDK remains useful for other interactions (e.g., uploading data, managing datasets), its inference capabilities have been replaced by more efficient and modern solutions:

  • It does not support all models (models uploaded without dataset version, Roboflow Instant)

  • It offers limited access to newer model types

  • It lacks performance improvements found in GPU-accelerated APIs

  • It is not compatible with newer deployment workflows


Need Help Migrating?

If you're using the legacy SDK for inference and want help transitioning to the new tools, check out our guides at:

🔗 Learn more:

🌐

🔗 Learn more:

🔧

📘

New Inference SDK
https://inference.roboflow.com
Serverless Hosted API V2
Serverless Hosted API V2 Documentation
Serverless API
Serverless Hosted API (V1)
https://inference.roboflow.com
Roboflow Documentation