Documentation
Models and quotes
View .mdOpenAPI

List the service's capabilities

GEThttps://weights.fyi/run/v1/capabilitiesscope: read
text
GET https://weights.fyi/run/v1/capabilities
Authorization: Bearer <token>                    scope: read
Available since
2026-10-10 implementation review: included in this build; see What is live for deployment status.
Answer time
synchronous: the answer is built from the service's own configuration and reads nothing that can wait.

Answers one question in one document: what does this service do, and what does it not do yet? A program that integrates with several model services usually has to find that out by reading documentation and trying calls; this answer lets it ask. It lists every ability the service could be expected to have, each true or false, so that something not built is said out loud as false rather than left for you to discover with a failing call. Chat completions, streaming chat and schedules are implemented; their flags reflect whether this deployment has a runnable configured model (see LLM endpoints). Compute source-pointer streams have their own capability catalog.

The answer is the same for every account, except that the fine-tuning entries follow whether fine-tuning is switched on for the service. It is a description, not a contract with a version history: when something is built, its entry turns true in the same release. The same pull request publishes /openapi.json, an OpenAPI 3.1 description that lists every route of the API with the scope it needs and the error shape, and gives typed request bodies for classification and training; it is public and takes no token. The openapi field below is its address. The compatibility entries answer questions people ask about integrations. They are all false today, and saying so is the point: the classifier is not an OpenRouter chat model, the service is not Cloudflare Workers AI even though it borrows the rejectIfBusy option from it, and it does not answer free-form questions about a page.

Request

NameWhereRequiredMeaning
AuthorizationheaderyesBearer and your token, with the read scope.

Return value

200 OK with one object:

FieldMeaning
serviceThe service's name, weights.fyi.
api_versionThe API's version, v1.
modelsThe path of GET /v1/models, where each model describes itself.
openapiThe path of the OpenAPI description, /run/openapi.json.
availableOne entry per ability, true when the service does it now: classification, batch_classification, finetune, checkpoint_recovery, training_artifact_download, plus deployment-dependent chat_completions, streaming_chat, llm_batch and schedules. arbitrary_extraction and trained_model_serving remain false.
compatibilityIntegrations the service does not claim, each false: openrouter_chat, cloudflare_workers_ai, jev_questions.
admissionHow a full service answers: overload_status (429), retry_header (Retry-After), reject_if_busy (the option's name, options.rejectIfBusy), queued_jobs_resume (true: accepted work resumes after a move) and chat_stream_resume (false).
tracingown_traces (true), input_logging_default and output_logging_default (both false), content_retention_days (7) and formats, the kinds of destination.

Errors

StatusCodeWhen it happensWhat to do
401unauthorized, invalid_token, token_revoked, token_expiredNo token, or one that does not work.Use a valid token.
403scope_required, account_suspendedThe token lacks read, or the account is suspended.Use a token with read.

Examples

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

The answer from a test copy of the service with fine-tuning switched on:

json
{
  "service": "weights.fyi",
  "api_version": "v1",
  "models": "/run/v1/models",
  "openapi": "/run/openapi.json",
  "available": {"classification": true, "batch_classification": true, "finetune": true,
                "checkpoint_recovery": true, "training_artifact_download": true,
                "chat_completions": false, "streaming_chat": false,
                "schedules": false, "arbitrary_extraction": false, "trained_model_serving": false},
  "compatibility": {"openrouter_chat": false, "cloudflare_workers_ai": false, "jev_questions": false},
  "admission": {"overload_status": 429, "retry_header": "Retry-After", "reject_if_busy": "options.rejectIfBusy",
                "queued_jobs_resume": true, "chat_stream_resume": false},
  "tracing": {"own_traces": true, "input_logging_default": false, "output_logging_default": false,
              "content_retention_days": 7, "formats": ["otlp_http", "mlflow", "webhook"]}
}

History

  • 2026-10-10 implementation review: added, with /openapi.json.

See also