Documentation

Language models

Overview
View .mdOpenAPI

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 explains the rest.

Start

  1. Make an account and a key
  2. Set up billing
  3. Send your first call

Find your task

Operating the platform is the operator's task, not a customer's: start at Operate the platform. 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.

Use the service

  • Start hereA workspace, an API key, billing and your first call, step by step.
  • Teams and workspacesCreate a workspace, invite teammates, set roles and switch between teams.
  • Workspace billingPay for shared workspace usage, manage limits and review monthly invoices.
  • Models and capabilitiesChoose decision and LLM models, inspect their capabilities, and make a first call.
  • Classify pagesSend pages to the classifier one call at a time, or as a batch of any size.
  • Jobs, progress and resultsFollow a job, read every result exactly once, and what a move to new hardware looks like.
  • Python SDKDeclare a ComputePlan in Python, admit it in one call, and follow its streams and packs.
  • Prices and billingWhat a job costs, what the quote includes, and how credit and spend caps work.
  • Errors and limitsEvery error code and limit, and how to retry without making work twice.

Train

  • Fine-tune a modelTrain the classifier on your own labelled pages: datasets, training jobs, checkpoints.
  • Bring your own modelThe models you can run and train today, and how your own are meant to run.

Observe

  • Tracing and exportsTraces of every job, the job log, downloads, your own destinations, content logging.

Language models

Operate

  • Operate the platformRun the platform as its operator: read its status, preview what the queue needs, and authorize spend under a budget.

Reference

Account and keys

GET /v1/tokensList your API tokens with their scopes, expiry, spend cap, request rate and today's spend.
GET /v1/tokens/selfWho the calling token is: its id, scopes, expiry and account, without manage.
POST /v1/tokensMake a token with the scopes, expiry and daily spend cap you choose; shown once.
DELETE /v1/tokens/{token_id}Turn a token off for good.
GET /v1/tokens/mineThe tokens you issued, with read only.
GET /v1/workspacesThe key's workspace with its trace switches, destinations, domains and whether its tracing is governed.
POST /v1/workspacesRegister a workspace from code: find or create it, switch tracing off, make its endpoints.
POST /v1/workspaces/domainsClaim an email domain for your workspace and get the DNS TXT record to publish.
POST /v1/workspaces/domains/{domain}/verifyCheck the domain's DNS TXT records and mark the workspace's claim verified.
PATCH /v1/workspaces/domains/{domain}Choose whether verified addresses stay invite-only, can join, or join at sign-in.
DELETE /v1/workspaces/domains/{domain}Remove a claimed or verified email domain from your workspace.

Your workspace

GET /v1/workspace/snapshotWhat your work is doing, waits on, costs and holds, in one read.
GET /v1/workspace/snapshot/eventsThe workspace snapshot as server-sent events, one per period.
GET /v1/workspace/campaigns/{campaign_id}One campaign of your workspace as one object: window, timeline, output, charges and failures.
GET /v1/workspace/membersYour workspace's people, roles, last activity and invitations.
GET /v1/workspace/auditWhat was done in your workspace, by whom, oldest first within a page.
POST /v1/reservations/release-orphanedReturn to your credit every pack hold nothing can settle any more.

Credit and usage

POST /v1/credit/topupsOpen a payment page for an amount of credit.
GET /v1/usageYour balance, what you can spend now, and the cost of each job.
GET /v1/usage.csvEvery credit and charge of your account as one CSV file.
POST /v1/reservationsAsk whether an amount can be reserved against your credit and a plan's budget, or hold it.
GET /v1/reservationsThe amounts your account holds reserved, or one hold by its id.
DELETE /v1/reservationsReturn a held amount to your credit and to its plan's budget.

Models and quotes

