Reserve a hold for a run
PUT https://weights.fyi/run/v1/endpoints/<endpoint>/reservations/<reservation>
Authorization: Bearer <token> scope: submit
Content-Type: application/json- Available since
- Not available yet; built and locally tested on 2026-10-10, awaiting deployment.
- Answer time
- synchronous: the hold is recorded and its current state returned; preparing the model continues afterward.
Hold your existing endpoint for one scheduled run. Reuse the same run id and body on retries: one immutable reservation survives a lost answer. Your scheduler chooses when to request it; this call does not submit a prompt or a schedule.
Holds and wake-up are free, so zero ceilings are sufficient. Positive credit is required. The ceilings cover the reservation only; inference keeps its own token prices and spend controls. The hold does not reserve a chat concurrency slot. It is also not a ComputePlan: it queues no work and sets no money aside, unlike a plan's budget reservations (plan accounting).
Request
| Name | Where | Required | Meaning |
|---|---|---|---|
Authorization | header | yes | Bearer with submit. |
endpoint | path | yes | Your existing active endpoint. |
reservation | path | yes | Stable run id, at most 128 letters, digits, dots, underscores, colons or hyphens; start with a letter or digit. |
profile | body | yes | Your scheduler's profile label, with the same identifier rules. |
until | body | yes | Future ISO 8601 time with timezone, at most eight days ahead. |
max_hourly_usd_micros, max_startup_usd_micros | body | yes | Integer ceilings from zero through 2⁶³−1. The hold's charges are zero. |
Return value
200 OK with the reservation state: run_id, profile, state, valid_until, the two zero charges, endpoint_id and model.
Errors
| Status | Code | Remedy |
|---|---|---|
400 | invalid_reservation, invalid_reservation_window | Correct fields, types, identifier or time. |
401, 403 | Authentication or scope refusal | Use a current token with submit. |
402 | no_credit | Add credit. |
404 | endpoint_not_found | Use your endpoint's id. |
409 | reservation_conflict | Preserve an existing request; use a new id for new work. Released or expired ids stay closed. |
409 | endpoint_released | Explicitly reopen the endpoint before requesting new work. |
413, 429 | Body or request limit | Reduce the body or wait as directed. |
Examples
Set a future time in the body before sending:
curl -s -X PUT https://weights.fyi/run/v1/endpoints/ENDPOINT_ID/reservations/RUN_ID \
-H "Authorization: Bearer $WEIGHTS_API_KEY" -H "Content-Type: application/json" \
-d '{"profile":"coding","until":"2026-10-11T04:30:00Z","max_hourly_usd_micros":0,"max_startup_usd_micros":0}'History
- 2026-10-10: free run-owned holds; local qualification, deployment pending.
- 2026-11-16: listed the answer's fields and told a hold apart from a ComputePlan's budget reservations.