LogoLogo
AI HubCommunityWebsite
  • Start Here
  • AI Hub
    • Overview
    • Quickstart
    • Teams
    • Device Farm
    • Browser Inference
    • Model Zoo
      • Hailo
      • Intel
      • MemryX
      • BrainChip
      • Google
      • DeGirum
      • Rockchip
    • View and Create Model Zoos
    • Model Compiler
    • PySDK Integration
  • PySDK
    • Overview
    • Quickstart
    • Installation
    • Runtimes and Drivers
      • Hailo
      • OpenVINO
      • MemryX
      • BrainChip
      • Rockchip
      • ONNX
    • PySDK User Guide
      • Core Concepts
      • Organizing Models
      • Setting Up an AI Server
      • Loading an AI Model
      • Running AI Model Inference
      • Model JSON Structure
      • Command Line Interface
      • API Reference Guide
        • PySDK Package
        • Model Module
        • Zoo Manager Module
        • Postprocessor Module
        • AI Server Module
        • Miscellaneous Modules
      • Older PySDK User Guides
        • PySDK 0.16.0
        • PySDK 0.15.2
        • PySDK 0.15.1
        • PySDK 0.15.0
        • PySDK 0.14.3
        • PySDK 0.14.2
        • PySDK 0.14.1
        • PySDK 0.14.0
        • PySDK 0.13.4
        • PySDK 0.13.3
        • PySDK 0.13.2
        • PySDK 0.13.1
        • PySDK 0.13.0
    • Release Notes
      • Retired Versions
    • EULA
  • DeGirum Tools
    • Overview
      • Streams
        • Streams Base
        • Streams Gizmos
      • Compound Models
      • Result Analyzer Base
      • Inference Support
  • DeGirumJS
    • Overview
    • Get Started
    • Understanding Results
    • Release Notes
    • API Reference Guides
      • DeGirumJS 0.1.3
      • DeGirumJS 0.1.2
      • DeGirumJS 0.1.1
      • DeGirumJS 0.1.0
      • DeGirumJS 0.0.9
      • DeGirumJS 0.0.8
      • DeGirumJS 0.0.7
      • DeGirumJS 0.0.6
      • DeGirumJS 0.0.5
      • DeGirumJS 0.0.4
      • DeGirumJS 0.0.3
      • DeGirumJS 0.0.2
      • DeGirumJS 0.0.1
  • Orca
    • Overview
    • Benchmarks
    • Unboxing and Installation
    • M.2 Setup
    • USB Setup
    • Thermal Management
    • Tools
  • Resources
    • External Links
Powered by GitBook

Get Started

  • AI Hub Quickstart
  • PySDK Quickstart
  • PySDK in Colab

Resources

  • AI Hub
  • Community
  • DeGirum Website

Social

  • LinkedIn
  • YouTube

Legal

  • PySDK EULA
  • Terms of Service
  • Privacy Policy

© 2025 DeGirum Corp.

On this page

Was this helpful?

  1. AI Hub

PySDK Integration

Integrate DeGirum PySDK with AI Hub to produce compact, efficient code that taps into powerful cloud-hosted inference and diverse hardware resources.

DeGirum PySDK features integrations with AI Hub that enable producing compact, easy-to-understand code. Whenever you write code with PySDK, the inference_host_address indicates where inference will be performed. Setting inference_host_address to "@cloud" connects your inference request to DeGirum’s cloud-hosted hardware, eliminating the need for local setup.

Example Code

The following code demonstrates all you need to connect to the remote device farm and run inference on a file you have locally.

import degirum as dg

# Connect to the AI Hub
inference_manager = dg.connect(
    inference_host_address = "@cloud",
    zoo_url = "degirum/degirum",
    token = "<your_token>"
)

# Load a model. In this case, an image detection model from degirum/degirum.
model = inference_manager.load_model("yolov8n_relu6_coco--640x640_quant_n2x_orca1_1")

# Run inference on an image
result = model("<your_image>")

# Print raw results
print(result)

Make sure you generate an access token. You cannot access the device farm or model zoo without an access token.

PreviousModel CompilerNextOverview

Last updated 2 months ago

Was this helpful?

For our AI Hub's integrations with PySDK, you need to generate an access token.

1

In the navigation bar, click Tokens.

2

Click Generate New Token.

3

Provide a name for the token and optionally set an expiration date.

4

Set this token as an environment variable on your system. It'll give you access to the AI Hub whenever using @cloud.

Prevent abuse of your access token by keeping it private.