GET /v1/modelsThe models you can run or train, your own fine-tuned models included.
GET /v1/models/{model}One model of your list by its id, the way OpenAI's model retrieval answers.
POST /v1/models/{model}/versionsRegister a trained version of a specialist model by its digests and metrics.
GET /v1/models/{model}/versionsA specialist's registered versions, newest first, and which one serves.
GET /v1/models/{model}/versions/{version_id}One registered version: its digests, metrics, aliases and whether it can be executed.
POST /v1/models/{model}/promoteMake a registered version the one that serves, when it passes the promotion gate.
POST /v1/models/{model}/aliasesSet champion, challenger and previous in one compare-and-swap step.
GET /v1/models/{model}/bundleDownload the package a version was registered with, the serving one by default.
GET /v1/models/{model}/attestationLive evidence that a confidential model runs inside an isolated enclave.
GET /v1/quoteWhat a job of so many pages costs before you send it, and what that rests on.
GET /v1/endpointThe model's state right now and when it is expected to be ready.
POST /v1/endpoint/warmAsk for the model to be made ready ahead of your work.
GET /v1/capabilitiesWhat the service does and does not do yet, in one answer.

Classify

POST /v1/classifyClassify up to a call's worth of pages, with the results in the answer when the model is ready.

Jobs and results

POST /v1/jobsSend a batch of pages of any size as one job, as JSON or as NDJSON.
POST /v1/jobs/estimateWork out a job's duration, data volume, fit and planning cost before you send it; nothing is reserved.
GET /v1/jobsYour jobs, newest first, each with its progress and cost.
GET /v1/jobs/{job_id}One job: its status, progress, the model's state, its cost and its runs.
DELETE /v1/jobs/{job_id}Stop a job: pages not yet sent are cancelled; a training job stops cleanly.
GET /v1/jobs/{job_id}/resultsA job's results in page order, read exactly once with a cursor.
GET /v1/jobs/{job_id}/results.ndjsonA page job's results as one NDJSON download.

Datasets

POST /v1/datasetsMake a dataset and get the address its file goes to.
PUT /v1/datasets/{dataset_id}/contentStream the dataset's NDJSON file; each line checked, nothing of it logged.
GET /v1/datasetsYour datasets with their counts, digests and the jobs that used them.
DELETE /v1/datasets/{dataset_id}Remove a dataset that no open job uses.

Compute plans and streams

GET /v1/compute/capabilitiesThe source URI schemes, data formats and readers available for plans and streams.
GET /v1/seats/leasesThe command-line seat lanes, which a plan can lease now, and what your workers offer for each.
POST /v1/compute/plansSubmit stages with dependencies, a schedule, a budget and optional source checks.
POST /v1/compute/plans/dry-runCheck a plan against the plan rules and its models' pinned releases without admitting it.
GET /v1/compute/plansList your plans newest first, filtered by state, wake policy or QoS, page by page.
GET /v1/compute/plans/{plan_id}Read a plan's state, stage progress, accrued cost and latest event sequence.
POST /v1/compute/plans/{plan_id}/promotePromote a standing plan to standard scheduling while preserving its progress.
POST /v1/compute/plans/{plan_id}/cancelCancel your plan, fence its leases and release its capacity demand.
POST /v1/compute/plans/{plan_id}/consolidateMove superseded plans' remaining packs into one continuous plan and end them.
POST /v1/compute/plans/{plan_id}/stages/{stage_id}/completeComplete a harness stage, record its result and release satisfied dependencies.
POST /v1/compute/plans/{plan_id}/stages/{stage_id}/failFail a harness stage and cancel the plan's remaining unfinished work.
POST /v1/compute/plans/{plan_id}/stages/{stage_id}/packs/retryRetry dead-lettered packs with an expected count and durable operation key.
POST /v1/compute/plans/{plan_id}/stages/{stage_id}/packs/accept-lossAccept reviewed pack loss with an explicit reason.
POST /v1/compute/plans/{plan_id}/stages/{stage_id}/materializeFill a stream's pending lookahead from lazy packs, a manifest or templates.
GET /v1/compute/eventsRead plan events in sequence and resume monitoring with a saved cursor.
POST /v1/streams/{stage_id}/packsRegister a runnable pack or lazy pointer, or promote a prepared lazy pack.
GET /v1/streams/{stage_id}/packsRead backlog counts, available room and the next lazy packs to prepare.
GET /v1/streams/{stage_id}/packs/{pack_id}Read one registered pack's persisted state and output receipt.
PUT /v1/streams/{stage_id}/packs/{pack_id}/contentUpload a pack's bytes with the API key alone and register it runnable.
GET /v1/streams/{stage_id}/outputsList a stream's completed packs in ordinal order, page by page.
GET /v1/streams/{stage_id}/packs/{pack_id}/outputRead a completed pack's output or manifest, whole or by byte range.
POST /v1/streams/{stage_id}/packs/{pack_id}/completeRecord a leased harness pack's output receipt with safe identical retries.
POST /v1/streams/{stage_id}/packs/retryRetry a stream's dead-lettered packs, addressed by stream identifier.
POST /v1/streams/{stage_id}/packs/accept-lossAccept a stream's reviewed pack loss, addressed by stream identifier.
POST /v1/streams/{stage_id}/sealClose a stream to new packs while its registered work finishes.

