> ## Documentation Index
> Fetch the complete documentation index at: https://weights.fyi/run/llms.txt

# GET /v1/compute/capabilities

```text
GET https://weights.fyi/run/v1/compute/capabilities
Authorization: Bearer <token>                    scope: read
```

**Available since:** 2026-10-28: included in this build; see [What is live](/run/docs/what-is-live.md) for deployment status.

**Answer time:** synchronous: the answer is fixed in the service's code and reads nothing that can wait.

Describes accepted source pointers, format metadata and executable worker support. The reader names are ecosystem examples; they do not mean that those libraries are installed in the bundled runtime. `dataset_protocols` has one entry per URI scheme: the forms it takes, how a URI must be pinned, the readers that open it, and whether a byte range of it can be read alone. `data_formats` has one entry per format: its file extensions, its media type, its kind and the readers that open it.

A [ComputePlan](/run/docs/reference/compute-plans-create.md) names data in `workload.mounts`, each with `source_uri`, optional `sha256`, `byte_range`, `format`, `mount_path`, and `hydration` of `jit` (read when needed) or `prestage` (requires prior preparation). Its [stream packs](/run/docs/reference/streams-packs-create.md) can name a source with `byte_range: [start, end]` and `sha256`. The end is exclusive; a seekable Zstandard pack is one range of a larger `.zst` file. Classification jobs take pages in the call; training jobs read a [dataset](/run/docs/reference/datasets-create.md).

## Request

| Name | Where | Required | Meaning |
|---|---|---|---|
| `Authorization` | header | yes | `Bearer` and your token, with the `read` scope. |

## Return value

**200 OK** with one object:

| Field | Meaning |
|---|---|
| `schema` | The answer's shape, `weights.compute-capabilities/v1`. |
| `dataset_protocols` | One entry per scheme, below: `uri_pattern` (its main form), `uri_patterns` (every form), `pinning`, `native_readers`, `supports_byte_range` (`false` for OCI) and `hydration_modes` (`jit`, `prestage`; OCI is `prestage` only). Also `runtime_transport`: `configured_custody_store` for `s3` and `r2`, `public_https` for `https`, `hf`, `gs` and `az`, `prestage_only` for `oci`. |
| `data_formats` | One entry per format, below: `extensions`, `media_type`, `kind`, `supports_byte_range` (format-level metadata), `native_readers`, and for `parquet` `supports_predicate_pushdown` (`true`). Also `bundled_record_decoder`: `true` for `jsonl` and `jsonl_zst` only, the formats the bundled workers decode. |
| `reader_examples`, `reader_scope` | On every protocol and format: the same names as `native_readers`, and the sentence that they are ecosystem examples, not installed runtime guarantees. |
| `scavenger_submission` | Plan and stream submission calls and their options, with the `source_probe` object described below. |
| `scavenger_submission.endpoints` | An object from a call's name to its method and path, such as `submit_plan`, `register_pack`, `stream_backlog`, `pack_status`, `promote_plan`, `cancel_plan`, `consolidate_plans`, `seal_stream`, `upload_pack_content`, `list_outputs` and `pack_output`. |
| `scavenger_submission.wake_policies`, `qos_classes`, `workload_kinds` | The values the plan rules accept for `wake_policy`, for `qos_priority`, `qos_tier` and `qos`, and for `workload.kind`. |
| `scavenger_submission.continuous_streams` | How a continuous stream behaves: `workload_field` (`continuous`), `requires` (`open_stream: true`), `reopens_on` (`register_pack`, `consolidate_plans`) and `ends_on` (cancellation, or the window closing under `incomplete: ok`). |
| `scavenger_submission.pack_status` | The fields of [a pack read](/run/docs/reference/streams-packs-get.md) and what its `receipt` holds. |
| Runtime limits | Catalog entries describe formats and readers, not universal workload support. OCI requires prestaging. JIT mounts need a byte digest even with an HF revision; ranged reads require an explicit range digest. Record packs require JSON lines, optionally Zstandard-compressed, rather than columnar files. |

