Documentation
Models and quotes
View .mdOpenAPI

Get a model

GEThttps://weights.fyi/run/v1/models/{model}scope: read
text
GET https://weights.fyi/run/v1/models/<model>
Authorization: Bearer <token>                    scope: read
[X-Request-Id: <uuid>]
Available since
2026-10-16: included in this build; see What is live for deployment status.
Answer time
synchronous: your model list is read at once and one entry of it is returned.

Returns one entry of GET /v1/models by its id, the way OpenAI's model retrieval answers. Use it to check that a model exists for your workspace, and whether you can run or train it, before you send work. Only the models your own list shows are found: the service's models, the language models in your catalog, and the models you fine-tuned.

The id is everything after /v1/models/ in the path, so an id that holds a / needs no escaping. An id that is not in your list answers 404 model_not_found in OpenAI's error shape, {"error": {"message", "type", "code", "model", "request_id"}}, which OpenAI clients read as an unknown model; a refused token keeps the plain shape of every other call. Clients whose base address is https://weights.fyi/run/v1/proxy get the same lookup at GET /v1/proxy/models/{model}.

Request

NameWhereRequiredMeaning
AuthorizationheaderyesBearer and a token that holds the read scope.
modelpathyesThe model's id, exactly as GET /v1/models lists it; it may hold /.
X-Request-IdheadernoA UUID to follow the call by, answered back in the header of the same name. One is made when you send none.

Return value

200 OK with the model's entry, and the header X-Request-Id.

FieldMeaning
id, name, description, inputThe exact name to send as model, its name in words, what it does and what it reads.
can_run, can_trainWhether the inference calls accept it, and whether it can be the base of a training job.
object, owned_by, kindmodel; weights.fyi or you; classifier or llm.
input_modalities, output_modalitiesWhat it takes in and what it gives back.
labels, streamingA classifier's labels, and whether its answers stream.
operations, supported_parametersThe calls that accept it now (classify, batch, finetune, chat_completions) and its options.
artifact_downloadtrue for your own fine-tuned models, whose weights GET /v1/jobs/{job_id}/model.safetensors serves.
region, jurisdiction, jurisdictionsWhere the model runs, when known: the place, its two-letter country code, and every code that place matches in X-Weights-Jurisdictions.

A language model's or a fine-tuned model's entry holds the further fields the list gives it.

Errors

StatusCodeWhen it happensWhat to do
401unauthorized, invalid_token, token_revoked, token_expiredNo token, or one that does not work (any more).Use a valid token.
403scope_required, account_suspendedThe token lacks read, or the account is suspended.Use a token with read.
404model_not_foundNo model of that id is in your list. The body is OpenAI's error object; error.code holds the code.List your models and send an id from the list.

Examples

With laya-page-role in place of MODEL:

sh
curl -s https://weights.fyi/run/v1/models/MODEL -H "Authorization: Bearer $WEIGHTS_API_KEY"
json
{
  "id": "laya-page-role",
  "name": "Laya page classifier",
  "description": "Tells what role a web page plays from its text: detail, listing, landing, not_vacancy or unresolved, with the model's probabilities.",
  "input": "page text",
  "can_run": true,
  "can_train": false,
  "object": "model",
  "owned_by": "weights.fyi",
  "kind": "classifier",
  "input_modalities": ["text"],
  "output_modalities": ["classification"],
  "labels": ["detail", "listing", "landing", "not_vacancy", "unresolved"],
  "streaming": false,
  "operations": ["classify", "batch"],
  "supported_parameters": ["options.rejectIfBusy"],
  "artifact_download": false,
  "region": "eu-north1",
  "jurisdiction": "FI",
  "jurisdictions": ["FI", "EU", "EEA"]
}

History

  • 2026-10-16: built.
  • 2026-11-16: this page added.

See also