Quickstart
Install, authenticate, and run your first inference in under five minutes.
Last updated
Was this helpful?
Was this helpful?
import roboflow
rf = roboflow.Roboflow() # picks up ROBOFLOW_API_KEY
project = rf.workspace("roboflow-100").project("poker-cards-cxcvz")
model = project.version(1).model
predictions = model.predict("my-image.jpg", confidence=50, overlap=30).json()
print(predictions)curl -F "file=@my-image.jpg" \
"https://serverless.roboflow.com/infer/workflows/roboflow-100/poker-cards-cxcvz/1?api_key=$ROBOFLOW_API_KEY"