Jan 17, 2026, 05:33 AM
51s
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("kun-cai/quizzical-dove/exp-3")
# 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