API Reference
The Video Inference API can be used through the Roboflow Python SDK and through a REST API.
Base URL
The API uses the following URL:
API Methods
We highly recommend accessing video inference via the roboflow Pip package. The raw Video Inference API at https://api.roboflow.com has three methods:
METHOD | DESCRIPTION |
---|---|
POST /video_upload_signed_url/?api_key={{WORKSPACE_API_KEY}} | This endpoint returns a signed URL where a user can upload video. The endpoint accepts a JSON input with the filename, like so A signed URL is returned (You can then use your favorite upload program (like curl) to POST your video file to the signed URL.) |
POST /videoinfer/?api_key={{WORKSPACE_API_KEY}} | The endpoint accepts a json input to schedule a video inference job for processing. Note that the INPUT_URL can be any publicly available URL, you don't need to first create a signed URL and then upload a video to Roboflow. An example showing the body of the request is shown below: The response is a JSON string, like so
You can specify multiple models in the |
GET /videoinfer/?api_key={{WORKSPACE_API_KEY}}&job_id={{JOB_ID}} | This endpoint returns the current status of the job. This endpoint is rate-limited, please don't poll this endpoint more than once per minute.
When the job is successful, the returned JSON's |
Once you have downloaded the JSON file stored from the output_signed_url
location, you can parse it to obtain inference information. The format of the json file is described here.
Last updated