Fine-tuning

POST /v1/jobs (finetune)Start a training job on your dataset; admitted against its estimate.
GET /v1/quote (finetune)What a training job costs before you start it.
POST /v1/quoteWhat a training job costs with the options you would create it with.
GET /v1/jobs/{job_id}/model.safetensorsDownload the weights a training job made, checked against their digest.
POST /v1/models/{model}/measureMeasure a model not yet priced per token, charged for the job's own working time (pending; run 2).

LLM endpoints

POST /v1/endpointsCreate your endpoint for a language model.
GET /v1/endpointsYour LLM endpoints with their state, hold and cost today.
GET /v1/endpoints/{endpoint}One endpoint: ready or not, the estimate, your place in line, its runs.
PATCH /v1/endpoints/{endpoint}Edit an endpoint name and description.
POST /v1/endpoints/{endpoint}/readyStart your endpoint now and hold it ready until a time you set.
DELETE /v1/endpoints/{endpoint}End the hold; the model stops after its idle time.
GET /v1/endpoints/{endpoint}/usageYour endpoint's calls, tokens, time ready and cost, per day and per run.
PUT /v1/endpoints/{endpoint}/reservations/{reservation}Hold an endpoint for one scheduled run, independently of other holds.
GET /v1/endpoints/{endpoint}/reservations/{reservation}Read one run's hold and current readiness.
DELETE /v1/endpoints/{endpoint}/reservations/{reservation}Release one run's hold without ending another.
POST /v1/chat/completionsChat with your own LLM endpoint in OpenAI's shape; a move to new hardware is carried for you.
POST /v1/proxy/chat/completionsThe chat call for an unchanged OpenAI client: no endpoint to create first.
GET /v1/proxy/modelsOpenAI's model list at the drop-in base address.
GET /v1/proxy/models/{model}OpenAI's single-model retrieval at the drop-in base address.

Your own workers

POST /v1/nodes/join-tokensMake the single-use token that enrolls one worker of your own into the workspace.
POST /v1/nodes/join-tokens/{join_token_id}/revokeTurn off a join token no worker has used yet.
GET /v1/nodesYour enrolled workers, the models each offers and whether it is connected.
POST /v1/nodes/{node_id}/revokeEnd a worker's enrollment for good and close its connections.
POST /v1/nodes/{node_id}/pauseOffer a worker none of your calls until you resume it; what it took finishes.
POST /v1/nodes/{node_id}/drainLet a worker answer what it holds and stop, so its computer can be switched off.
POST /v1/nodes/{node_id}/resumeOffer a paused or drained worker your calls again.
POST /v1/nodes/{node_id}/offers/{model}/publishRoute your workspace's calls for a model to a worker and make its endpoint.

Tracing and exports

GET /v1/jobs/{job_id}/logsA job's spans and events in order, with each page's result if you ask.
GET /v1/tracesYour spans for a period as one OpenTelemetry JSON download.
GET /v1/trace-sinksYour trace destinations, with what was delivered and what waits.
POST /v1/trace-sinksAdd a destination: OpenTelemetry over HTTP, MLflow or a signed webhook.
DELETE /v1/trace-sinks/{sink_id}Remove a destination and what still waited for it.
POST /v1/trace-sinks/{sink_id}/testSend one test span to a destination and see what came back.
GET /v1/trace-preferencesWhether inputs and outputs of new jobs are logged, and the limits.
PUT /v1/trace-preferencesTurn logging of inputs and outputs on or off.
GET /v1/jobs/{job_id}/trace-contentRead the logged inputs and outputs of one job.
DELETE /v1/trace-contentDelete every logged input and output of your account.