Jan 17, 2026, 12:28 PM
3m 26s
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-10")
# 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