Documentation
Compute plans and streams
View .mdOpenAPI

Download a pack's output

GEThttps://weights.fyi/run/v1/streams/{stage_id}/packs/{pack_id}/outputscope: read
text
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

NameWhereRequiredMeaning
AuthorizationheaderyesBearer token with read scope.
stage_idpathyesPlan-qualified stream ID, or the authored stage ID with plan_id.
pack_idpathyesA completed pack.
plan_idquerynoThe plan, when stage_id is the authored stage ID.
partquerynodata (default) or manifest.
RangeheadernoOne 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

StatusCodeMeaning
400invalid_compute_plan, invalid_rangeA bad part, query value or Range.
401unauthorizedSupply a valid token.
403scope_required, compute_tenancy_unauthorizedRead access is unavailable.
403output_outside_custodyThe receipt names an object outside your workspace's custody.
404compute_stage_not_found, compute_pack_not_foundAbsent or inaccessible work.
404output_not_found, output_manifest_not_foundThe output or its manifest is not stored.
409pack_not_completedThe pack has not completed; state gives its state.
416range_not_satisfiableThe span starts past the end; Content-Range gives the size.
502invalid_output_uri, storage_unavailableThe receipt or storage could not be read.
503stream_store_not_configuredOutput reads are not switched on for this service.

Examples

sh
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.