Skip to main content

Large REST responses

If your deployment returns large REST responses you can use the links response format. The links response format temporarily stores the results of your inference request in S3 and returns a link to the results in the REST response.

Calling a deployment with the links response format requires adding response_format: "links" as a sibling to the data parameter:

curl -s -XPOST "https://<your-workspace-url>/v1/my_deployment/latest" -d '{"data": ..., "response_format": "links"}'

These requests will return links to the results:

{
"data": "https://.../abc123.json?..."
}

The URLs returned are signed and expire after 1 hour.