Getting a Results Download URL
Batch API
Getting a Results Download URL
Materialize a cached unified results artifact in R2 and return presigned GET/HEAD URLs
GET
Getting a Results Download URL
This endpoint creates (or reuses) one unified results artifact for a job in object storage (R2) and returns presigned URLs you can use to download it.
This route is built for large results and “real download tooling”:
- Use
urls.headto fetch metadata (Content-Length,ETag) without downloading the file. - Use
urls.getto download the artifact, including HTTP Range requests for resumable downloads.
Once you have the presigned URLs, do not send your Sutro
Authorization header to R2.
The presigned URL already contains the credentials.Path Parameters
The job_id returned when you submitted the batch inference job.
Query Parameters
The artifact format.Currently supported values:
parquet(only)
Whether to include the input prompts as columns in the unified artifact.
Whether to include cumulative log probabilities in the unified artifact.
TTL for the returned presigned URLs.
- Minimum: 1
- Maximum: 604800 (7 days)
Headers
Your Sutro API key using Key authentication scheme.Format:
Key YOUR_API_KEYExample: Authorization: Key sk_live_abc123...Response
Returns a JSON payload that describes the artifact and provides method-specific presigned URLs.The job ID you requested.
The artifact format (currently
parquet).Echoes whether inputs were included in the artifact.
Echoes whether cumulative logprobs were included in the artifact.
TTL (in seconds) for the returned presigned URLs.
Metadata describing the stored object (bucket/key/filename/size).
Presigned URLs:
urls.get— use with GET (supportsRangerequests)urls.head— use with HEAD (metadata only)
Download behavior
HEAD (metadata)
Useurls.head with the HEAD method to read headers like:
Content-Length— total bytesETag— object hash identifier (useful to detect changes)
GET (download)
Useurls.get with GET to download:
- Supports
Range: bytes=...for partial reads - Enables resumable downloads (append remaining bytes)
Code Examples
Notes
- Only
format=parquetis supported on this route today.