Documentation
LLM endpoints
View .mdOpenAPI

Create an LLM endpoint

POSThttps://weights.fyi/run/v1/endpointsscope: submit
text
POST https://weights.fyi/run/v1/endpoints
Authorization: Bearer <token>                    scope: submit
{"model": "<model>"}
Available since
2026-10-10 implementation review: the endpoint API is built; runtime availability follows the model catalog. No LLM chat model is available on this service yet.
Answer time
synchronous: the endpoint is recorded and answered at once. It starts with your first call or a ready request.

Creates your workspace's endpoint for one language model of GET /v1/models, kind llm: one per model and workspace. An endpoint is a connection and usage record, not hardware of your own. Creating it starts nothing and costs nothing. The answer names the address your OpenAI client calls, base_url, and the id to send as model to POST /v1/chat/completions.

The model behind it is shared: every workspace that may call the model is served from the same ready capacity, and each call is admitted against the call slots that capacity has now (max_in_flight). A ready request keeps the model ready, until it has had no call for 490 s or until the time you hold it to; it reserves no hardware and no call slots for you. You pay per token for calls that finish with an answer, never for a start, for the time the model is ready, or for a move.

Request

NameWhereRequiredMeaning
AuthorizationheaderyesBearer and a token with submit.
modelbodyyesThe model's id, kind llm in GET /v1/models.

Return value

201 Created with the endpoint, every field as GET /v1/endpoints/{endpoint} has it.

FieldMeaning
idThe endpoint's id, ep_ and 20 hex characters.
base_urlThe address an OpenAI client takes as its base.
statestopped until a call or a ready request starts it.

Errors

StatusCodeWhen it happensWhat to do
400invalid_requestThe body is not a JSON object.Send {"model": "..."}.
400model_not_availableNo LLM endpoint is offered for that model; available lists those that are.Pick one of available.
409endpoint_existsYou have an endpoint for this model already; id names it.Use that one.
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 submit, or the account is suspended.Use a token with submit.
429rate_limitedThe token sends calls faster than its request rate.Wait the Retry-After seconds.

Examples

sh
curl -s https://weights.fyi/run/v1/endpoints -H "Authorization: Bearer $WEIGHTS_API_KEY" \
  -H "Content-Type: application/json" -d '{"model": "qwen3.8-27b"}'
json
{
  "id": "ep_5b1e0c7d2a9f4e6b8c3d",
  "object": "endpoint",
  "model": "qwen3.8-27b",
  "base_url": "https://weights.fyi/run/v1",
  "state": "stopped",
  "expected_ready_seconds": 490,
  "queue_position": null
}

The answer is shortened here; it carries every field of GET /v1/endpoints/{endpoint}.

History

  • Built 2026-10-09; implementation reviewed 2026-10-10. Runtime availability follows the model catalog.
  • 2026-11-16: this page no longer says a ready model serves one account alone; capacity is shared, and queue_position is always null.

See also

LLM endpoints, POST /v1/endpoints/{endpoint}/ready.