Download a pack's output
GET https://weights.fyi/run/v1/streams/{stage_id}/packs/{pack_id}/output?part=data
Authorization: Bearer <token> scope: read
Range: bytes=<first>-<last> optional- Available since
- 2026-11-01: included in this build; see What is live for deployment status.
- Answer time
- synchronous: the bytes stream as they are read from storage, so the time is mostly the time your connection takes to carry them.
Read a completed pack's output, or its manifest, with your API key alone. No storage credential is needed: the service streams the object from your workspace's custody with a known Content-Length, so a cut download is seen short and resumed with Range.
One Range span answers 206 with Content-Range. Compare each answer's ETag with the first, as the SDK does, so a resumed download never joins two different objects. X-Weights-Output-SHA256 carries the receipt's digest of the data part, to check the whole download against. HEAD answers the same headers without the body.
Request
| Name | Where | Required | Meaning |
|---|---|---|---|
Authorization | header | yes | Bearer token with read scope. |
stage_id | path | yes | Plan-qualified stream ID, or the authored stage ID with plan_id. |
pack_id | path | yes | A completed pack. |
plan_id | query | no | The plan, when stage_id is the authored stage ID. |
part | query | no | data (default) or manifest. |
Range | header | no | One span: bytes=first-last, bytes=first- or bytes=-n. |
Return value
200 OK with the whole object, or 206 Partial Content with one span. Headers: Content-Length, Accept-Ranges: bytes, ETag, Content-Disposition, Content-Range on 206, and X-Weights-Output-SHA256 for the data part when the receipt has its digest. The content type is application/zstd, application/x-ndjson or application/octet-stream for data and application/json for the manifest.
Errors
| Status | Code | Meaning |
|---|---|---|
400 | invalid_compute_plan, invalid_range | A bad part, query value or Range. |
401 | unauthorized | Supply a valid token. |
403 | scope_required, compute_tenancy_unauthorized | Read access is unavailable. |
403 | output_outside_custody | The receipt names an object outside your workspace's custody. |
404 | compute_stage_not_found, compute_pack_not_found | Absent or inaccessible work. |
404 | output_not_found, output_manifest_not_found | The output or its manifest is not stored. |
409 | pack_not_completed | The pack has not completed; state gives its state. |
416 | range_not_satisfiable | The span starts past the end; Content-Range gives the size. |
502 | invalid_output_uri, storage_unavailable | The receipt or storage could not be read. |
503 | stream_store_not_configured | Output reads are not switched on for this service. |
Examples
curl -s -o pack-0001.out.jsonl.zst "https://weights.fyi/run/v1/streams/STREAM_ID/packs/PACK_ID/output?part=data" -H "Authorization: Bearer $WEIGHTS_API_KEY"History
- 2026-11-01: added output and manifest reads with ranges.
See also
See list completed outputs, upload a pack and read one pack.