Sieve has many functions available to reference in your code out of the box. Instead of rewriting the code for popular models and building blocks, you can use shared functions in a few lines.

There’s a few ways to run a public function, each of which is outlined on the function’s usage guide.

Here’s a couple examples of running the public sieve/autocrop function:

Make sure you replace your API key with the key from your settings
curl "https://mango.sievedata.com/v2/push" \
    -X POST \
    -H "Content-Type: application/json" \
    -H 'X-API-Key: <your-api-key>' \
    -d '{
        "function": "sieve/autocrop",
        "inputs": {
            "file": {
                "url": "https://storage.googleapis.com/sieve-prod-us-central1-public-file-upload-bucket/a3db863d-aaff-4243-9cd2-846bc9a64925/8888b955-21e9-4e59-b285-bf07437f76b9-input-file.mp4"
            }
        }
    }'

You should now see your job running in the dashboard where you can visualize outputs. You can also get job outputs via the API.