Concepts
Meadow is one API for two jobs: calling models and running sandboxes. You store your own provider keys with Meadow once. One Meadow API key (mdw_...) then reaches every provider you have a key for. Meadow picks the provider and falls back to the next one when a provider fails.
Next step: read Authentication and make your first call with the admin key you were given.
Accounts and resources
An account is your company’s space in Meadow. Meadow creates it for you and hands you its first admin key. Everything below lives inside one account, and nothing is shared between accounts. There are no users, members, or roles in the beta: whoever holds a key acts with that key’s rights.
A project is a named group inside your account, such as evals or production. It holds routing defaults: which providers to try and in what order. Sandboxes and images belong to the project of the key that created them. A key in one project cannot see another project’s sandboxes. See Projects.
A Meadow API key authenticates requests to Meadow. It starts with mdw_, belongs to one project, and carries scopes (models, sandboxes, admin). A key can be narrowed to a list of models, a request limit, a token limit, a spend limit in US dollars, a limit on concurrent sandboxes, and an expiry date. A key with the admin scope can create narrower keys. See Authentication.
A provider is a service Meadow calls, such as Anthropic, Google, Daytona, or Modal. The API identifies it with the provider field.
A provider key is a credential you store with Meadow: an Anthropic API key, a Modal token, and so on. You store one per provider for the whole account, and you can limit it to some projects. Meadow checks it with the provider before saving it, encrypts it, and never returns it. See Provider keys.
A sandbox is an isolated machine at Daytona or Modal that Meadow creates in your provider account. You run commands in it, copy files in and out, open ports, and delete it. It has a lifetime limit and can have an idle limit.
An image is a Dockerfile that Meadow builds once per sandbox provider, so that later sandboxes start fast. The same Dockerfile and files always give the same image ID.
How a request flows
The same steps in words, for a model call:
- You send a request in the provider’s own format (OpenAI Chat Completions, OpenAI Responses, or Anthropic Messages) with your Meadow API key.
- Meadow checks the key: is it valid, does it have the
modelsscope, is the model on itsallowed_modelslist, and is there room under its limits. - Meadow builds a route. It starts from the project’s routing defaults, then applies any routing fields in the request, unless the project is locked. It keeps only providers that accept the request’s format and that you have a provider key for.
- Meadow decrypts your provider key for the first provider and forwards the request. The message content is not changed.
- If that provider fails with a connection error, a timeout, a 429, a 5xx, an auth error, or a 404 for the model, Meadow tries the next provider in the route. Routing and fallbacks lists every case.
- The provider’s response comes back as the provider wrote it. Three response headers say what happened:
x-meadow-provider,x-meadow-model, andx-meadow-attempts.
Sandbox creation follows the same steps. Meadow checks the key, reads the project’s sandbox routing, and tries providers in order. Fallback happens during creation. A running sandbox stays on its provider.
Usage, cost, and budgets
Usage records the requests, tokens, and sandbox time consumed. Cost is the amount in US dollars Meadow records for that usage. Providers bill you directly; Meadow does not bill you. See Usage and cost for pricing, estimates, and missing costs.
A spend limit applies to a Meadow API key and its child keys. A budget tracks spend for an account or project and sends alerts. A budget blocks new spend only when hard_limit is enabled. See Spend limits and Budgets and alerts.
Beta limitations
- It does not convert between model formats. A request goes only to providers that accept the format you sent.
- Meadow records usage and a list-price cost for each call and sandbox.
- It has no dashboard in the beta. Changes to keys, projects, provider keys and budgets are in the audit log. See Known limits.