Jan 16, 2026, 08:54 PM
43s
First, set your API key as an environment variable to authenticate with Ultralytics Platform:
export ULTRALYTICS_API_KEY=your_api_key_herefrom ultralytics import YOLO
# Load your trained model from Ultralytics Platform
model = YOLO("glenn-jocher/blissful-lemur/exp-2")
# Run inference on an image
results = model("path/to/image.jpg")
# Process results
for result in results:
boxes = result.boxes # Bounding boxes
result.show() # Display annotated image