> For the list of every page, fetch /llms.txt. The API contract is the OpenAPI file linked from the API reference.

Live on the hosted beta since 2026-11-27.

Changes that can break existing code:

- A request that fails because Meadow cannot reach its database returns 503 with `error.code` `database_unavailable`, `retry-after` and `x-should-retry`. It returned 500.
- `PATCH /v1/sandboxes/{sandbox_id}`, a file upload or download, a port lookup and an ssh call return 502 with `error.code` `sandbox_unreachable` and `retry-after` when the vendor answers "not found" for a sandbox it still reports as running. They returned 409 `sandbox is not running`. They return 409 once the loss is confirmed.
- `POST /v1/keys`, `POST /v1/projects` and `POST /v1/images` no longer save a 500 or 502 for replay. A retry with the same `Idempotency-Key` runs the request again. Before, it got the first failure back for 24 hours.
- The messages of a 403 `key_grant_exceeds_parent` changed. `error.code` and `error.param` did not.
- An account can hold at most 60 requests open on one server at a time, of any kind and on all its keys together. Past that a request returns 429 with `error.code` `account_in_flight_limit_exceeded` and `retry-after`. Before, there was no cap per account. Retry after `retry-after`.
- A model call on a key with `max_requests` or `max_tokens` (its own or a parent's) returns 429 with `error.code` `key_limit_check_busy` and `retry-after` when its limit check waits more than 3 seconds for one limited key, or more than 4 seconds in all, behind other calls on the same keys. No vendor is called and nothing is charged. Before, the call waited without bound.

- A streamed Chat Completions call on a key with a token limit no longer gets a usage chunk it did not ask for. Meadow now asks the vendor for token counts on every Chat Completions stream and removes the usage-only chunk unless you sent `stream_options: {"include_usage": true}`. Send that option if you read usage from the stream.
- `POST /v1/responses` with `background: true` returns 400 with `error.code` `parameter_invalid` and `error.param` `background`. It was passed to the vendor before.

Other changes:

- New: `GET /v1/usage` and `GET /v1/usage/requests` return what your account used and what it cost, per model, provider, key, project, hour or day. `mdw usage` prints the same. See [Usage and cost](/call-models/usage-and-cost).
- Usage totals carry `estimated_price_cost` and `estimated_price_records`: the part of `cost` that uses a price the vendor has not confirmed. A row's `cost_status` can be `price_estimated`.
- Every model call and sandbox now has a cost in US dollars in Meadow's records, or `null` with a reason when Meadow holds no price. Meadow still bills nothing.
- A repeated background command start has two new values of `error.code` on its 409: `exec_start_failed` (use a new `Idempotency-Key`) and `exec_start_in_progress` (send the same request again after `retry-after`).
- Sandbox creates sent without `wait` start sooner under load: each server drives 32 at once (it was 8, shared with cleanup work), and one account's queue no longer delays another account's creates.
- A usage record of a model call with a JSON answer over 4 MiB holds the vendor's token counts. It held an estimate.
- On a Modal sandbox, the replacement of the runtime's own error line on stderr also works when the line arrives in two parts of a stream.
- The Go client and `mdw` find a dead HTTP/2 connection: they send a ping after 45 seconds with no frame and drop the connection when no reply comes in 10 seconds. A call that is safe to repeat is then sent again on a new connection. Before, such a call waited until your own deadline. The Python client is unchanged for a call already sent: it waits for its read timeout. These are in the next client build you are sent.
- The clients send any call that is not a model call again when a 503 `server_restarting` or `database_unavailable` carries `x-should-retry: true`, and an attempt carries `reason`, `started_at` and `finished_at` in the Python and Go clients.