Create an LLM endpoint
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
| Name | Where | Required | Meaning |
|---|---|---|---|
Authorization | header | yes | Bearer and a token with submit. |
model | body | yes | The 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.
| Field | Meaning |
|---|---|
id | The endpoint's id, ep_ and 20 hex characters. |
base_url | The address an OpenAI client takes as its base. |
state | stopped until a call or a ready request starts it. |
Errors
| Status | Code | When it happens | What to do |
|---|---|---|---|
400 | invalid_request | The body is not a JSON object. | Send {"model": "..."}. |
400 | model_not_available | No LLM endpoint is offered for that model; available lists those that are. | Pick one of available. |
409 | endpoint_exists | You have an endpoint for this model already; id names it. | Use that one. |
401 | unauthorized, invalid_token, token_revoked, token_expired | No token, or one that does not work (any more). | Use a valid token. |
403 | scope_required, account_suspended | The token lacks submit, or the account is suspended. | Use a token with submit. |
429 | rate_limited | The token sends calls faster than its request rate. | Wait the Retry-After seconds. |
Examples
curl -s https://weights.fyi/run/v1/endpoints -H "Authorization: Bearer $WEIGHTS_API_KEY" \
-H "Content-Type: application/json" -d '{"model": "qwen3.8-27b"}'{
"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_positionis alwaysnull.