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

# Documentation

weights.fyi runs models on your data: you name a model, send it work and get the results back, while we run the hardware it needs. The API lives at `https://weights.fyi/run/v1`, and every call takes an API key as `Authorization: Bearer`; [How it works](/run/docs/how-it-works.md) explains the rest.

## Start

1. [Make an account and a key](/run/docs/start.md#1-an-account-and-a-key)
2. [Set up billing](/run/docs/start.md#2-billing)
3. [Send your first call](/run/docs/start.md#3-your-first-call)

## Find your task

- **Chat with a language model** from an OpenAI client: [LLM endpoints](/run/docs/llm.md), then [the drop-in chat call](/run/docs/reference/proxy-chat-completions.md).
- **Classify pages**, one call at a time or as a batch: [Classify pages](/run/docs/classify.md), [Jobs and results](/run/docs/jobs.md).
- **Queue work that runs when capacity is there** (a plan with stages, streams and packs): [How it works](/run/docs/how-it-works.md) and the [Python SDK](/run/docs/sdk.md). Check a plan before you submit it with [the dry run](/run/docs/reference/compute-plans-dry-run.md); [submitting](/run/docs/reference/compute-plans-create.md) accepts work, it does not start it.
- **Know what a job will take** before you send it: [quote](/run/docs/reference/quote.md), [estimate](/run/docs/reference/jobs-estimate.md) and [Prices and billing](/run/docs/prices.md).
- **Train a model and manage its versions**: [Fine-tuning](/run/docs/fine-tune.md), [model versions](/run/docs/reference/models-versions-list.md).
- **Serve a model from your own workers**: [Bring your own model](/run/docs/your-model.md), [join tokens](/run/docs/reference/workers-join-tokens-create.md).
- **See what happened and what it cost**: [Tracing and exports](/run/docs/tracing.md#which-record-answers-what), [usage and receipts](/run/docs/reference/usage.md), [errors and retries](/run/docs/errors.md).
- **Wire a coding agent**: the plain-text guide at `https://weights.fyi/run/llms.txt`, every page in one file at `https://weights.fyi/run/llms-full.txt`, and the API description at `https://weights.fyi/run/openapi.json`.

**Operating the platform** is the operator's task, not a customer's: start at [Operate the platform](/run/docs/operate.md). The operator's calls take an operator's token and are described at `/v1/operator/openapi.json`, apart from the customer reference.

> **Status.** Live since 2026-10-08; what is merged, pending or designed is said on its page and in [What is live](/run/docs/what-is-live.md).

## Overview

- [How it works](/run/docs/how-it-works.md): The service from first principles: models, jobs, runs, the move to new hardware.
- [Service capabilities](/run/docs/what-is-live.md): What is live, merged, pending or designed, with the date of each.

## Use the service

- [Start here](/run/docs/start.md): A workspace, an API key, billing and your first call, step by step.
- [Teams and workspaces](/run/docs/teams.md): Create a workspace, invite teammates, set roles and switch between teams.
- [Workspace billing](/run/docs/billing.md): Pay for shared workspace usage, manage limits and review monthly invoices.
- [Models and capabilities](/run/docs/models.md): Choose decision and LLM models, inspect their capabilities, and make a first call.
- [Classify pages](/run/docs/classify.md): Send pages to the classifier one call at a time, or as a batch of any size.
- [Jobs, progress and results](/run/docs/jobs.md): Follow a job, read every result exactly once, and what a move to new hardware looks like.
- [Python SDK](/run/docs/sdk.md): Declare a ComputePlan in Python, admit it in one call, and follow its streams and packs.
- [Prices and billing](/run/docs/prices.md): What a job costs, what the quote includes, and how credit and spend caps work.
- [Errors and limits](/run/docs/errors.md): Every error code and limit, and how to retry without making work twice.

## Train

- [Fine-tune a model](/run/docs/fine-tune.md): Train the classifier on your own labelled pages: datasets, training jobs, checkpoints.
- [Bring your own model](/run/docs/your-model.md): The models you can run and train today, and how your own are meant to run.

## Observe

- [Tracing and exports](/run/docs/tracing.md): Traces of every job, the job log, downloads, your own destinations, content logging.

## Language models

- [LLM endpoints](/run/docs/llm.md): Create, edit and connect language model endpoints.

## Operate

- [Operate the platform](/run/docs/operate.md): Run the platform as its operator: read its status, preview what the queue needs, and authorize spend under a budget.

## API Overview

- [Introduction](/run/docs/api/introduction.md): The base URL, what requests and answers look like, and a first call.
- [Authentication](/run/docs/api/authentication.md): API keys as bearer tokens, their scopes, and the refusals a key can get.
- [Errors](/run/docs/api/errors.md): The refusal envelope, what each status asks of you, and retrying without doing work twice.
- [Rate limits](/run/docs/api/rate-limits.md): How fast a key may send work, its daily spend cap, and what a 429 says.
- [All calls](/run/docs/reference.md): Every call of the API, one page each, grouped by resource.

## Account and keys

- [List API tokens](/run/docs/reference/tokens-list.md) `GET /v1/tokens`: List your API tokens with their scopes, expiry, spend cap, request rate and today's spend.
- [Get the calling token](/run/docs/reference/tokens-self.md) `GET /v1/tokens/self`: Who the calling token is: its id, scopes, expiry and account, without manage.
- [Create an API token](/run/docs/reference/tokens-create.md) `POST /v1/tokens`: Make a token with the scopes, expiry and daily spend cap you choose; shown once.
- [Revoke an API token](/run/docs/reference/tokens-revoke.md) `DELETE /v1/tokens/{token_id}`: Turn a token off for good.
- [List your own API tokens](/run/docs/reference/tokens-mine.md) `GET /v1/tokens/mine`: The tokens you issued, with read only.
- [Get the key's workspace](/run/docs/reference/workspaces-get.md) `GET /v1/workspaces`: The key's workspace with its trace switches, destinations, domains and whether its tracing is governed.
- [Register a workspace](/run/docs/reference/workspaces-post.md) `POST /v1/workspaces`: Register a workspace from code: find or create it, switch tracing off, make its endpoints.
- [Claim a workspace domain](/run/docs/reference/workspaces-domains-create.md) `POST /v1/workspaces/domains`: Claim an email domain for your workspace and get the DNS TXT record to publish.
- [Verify a workspace domain](/run/docs/reference/workspaces-domains-verify.md) `POST /v1/workspaces/domains/{domain}/verify`: Check the domain's DNS TXT records and mark the workspace's claim verified.
- [Set a domain's join mode](/run/docs/reference/workspaces-domains-update.md) `PATCH /v1/workspaces/domains/{domain}`: Choose whether verified addresses stay invite-only, can join, or join at sign-in.
- [Remove a workspace domain](/run/docs/reference/workspaces-domains-delete.md) `DELETE /v1/workspaces/domains/{domain}`: Remove a claimed or verified email domain from your workspace.

## Your workspace

- [Read the workspace snapshot](/run/docs/reference/workspace-snapshot.md) `GET /v1/workspace/snapshot`: What your work is doing, waits on, costs and holds, in one read.
- [Stream the workspace snapshot](/run/docs/reference/workspace-snapshot-events.md) `GET /v1/workspace/snapshot/events`: The workspace snapshot as server-sent events, one per period.
- [Read one campaign as one object](/run/docs/reference/workspace-campaigns-get.md) `GET /v1/workspace/campaigns/{campaign_id}`: One campaign of your workspace as one object: window, timeline, output, charges and failures.
- [List the workspace's members](/run/docs/reference/workspace-members.md) `GET /v1/workspace/members`: Your workspace's people, roles, last activity and invitations.
- [Read the workspace's audit log](/run/docs/reference/workspace-audit.md) `GET /v1/workspace/audit`: What was done in your workspace, by whom, oldest first within a page.
- [Release orphaned holds](/run/docs/reference/reservations-release-orphaned.md) `POST /v1/reservations/release-orphaned`: Return to your credit every pack hold nothing can settle any more.

## Credit and usage

- [Open a payment page for credit](/run/docs/reference/credit-topups-create.md) `POST /v1/credit/topups`: Open a payment page for an amount of credit.
- [Get your balance and usage](/run/docs/reference/usage.md) `GET /v1/usage`: Your balance, what you can spend now, and the cost of each job.
- [Download every credit and charge as CSV](/run/docs/reference/usage-csv.md) `GET /v1/usage.csv`: Every credit and charge of your account as one CSV file.
- [Check or hold an amount of credit](/run/docs/reference/credit-holds-create.md) `POST /v1/reservations`: Ask whether an amount can be reserved against your credit and a plan's budget, or hold it.
- [List your credit holds](/run/docs/reference/credit-holds-list.md) `GET /v1/reservations`: The amounts your account holds reserved, or one hold by its id.
- [Release a credit hold](/run/docs/reference/credit-holds-release.md) `DELETE /v1/reservations`: Return a held amount to your credit and to its plan's budget.

## Models and quotes

- [List models](/run/docs/reference/models.md) `GET /v1/models`: The models you can run or train, your own fine-tuned models included.
- [Get a model](/run/docs/reference/models-get.md) `GET /v1/models/{model}`: One model of your list by its id, the way OpenAI's model retrieval answers.
- [Register a model version](/run/docs/reference/models-versions-create.md) `POST /v1/models/{model}/versions`: Register a trained version of a specialist model by its digests and metrics.
- [List a model's versions](/run/docs/reference/models-versions-list.md) `GET /v1/models/{model}/versions`: A specialist's registered versions, newest first, and which one serves.
- [Get a model version](/run/docs/reference/models-versions-get.md) `GET /v1/models/{model}/versions/{version_id}`: One registered version: its digests, metrics, aliases and whether it can be executed.
- [Promote a version to champion](/run/docs/reference/models-promote.md) `POST /v1/models/{model}/promote`: Make a registered version the one that serves, when it passes the promotion gate.
- [Set a model's aliases](/run/docs/reference/models-aliases.md) `POST /v1/models/{model}/aliases`: Set champion, challenger and previous in one compare-and-swap step.
- [Get a version's bundle](/run/docs/reference/models-bundle.md) `GET /v1/models/{model}/bundle`: Download the package a version was registered with, the serving one by default.
- [Get a model's attestation](/run/docs/reference/models-attestation.md) `GET /v1/models/{model}/attestation`: Live evidence that a confidential model runs inside an isolated enclave.
- [Get a price quote](/run/docs/reference/quote.md) `GET /v1/quote`: What a job of so many pages costs before you send it, and what that rests on.
- [Get the model's state](/run/docs/reference/endpoint.md) `GET /v1/endpoint`: The model's state right now and when it is expected to be ready.
- [Warm the model](/run/docs/reference/endpoint-warm.md) `POST /v1/endpoint/warm`: Ask for the model to be made ready ahead of your work.
- [List the service's capabilities](/run/docs/reference/capabilities.md) `GET /v1/capabilities`: What the service does and does not do yet, in one answer.

## Classify

- [Classify pages](/run/docs/reference/classify.md) `POST /v1/classify`: Classify up to a call's worth of pages, with the results in the answer when the model is ready.

## Jobs and results

- [Create a batch or training job](/run/docs/reference/jobs-create.md) `POST /v1/jobs`: Send a batch of pages of any size as one job, as JSON or as NDJSON.
- [Estimate a job before sending it](/run/docs/reference/jobs-estimate.md) `POST /v1/jobs/estimate`: Work out a job's duration, data volume, fit and planning cost before you send it; nothing is reserved.
- [List jobs](/run/docs/reference/jobs-list.md) `GET /v1/jobs`: Your jobs, newest first, each with its progress and cost.
- [Get a job](/run/docs/reference/jobs-get.md) `GET /v1/jobs/{job_id}`: One job: its status, progress, the model's state, its cost and its runs.
- [Cancel a job](/run/docs/reference/jobs-cancel.md) `DELETE /v1/jobs/{job_id}`: Stop a job: pages not yet sent are cancelled; a training job stops cleanly.
- [Read job results](/run/docs/reference/jobs-results.md) `GET /v1/jobs/{job_id}/results`: A job's results in page order, read exactly once with a cursor.
- [Download job results as NDJSON](/run/docs/reference/jobs-results-ndjson.md) `GET /v1/jobs/{job_id}/results.ndjson`: A page job's results as one NDJSON download.

## Datasets

- [Create a dataset](/run/docs/reference/datasets-create.md) `POST /v1/datasets`: Make a dataset and get the address its file goes to.
- [Upload a dataset file](/run/docs/reference/datasets-upload.md) `PUT /v1/datasets/{dataset_id}/content`: Stream the dataset's NDJSON file; each line checked, nothing of it logged.
- [List datasets](/run/docs/reference/datasets-list.md) `GET /v1/datasets`: Your datasets with their counts, digests and the jobs that used them.
- [Get a dataset](/run/docs/reference/datasets-get.md) `GET /v1/datasets/{dataset_id}`: One dataset.
- [Delete a dataset](/run/docs/reference/datasets-delete.md) `DELETE /v1/datasets/{dataset_id}`: Remove a dataset that no open job uses.

## Compute plans and streams

- [Describe accepted sources and formats](/run/docs/reference/compute-capabilities.md) `GET /v1/compute/capabilities`: The source URI schemes, data formats and readers available for plans and streams.
- [List the command-line seat lanes](/run/docs/reference/seats-leases.md) `GET /v1/seats/leases`: The command-line seat lanes, which a plan can lease now, and what your workers offer for each.
- [Submit a compute plan](/run/docs/reference/compute-plans-create.md) `POST /v1/compute/plans`: Submit stages with dependencies, a schedule, a budget and optional source checks.
- [Dry-run a compute plan](/run/docs/reference/compute-plans-dry-run.md) `POST /v1/compute/plans/dry-run`: Check a plan against the plan rules and its models' pinned releases without admitting it.
- [List compute plans](/run/docs/reference/compute-plans-list.md) `GET /v1/compute/plans`: List your plans newest first, filtered by state, wake policy or QoS, page by page.
- [Get a compute plan](/run/docs/reference/compute-plans-get.md) `GET /v1/compute/plans/{plan_id}`: Read a plan's state, stage progress, accrued cost and latest event sequence.
- [Promote a standing plan](/run/docs/reference/compute-plans-promote.md) `POST /v1/compute/plans/{plan_id}/promote`: Promote a standing plan to standard scheduling while preserving its progress.
- [Cancel a compute plan](/run/docs/reference/compute-plans-cancel.md) `POST /v1/compute/plans/{plan_id}/cancel`: Cancel your plan, fence its leases and release its capacity demand.
- [Consolidate superseded plans into a plan](/run/docs/reference/compute-plans-consolidate.md) `POST /v1/compute/plans/{plan_id}/consolidate`: Move superseded plans' remaining packs into one continuous plan and end them.
- [Complete a harness stage](/run/docs/reference/compute-stages-complete.md) `POST /v1/compute/plans/{plan_id}/stages/{stage_id}/complete`: Complete a harness stage, record its result and release satisfied dependencies.
- [Fail a harness stage](/run/docs/reference/compute-stages-fail.md) `POST /v1/compute/plans/{plan_id}/stages/{stage_id}/fail`: Fail a harness stage and cancel the plan's remaining unfinished work.
- [Retry a stage's dead-lettered packs](/run/docs/reference/compute-stages-packs-retry.md) `POST /v1/compute/plans/{plan_id}/stages/{stage_id}/packs/retry`: Retry dead-lettered packs with an expected count and durable operation key.
- [Accept the loss of a stage's dead-lettered packs](/run/docs/reference/compute-stages-packs-accept-loss.md) `POST /v1/compute/plans/{plan_id}/stages/{stage_id}/packs/accept-loss`: Accept reviewed pack loss with an explicit reason.
- [Fill a stream's pending lookahead](/run/docs/reference/compute-stages-materialize.md) `POST /v1/compute/plans/{plan_id}/stages/{stage_id}/materialize`: Fill a stream's pending lookahead from lazy packs, a manifest or templates.
- [List compute events](/run/docs/reference/compute-events.md) `GET /v1/compute/events`: Read plan events in sequence and resume monitoring with a saved cursor.
- [Register a pack](/run/docs/reference/streams-packs-create.md) `POST /v1/streams/{stage_id}/packs`: Register a runnable pack or lazy pointer, or promote a prepared lazy pack.
- [Read a stream's backlog](/run/docs/reference/streams-packs-list.md) `GET /v1/streams/{stage_id}/packs`: Read backlog counts, available room and the next lazy packs to prepare.
- [Get a pack](/run/docs/reference/streams-packs-get.md) `GET /v1/streams/{stage_id}/packs/{pack_id}`: Read one registered pack's persisted state and output receipt.
- [Upload a pack's content](/run/docs/reference/streams-packs-content-put.md) `PUT /v1/streams/{stage_id}/packs/{pack_id}/content`: Upload a pack's bytes with the API key alone and register it runnable.
- [List a stream's completed outputs](/run/docs/reference/streams-outputs-list.md) `GET /v1/streams/{stage_id}/outputs`: List a stream's completed packs in ordinal order, page by page.
- [Download a pack's output](/run/docs/reference/streams-packs-output-get.md) `GET /v1/streams/{stage_id}/packs/{pack_id}/output`: Read a completed pack's output or manifest, whole or by byte range.
- [Complete a harness pack](/run/docs/reference/streams-packs-complete.md) `POST /v1/streams/{stage_id}/packs/{pack_id}/complete`: Record a leased harness pack's output receipt with safe identical retries.
- [Retry a stream's dead-lettered packs](/run/docs/reference/streams-packs-retry.md) `POST /v1/streams/{stage_id}/packs/retry`: Retry a stream's dead-lettered packs, addressed by stream identifier.
- [Accept loss of a stream's dead-lettered packs](/run/docs/reference/streams-packs-accept-loss.md) `POST /v1/streams/{stage_id}/packs/accept-loss`: Accept a stream's reviewed pack loss, addressed by stream identifier.
- [Seal a stream](/run/docs/reference/streams-seal.md) `POST /v1/streams/{stage_id}/seal`: Close a stream to new packs while its registered work finishes.

## Fine-tuning

- [Create a batch or training job](/run/docs/reference/jobs-create-finetune.md) `POST /v1/jobs`: Start a training job on your dataset; admitted against its estimate.
- [Get a price quote](/run/docs/reference/quote-finetune.md) `GET /v1/quote`: What a training job costs before you start it.
- [Quote a training job with its options](/run/docs/reference/quote-finetune-post.md) `POST /v1/quote`: What a training job costs with the options you would create it with.
- [Download a trained model](/run/docs/reference/jobs-model.md) `GET /v1/jobs/{job_id}/model.safetensors`: Download the weights a training job made, checked against their digest.
- [Measure a model](/run/docs/reference/models-measure.md) `POST /v1/models/{model}/measure`: Measure a model not yet priced per token, charged for the job's own working time (pending; run 2).

## LLM endpoints

- [Create an LLM endpoint](/run/docs/reference/endpoints-create.md) `POST /v1/endpoints`: Create your endpoint for a language model.
- [List LLM endpoints](/run/docs/reference/endpoints-list.md) `GET /v1/endpoints`: Your LLM endpoints with their state, hold and cost today.
- [Read an LLM endpoint](/run/docs/reference/endpoints-get.md) `GET /v1/endpoints/{endpoint}`: One endpoint: ready or not, the estimate, your place in line, its runs.
- [Rename or describe an endpoint](/run/docs/reference/endpoints-update.md) `PATCH /v1/endpoints/{endpoint}`: Edit an endpoint name and description.
- [Hold an endpoint ready](/run/docs/reference/endpoints-ready.md) `POST /v1/endpoints/{endpoint}/ready`: Start your endpoint now and hold it ready until a time you set.
- [Release an endpoint](/run/docs/reference/endpoints-release.md) `DELETE /v1/endpoints/{endpoint}`: End the hold; the model stops after its idle time.
- [Read an endpoint's usage](/run/docs/reference/endpoints-usage.md) `GET /v1/endpoints/{endpoint}/usage`: Your endpoint's calls, tokens, time ready and cost, per day and per run.
- [Reserve a hold for a run](/run/docs/reference/reservations-put.md) `PUT /v1/endpoints/{endpoint}/reservations/{reservation}`: Hold an endpoint for one scheduled run, independently of other holds.
- [Read a run's hold](/run/docs/reference/reservations-get.md) `GET /v1/endpoints/{endpoint}/reservations/{reservation}`: Read one run's hold and current readiness.
- [Release a run's hold](/run/docs/reference/reservations-release.md) `DELETE /v1/endpoints/{endpoint}/reservations/{reservation}`: Release one run's hold without ending another.
- [Create a chat completion](/run/docs/reference/chat-completions.md) `POST /v1/chat/completions`: Chat with your own LLM endpoint in OpenAI's shape; a move to new hardware is carried for you.
- [Create a drop-in chat completion](/run/docs/reference/proxy-chat-completions.md) `POST /v1/proxy/chat/completions`: The chat call for an unchanged OpenAI client: no endpoint to create first.
- [List proxy models](/run/docs/reference/proxy-models-list.md) `GET /v1/proxy/models`: OpenAI's model list at the drop-in base address.
- [Read a proxy model](/run/docs/reference/proxy-models-get.md) `GET /v1/proxy/models/{model}`: OpenAI's single-model retrieval at the drop-in base address.

## Your own workers

- [Create a worker join token](/run/docs/reference/workers-join-tokens-create.md) `POST /v1/nodes/join-tokens`: Make the single-use token that enrolls one worker of your own into the workspace.
- [Revoke a worker join token](/run/docs/reference/workers-join-tokens-revoke.md) `POST /v1/nodes/join-tokens/{join_token_id}/revoke`: Turn off a join token no worker has used yet.
- [List your enrolled workers](/run/docs/reference/workers-list.md) `GET /v1/nodes`: Your enrolled workers, the models each offers and whether it is connected.
- [Revoke a worker](/run/docs/reference/workers-revoke.md) `POST /v1/nodes/{node_id}/revoke`: End a worker's enrollment for good and close its connections.
- [Pause a worker](/run/docs/reference/workers-pause.md) `POST /v1/nodes/{node_id}/pause`: Offer a worker none of your calls until you resume it; what it took finishes.
- [Drain a worker](/run/docs/reference/workers-drain.md) `POST /v1/nodes/{node_id}/drain`: Let a worker answer what it holds and stop, so its computer can be switched off.
- [Resume a worker](/run/docs/reference/workers-resume.md) `POST /v1/nodes/{node_id}/resume`: Offer a paused or drained worker your calls again.
- [Publish a worker's model offer](/run/docs/reference/workers-offers-publish.md) `POST /v1/nodes/{node_id}/offers/{model}/publish`: Route your workspace's calls for a model to a worker and make its endpoint.

## Tracing and exports

- [Get a job's log](/run/docs/reference/jobs-logs.md) `GET /v1/jobs/{job_id}/logs`: A job's spans and events in order, with each page's result if you ask.
- [Export your spans as OTLP JSON](/run/docs/reference/traces.md) `GET /v1/traces`: Your spans for a period as one OpenTelemetry JSON download.
- [List trace destinations](/run/docs/reference/trace-sinks-list.md) `GET /v1/trace-sinks`: Your trace destinations, with what was delivered and what waits.
- [Add a trace destination](/run/docs/reference/trace-sinks-create.md) `POST /v1/trace-sinks`: Add a destination: OpenTelemetry over HTTP, MLflow or a signed webhook.
- [Remove a trace destination](/run/docs/reference/trace-sinks-delete.md) `DELETE /v1/trace-sinks/{sink_id}`: Remove a destination and what still waited for it.
- [Send a test span to a destination](/run/docs/reference/trace-sinks-test.md) `POST /v1/trace-sinks/{sink_id}/test`: Send one test span to a destination and see what came back.
- [Get the content logging switches](/run/docs/reference/trace-preferences-get.md) `GET /v1/trace-preferences`: Whether inputs and outputs of new jobs are logged, and the limits.
- [Set the content logging switches](/run/docs/reference/trace-preferences-put.md) `PUT /v1/trace-preferences`: Turn logging of inputs and outputs on or off.
- [Read a job's logged inputs and outputs](/run/docs/reference/jobs-trace-content.md) `GET /v1/jobs/{job_id}/trace-content`: Read the logged inputs and outputs of one job.
- [Delete all logged inputs and outputs](/run/docs/reference/trace-content-delete.md) `DELETE /v1/trace-content`: Delete every logged input and output of your account.

