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

# 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](/set-up-your-account/authentication) and make your first call with the admin key you were given.

<a id="the-six-things-you-work-with"></a>

## 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](/set-up-your-account/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](/set-up-your-account/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](/set-up-your-account/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

```mermaid
flowchart LR
    A[Your code] -->|mdw_ key| B[Meadow]
    B --> C{Check the key}
    C -->|scope, limits, allowed models| D[Read the project's routing]
    D --> E[Pick providers you have a provider key for]
    E -->|your provider key| F[Provider 1]
    F -->|fails| G[Provider 2]
    F -->|answers| H[Response passed back unchanged]
    G --> H
```

The same steps in words, for a model call:

1. You send a request in the provider's own format (OpenAI Chat Completions, OpenAI Responses, or Anthropic Messages) with your Meadow API key.
2. Meadow checks the key: is it valid, does it have the `models` scope, is the model on its `allowed_models` list, and is there room under its limits.
3. 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.
4. Meadow decrypts your provider key for the first provider and forwards the request. The message content is not changed.
5. 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](/call-models/routing-and-fallbacks#what-triggers-a-fallback) lists every case.
6. The provider's response comes back as the provider wrote it. Three response headers say what happened: `x-meadow-provider`, `x-meadow-model`, and `x-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](/call-models/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](/call-models/spend-limits) and [Budgets and alerts](/call-models/budgets-and-alerts).

<a id="what-meadow-does-not-do"></a>

## 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](/set-up-your-account/audit-log). See [Known limits](/reference/known-limits).