> ## Documentation Index
> Fetch the complete documentation index at: https://weights.fyi/run/llms.txt

# POST /v1/endpoint/warm

```text
POST https://weights.fyi/run/v1/endpoint/warm
Authorization: Bearer <token>                    scope: submit
[traceparent: <W3C trace context>]
```

**Available since:** 2026-10-08, when the service went live on weights.fyi/run; the answer's recovery fields are those of [GET /v1/endpoint](/run/docs/reference/endpoint.md).

**Answer time:** synchronous: the request is recorded and answered with the model's state; the start itself takes its usual time, 2 min 12 s to 2 min 31 s on hardware that served the model before (2026-10-08).

Asks for the model to be made ready ahead of your work, so your first pages start at once: before a batch that must not wait, a demonstration, or a burst of single calls you want answered in the call. You never need it for correctness. The request keeps the model ready for 144 s from it, as any of your pages does, and each request renews that. The time is free, with or without pages: you pay for pages answered, never for a start, for the time the model is ready or for a move. The model is shared, so the request reserves nothing for you alone.

Because a start costs nothing, the request needs only available credit above zero, else `402 no_credit`; a token's daily spend cap does not refuse it. It needs `submit`, counts against the request rate and takes no body. A `traceparent` puts the request in your trace, else in your account's.

## Request

| Name | Where | Required | Meaning |
|---|---|---|---|
| `Authorization` | header | yes | `Bearer` and a token with `submit`. |
| `traceparent`, `tracestate` | header | no | W3C trace context. |

## Return value

**202 Accepted** with the model's state as of the request, usually unchanged yet, and the request's trace context, also as a header; follow it with [GET /v1/endpoint](/run/docs/reference/endpoint.md).

| Field | Meaning |
|---|---|
| `model` | The model asked for, `laya-page-role`. |
| `state` | The model's state at the moment of the request, one of the codes of [GET /v1/endpoint](/run/docs/reference/endpoint.md). |
| `since` | When the model entered that state. |
| `expected_ready_seconds` | The estimate in seconds until the model is ready, or `null` when it is ready or there is no estimate. |
| `traceparent` | The trace context of the request's record: your trace when you sent one, else your account's. |

## Errors

| Status | Code | When it happens | What to do |
|---|---|---|---|
| `401` | `unauthorized`, `invalid_token`, `token_revoked`, `token_expired` | No token, or one that does not work (any more). | Use a valid token. |
| `402` | `no_credit` | Your available credit is zero or less. | Add credit, or set up workspace billing. |
| `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 work faster than its request rate. | Wait the `Retry-After` seconds. |

## Examples

The model still stopped, a start of about 151 s expected:

```sh
curl -s -X POST https://weights.fyi/run/v1/endpoint/warm -H "Authorization: Bearer $WEIGHTS_API_KEY"
```

```json
{
  "model": "laya-page-role",
  "state": "asleep",
  "since": "2026-10-09T08:28:09.782Z",
  "expected_ready_seconds": 151,
  "traceparent": "00-53fb4b64058bcaa257364b2155c0196d-b842c114f8b6833c-01"
}
```

## History

- 2026-10-08: live; the held time charged to you, under `other_charges` without pages; `traceparent` accepted.
- 2026-10-10: free: a start and the time the model is ready are no longer charged.
- 2026-10-10 implementation review: recovery fields in the answer.
- 2026-11-16: this page caught up with the change of 2026-10-10: the charged-time wording, the duplicate `no_credit` row and a `token_daily_cap` refusal this call never answers are gone.

## See also

[Prices and billing](/run/docs/prices.md).