| Runtime contract | Support |
|---|---|
| `runtime_support.workloads` | One entry per workload kind: `executor` (`bundled`, `agent_seats` or `custom_command_required`), `formats` (the record formats it reads; empty where a custom command is required) and `requires`. Classifier, embedding, chat batch and agent-seat workers read JSONL, optionally Zstandard, through `source_uri` or `r2_input_uri` and verified ranges. |
| `runtime_support` limits | `scope`; `pack_input_fields` (`r2_input_uri`, `source_uri`); `byte_range` (end exclusive; digest and byte count describe exactly that range); `max_record_pack_bytes` and `max_decoded_record_pack_bytes` (512 MiB), which a pack's `compressed_bytes` may not exceed on a stage whose `executor` is `bundled` or `agent_seats`: a larger one is refused when it is registered; `max_streamed_decoded_pack_bytes` (4 GiB, streamed Zstandard classifier packs). |
| `runtime_support.raw_crawl_shards` | `body_fields` (`html`, `bodyB64`, `text`), `skips_bodiless_rows` and `reports_rows_skipped`: crawl rows without a body are skipped and counted in `rows_skipped`. |
| Custom decoding | Parquet, Arrow IPC, Lance and Safetensors require conversion or a custom decoder; registration alone does not make them runnable. |
| Custom execution | Product builds drain an `llm_batch_drain` pack of chat requests. Any other `llm_batch_drain` pack, and every `cpu_scavenger` pack, needs a product command installed separately: the bundled commands for those are research-only. |
| Transport | S3/R2 uses configured custody storage. HTTPS, HF, GCS and Azure currently use public HTTPS. Private cloud credentials and OCI hydration require preparation. |

`scavenger_submission.source_probe` advertises the verification option using these exact keys:

```json
{"verify_param":"verify_source","modes":["live_range_probe","syntax_and_custody_only"],"checks":["reachability","http_206_range","content_range_bounds","magic_bytes"]}
```

`verify_param` names the request flag. `modes` lists possible receipt modes; `checks` lists check identifiers, not per-request results. Read the submission receipt's `source_probe.probes` for those results.

| Scheme | Forms | Pinning | Readers |
|---|---|---|---|
| `s3` | `s3://<bucket>/<path>` | `sha256` on a runnable pack; a path under `tenants/` must be your own | `arrow-rs object_store`, `pyarrow.fs.S3FileSystem`, `s3fs`, `duckdb` |
| `r2` | `r2://tenants/<tenant_id>/<path>` | `sha256` on a runnable pack; your own tenant only | the same as `s3` |
| `gs` | `gs://<bucket>/<path>` (Google Cloud Storage) | mounts: `sha256` or `@sha256:` suffix; runnable packs: `sha256` | `arrow-rs object_store`, `pyarrow.fs.GcsFileSystem`, `gcsfs` |
| `az` | `az://<container>/<path>`, `abfss://<container>@<account>.dfs.core.windows.net/<path>` (Azure Blob Storage, ADLS Gen2) | mounts: `sha256` or `@sha256:` suffix; runnable packs: `sha256` | `arrow-rs object_store`, `adlfs`, `duckdb azure` |
| `https` | `https://<host>/<path>` | mounts: `sha256` or `@sha256:` suffix; runnable packs: `sha256` | `arrow-rs object_store`, `pyarrow.dataset`, `polars`, `duckdb httpfs` |
| `hf` | `hf://<org>/<dataset>@<revision>/<path>` | mounts: `@<revision>` or `sha256`; runnable packs: `sha256` | `hf-hub`, `pyarrow.dataset`, `polars.scan_parquet`, `duckdb`, `fsspec/HfFileSystem` |
| `oci` | `oci://<registry>/<repository>@sha256:<64-hex>` | mounts: digest suffix or `sha256`; runnable packs: `sha256` | `oci-client`, `oras` |

