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.codedatabase_unavailable,retry-afterandx-should-retry. It returned 500. -
PATCH /v1/sandboxes/{sandbox_id}, a file upload or download, a port lookup and an ssh call return 502 witherror.codesandbox_unreachableandretry-afterwhen the vendor answers “not found” for a sandbox it still reports as running. They returned 409sandbox is not running. They return 409 once the loss is confirmed. -
POST /v1/keys,POST /v1/projectsandPOST /v1/imagesno longer save a 500 or 502 for replay. A retry with the sameIdempotency-Keyruns the request again. Before, it got the first failure back for 24 hours. -
The messages of a 403
key_grant_exceeds_parentchanged.error.codeanderror.paramdid 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.codeaccount_in_flight_limit_exceededandretry-after. Before, there was no cap per account. Retry afterretry-after. -
A model call on a key with
max_requestsormax_tokens(its own or a parent’s) returns 429 witherror.codekey_limit_check_busyandretry-afterwhen 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/responseswithbackground: truereturns 400 witherror.codeparameter_invalidanderror.parambackground. It was passed to the vendor before.
Other changes:
- New:
GET /v1/usageandGET /v1/usage/requestsreturn what your account used and what it cost, per model, provider, key, project, hour or day.mdw usageprints the same. See Usage and cost. - Usage totals carry
estimated_price_costandestimated_price_records: the part ofcostthat uses a price the vendor has not confirmed. A row’scost_statuscan beprice_estimated. - Every model call and sandbox now has a cost in US dollars in Meadow’s records, or
nullwith a reason when Meadow holds no price. Meadow still bills nothing. - A repeated background command start has two new values of
error.codeon its 409:exec_start_failed(use a newIdempotency-Key) andexec_start_in_progress(send the same request again afterretry-after). - Sandbox creates sent without
waitstart 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
mdwfind 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_restartingordatabase_unavailablecarriesx-should-retry: true, and an attempt carriesreason,started_atandfinished_atin the Python and Go clients.