Instance Segmentation
Run inference on instance classification models hosted on Roboflow.
base64 YOUR_IMAGE.jpg | curl -d @- \
"https://serverless.roboflow.com/your-model/42?api_key=YOUR_KEY"curl -X POST "https://serverless.roboflow.com/your-model/42?\
api_key=YOUR_KEY&\
image=https%3A%2F%2Fi.imgur.com%2FPEEvqPN.png"from inference_sdk import InferenceHTTPClient
CLIENT = InferenceHTTPClient(
api_url="https://serverless.roboflow.com",
api_key="API_KEY"
)
result = CLIENT.infer(your_image.jpg, model_id="football-pitch-segmentation/1")
Response Object Format
API Reference
Using the Inference API
Path Parameters
Name
Type
Description
Query Parameters
Name
Type
Description
Request Body
Name
Type
Description
Last updated
Was this helpful?