Documentation
Models and quotes
View .mdOpenAPI

Warm the model

POSThttps://weights.fyi/run/v1/endpoint/warmscope: submit
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.
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

NameWhereRequiredMeaning
AuthorizationheaderyesBearer and a token with submit.
traceparent, tracestateheadernoW3C 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.

FieldMeaning
modelThe model asked for, laya-page-role.
stateThe model's state at the moment of the request, one of the codes of GET /v1/endpoint.
sinceWhen the model entered that state.
expected_ready_secondsThe estimate in seconds until the model is ready, or null when it is ready or there is no estimate.
traceparentThe trace context of the request's record: your trace when you sent one, else your account's.

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.
402no_creditYour available credit is zero or less.Add credit, or set up workspace billing.
403scope_required, account_suspendedThe token lacks submit, or the account is suspended.Use a token with submit.
429rate_limitedThe 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.