| Format | Extensions | Media type | Kind | Readers |
|---|---|---|---|---|
| `parquet` | `.parquet` | `application/vnd.apache.parquet` | `columnar`, with predicate pushdown | `pyarrow.dataset`, `polars.scan_parquet`, `duckdb`, `arrow-rs parquet` |
| `arrow_ipc` | `.arrow`, `.ipc`, `.feather` | `application/vnd.apache.arrow.file` | `columnar_zero_copy` | `pyarrow.ipc`, `polars.scan_ipc`, `arrow-rs ipc` |
| `lance` | `.lance` | `application/x-lance` | `columnar_random_access` | `lance`, `pyarrow.dataset`, `duckdb` |
| `jsonl_zst` | `.jsonl.zst`, `.ndjson.zst`, `.zst` | `application/zstd` | `seekable_record_pack` | `zstandard`, `zstd`, `duckdb`, `polars` |
| `jsonl` | `.jsonl`, `.ndjson` | `application/x-ndjson` | `record_stream` | `pyarrow.json`, `polars.scan_ndjson`, `duckdb` |
| `safetensors` | `.safetensors` | `application/x-safetensors` | `tensor_bundle` | `safetensors` |

Submission accepts `verify_source: true` on a plan, a stage's `workload` or a pack, or `?verify_source=1`. It checks sources before writing: declared ranges require `206`; whole objects can also pass with `200` when small or their declared size matches. Known sizes and recognised file headers are checked; OCI uses a reachability-only `HEAD`. This does not verify a whole-file digest. Failures return the `400` and `503` codes of [source verification](/run/docs/errors.md#source-verification). `source_probe` lists the checks; without reads its `mode` is `syntax_and_custody_only`.

## Errors

| Status | Code | When it happens | What to do |
|---|---|---|---|
| `401` | `unauthorized`, `invalid_token`, `token_revoked`, `token_expired` | No token, or one that does not work. | Use a valid token. |
| `403` | `scope_required`, `account_suspended` | The token lacks `read`, or the account is suspended. | Use a token with `read`. |

## Examples

```sh
curl -s https://weights.fyi/run/v1/compute/capabilities -H "Authorization: Bearer $WEIGHTS_API_KEY"
```

Two of its entries, from a test copy of the service:

```json
{
  "schema": "weights.compute-capabilities/v1",
  "dataset_protocols": {
    "az": {"uri_pattern": "az://<container>/<path>",
           "uri_patterns": ["az://<container>/<path>", "abfss://<container>@<account>.dfs.core.windows.net/<path>"],
           "pinning": "required (sha256 field or @sha256:<64-hex> suffix)",
           "native_readers": ["arrow-rs object_store", "adlfs", "duckdb azure"],
           "supports_byte_range": true, "hydration_modes": ["jit", "prestage"]}
  },
  "data_formats": {
    "parquet": {"extensions": [".parquet"], "media_type": "application/vnd.apache.parquet", "kind": "columnar",
                "supports_byte_range": true, "supports_predicate_pushdown": true,
                "native_readers": ["pyarrow.dataset", "polars.scan_parquet", "duckdb", "arrow-rs parquet"]}
  }
}
```

## History

- 2026-10-28: added, with `s3`, `r2`, `https`, `hf` and `oci`.
- 2026-10-28: `gs`, `az` (with `abfss://`), `uri_patterns` and `data_formats` added; the plan calls accept the new schemes.
- 2026-10-28: `verify_source` and `source_probe` added to the plan calls.
- 2026-10-28: linked plan and stream reference pages; clarified source-check and mount-pinning behaviour.
- 2026-10-29: the answer carries `gs`, `az` and `data_formats`; `qos_classes` and `workload_kinds` list the accepted values; `execution_targets` removed.
- 2026-11-16: listed the runtime, transport, decoder and continuous-stream fields.

## See also

- [GET /v1/capabilities](/run/docs/reference/capabilities.md), what the service does and does not do yet.
- [POST /v1/datasets](/run/docs/reference/datasets-create.md), the dataset a training job reads.
- [POST /v1/compute/plans](/run/docs/reference/compute-plans-create.md)
- [POST /v1/streams/{stage_id}/packs](/run/docs/reference/streams-packs-create.md)
