Skip to navigation

Meadow

Meadow is one API for calling models and running sandboxes with your own provider keys. You store each provider key with Meadow once. One Meadow API key (mdw_...) then reaches every provider you stored a key for. Each provider bills you directly.

Start with the Quickstart to make a model call. Continue with the optional sandbox example to run a command.

Who it is for

Meadow is for teams that call models from more than one provider, or run code in sandboxes, and want one key, one set of routing rules, and one place to limit what each workload can do. It suits evaluation harnesses, coding agents, and services that need a second provider when the first one is down.

Meadow is in private beta. There is no self-serve signup: you receive a base URL and an admin key when you join. Read Known limits before you build on it.

What works on the hosted beta

The hosted beta is https://api.usemeadow.ai. On 2026-11-28 it supports:

  • Model calls in three formats: OpenAI Chat Completions, OpenAI Responses, and Anthropic Messages. The request reaches the provider in the format you sent, and the provider’s response comes back unchanged.
  • Real calls through Anthropic, Google, xAI, OpenRouter, and Gemini on Vertex. OpenAI, Azure, Bedrock, Fireworks, and DeepSeek have passed tests against a stand-in server only. Provider keys has the table.
  • Fallback. When a provider fails, Meadow tries the next one you allow.
  • Sandboxes on Daytona and Modal behind one set of calls: create, run commands, copy files, open ports and SSH, build images, and limit outbound traffic.
  • Keys you can narrow: scopes, a list of models, request and token limits, a limit in US dollars, a cap on concurrent sandboxes, and an expiry date. A key’s secret can be rotated in place.
  • Budgets in US dollars on the account or a project, with webhook alerts and an optional hard limit. Alert email is off on the hosted beta.
  • An audit log of changes to keys, projects, provider keys and budgets.
  • A usage and cost record for each model call and each sandbox, read with GET /v1/usage.
  • Errors on the model routes in OpenAI’s or Anthropic’s own format, so their SDKs raise their usual errors.

The Changelog lists each change by the day it reached the hosted beta.

Models and sandboxes

Model callsSandboxes
What you sendA request in the OpenAI or Anthropic formatA request to create a sandbox, then commands and files
ProvidersAnthropic, OpenAI, Google, xAI, OpenRouter, Azure, Bedrock, Vertex, Fireworks, DeepSeekDaytona, Modal
What Meadow addsProvider choice, fallback, key limits, and cost recordsOne API for both providers, fallback at create, image builds, webhooks, and cost records
Start withModelsSandboxes

Both use the same keys, projects, and routing rules. Concepts explains them in one page.

Set up your coding agent

  • Get started with your agent has one prompt that takes a coding agent to a working call, and rules to paste into its instructions file.
  • MCP server: mdw mcp gives your agent tools for sandboxes, images, keys, and usage.
  • llms.txt lists every page of these docs for an agent to read. Each page also has a Markdown copy at its address plus .md.

Status and trust

  • Status: whether the API is up, and past incidents.
  • Trust: the Polymath Labs trust center, with its security and compliance documents.
  • Security: what Meadow stores, encrypts, and logs.

Browse the docs

Get started

  • Quickstart: a first model call and a first sandbox command.
  • Concepts: accounts, projects, keys, provider keys, sandboxes, and images.
  • Get started with your agent: one prompt that takes a coding agent to a working call, and the docs files made for agents.
  • MCP server: tools for sandboxes, images, keys, and usage inside your agent.

Call models

Run sandboxes

Set up your account

  • Authentication: headers, scopes, creating, rotating, and revoking API keys.
  • Provider keys: the credential fields for each provider.
  • Projects: routing defaults, locking, and deleting.
  • Audit log: who changed keys, projects, provider keys and budgets.

Reference