Models
Meadow serves four model formats. Each one takes a provider’s own request format and returns that provider’s own response. You send your Meadow API key, and Meadow uses the provider key you stored.
Next step: store a provider key (Provider keys), then run the first call below.
That body is Google’s answer, byte for byte. Meadow adds three response headers:
The formats
Meadow does not convert between formats. A request goes only to providers that accept the format you sent. This table shows which provider accepts which format:
Bedrock serves Chat Completions and Responses on its OpenAI-compatible route for the models it hosts other than Claude, such as bedrock/openai.gpt-oss-120b-1:0. None of them is in GET /v1/models, so pin the ID. Meadow holds no price for them. So a Claude model on /v1/chat/completions can only be served by OpenRouter, and a Gemini model on /v1/messages can only be served by OpenRouter. When no provider accepts the format for the model, you get a 400. A pinned ID counts only the pinned provider:
What was run on the hosted beta for this page: Google (Chat Completions), xAI (all three formats), Anthropic (Messages), and OpenRouter (all three formats), each blocking and streamed. OpenAI direct, Azure, and Bedrock have not served a call through the beta. Fireworks and DeepSeek have served no real call at all: Meadow follows their published documents. Claude on Vertex was served on a test server with an operator’s Google token, not with a stored service account key. See Known limits.
Responses
The output is trimmed. Meadow keeps no response state. A request with previous_response_id must pin one provider (see Pin a provider), or it gets a 400 previous_response_id requires pinning a single provider.
Messages
max_tokens is required, as it is at Anthropic. x-api-key works in place of Authorization, so Anthropic clients need no change.
The output is trimmed. POST /v1/messages/count_tokens does not exist and returns 404.
Model IDs
A model ID comes in two forms.
Names written for other routers work as pinned IDs. Read from the server’s code and its tests, and not yet run on the hosted beta:
The rule: after a prefix, an ID from GET /v1/models, or the OpenRouter name of a model behind its own provider, becomes the ID that provider uses, shown as provider_model_id in the list. The provider stays pinned, so there is no fallback to another provider. Text Meadow does not recognise is sent as written, as before. A key’s allowed_models is checked against the provider and ID the name resolves to, so a second spelling never reaches a model the key does not allow.
Meadow has no auto model that picks a model for you. With an OpenRouter key you can pin OpenRouter’s own router as openrouter/openrouter/auto. Not run on the hosted beta.
Either form may start with meadow/. Meadow drops that prefix and reads the rest as written, so meadow/claude-haiku-5-5 is the plain ID and meadow/anthropic/claude-haiku-5-5 is the pinned one. Use it with a tool that wants a <provider>/<model> name. The prefix also works in models, in a key’s allowed_models and in a project’s routing.models.per_model. Usage records keep requested_model as you sent it, and provider and model name the provider and the ID that served the call. Read from the server’s code and its tests. Not yet run on the hosted beta.
Plain IDs come from a fixed list inside Meadow (GET /v1/models). A plain ID that is not on it resolves in this order. Each step was run on the hosted beta.
- A provider’s documented alias routes like the model it names.
claude-haiku-4-5is Anthropic’s alias forclaude-haiku-4-5-20251001, so it can be served by any provider that serves that model. - An ID that starts with
claude-,gpt-(alsochatgpt-,o1,o3,o4),gemini-orgrok-goes to that family’s own provider (anthropic,openai,google,xai) exactly as written, when you have a provider key for it. No other provider is tried for such an ID. If the provider does not know the ID you get the provider’s own 404. - Anything else gets a 404 with
error.codemodel_not_found, as OpenAI and Anthropic answer a model they do not serve, so their SDKs raiseNotFoundError. The message names the ID and shows how to pin it. Seen on the hosted beta on 2026-11-28, onPOST /v1/chat/completions:
When the ID is close to IDs your key can call in that format, the message names up to three of them after the first sentence, nearest first: Close matches: "claude-haiku-4-5-20251001", "claude-haiku-5-5". The list never holds a model outside the key’s allowed_models, one that no stored provider key serves, or one a locked project excludes. Read from the server’s code and its tests. Not yet run on the hosted beta.
On POST /v1/messages the same 404 comes in Anthropic’s envelope, with "type":"not_found_error", error.details.error_code model_not_found and param model (seen on the hosted beta on 2026-11-28). Before 2026-11-28 both routes answered 400 with parameter_invalid.
That account had no OpenAI key. \u003c and \u003e are the JSON escapes for < and >: a JSON parser returns <provider>/<that provider's model id>. On the same account, which had an Anthropic key, claude-typo-9 went to Anthropic and came back as Anthropic’s own 404: {"type":"error","error":{"type":"not_found_error","message":"model: claude-typo-9"},...}.
Do: pin the provider when you want a model through a provider other than its own, for example openrouter/anthropic/claude-opus-4.5 or bedrock/<profile id>. Meadow passes a pinned ID through without checking it.
On a key with allowed_models, an unlisted ID is served only when the list names that plain ID or pins it to the same provider. OpenRouter differs here: its IDs are always author/slug, it resolves aliases to a canonical slug, and its model lookup returns 404 for an ID that is neither.
The prefix must be one of anthropic, openai, google, xai, openrouter, azure, bedrock, vertex, fireworks, or deepseek, or one of the three other spellings gemini, vertex_ai and x-ai. Anything else gets a 400 unknown model provider prefix. An OpenRouter ID keeps its own slash: openrouter/z-ai/glm-5.3. A Fireworks ID keeps its slashes too: fireworks/accounts/fireworks/models/kimi-k3.
Fireworks and DeepSeek serve only pinned IDs. None of their models is in GET /v1/models, and an unlisted plain ID such as deepseek-flash gets the 404 above. Write deepseek/deepseek-flash or fireworks/accounts/fireworks/models/<model>, with the ID from the provider’s own model page.
List the models your key can reach
The output is trimmed to two of 39 models. Each entry lists the providers that can serve the model with the provider keys you stored, in the order Meadow tries them by default, and the formats each accepts.
With the mdw CLI. mdw is sent to you during the beta. See Clients.
Three things to know about the list:
- It shows only models you have a usable provider key for. With no provider keys it is empty.
- A key with
allowed_modelssees only those models. A locked project hides providers its routing excludes. - It does not ask the provider. A listed model can still fail when your provider account does not allow it. In our test account, OpenRouter rejected most listed models with a 404 because of a setting on that OpenRouter account.
The list has OpenAI’s shape: object is list, and each entry has object, created (always 0) and owned_by, next to Meadow’s own providers. The OpenAI SDK’s client.models.list() reads it. GET /v1/models/{id} does not exist and returns 404.
Pin a provider
Two ways, with the same effect:
Or keep the plain ID and send "provider": {"only": ["google"]}. Routing and fallbacks covers provider in full.
A pinned call has no other provider to fall back to. If you pin a provider you have no provider key for, you get a 422:
What passes through unchanged
Meadow reads four fields of the request body: model, models, provider, and stream. Before it forwards the request it removes models and provider and replaces model with the provider’s own ID. Every other field goes to the provider with its value untouched, including fields Meadow has never heard of. The order of top-level fields can change.
Four exceptions to “untouched”:
- Meadow owns the names
providerandmodels. OpenRouter has its own request fields with those names, and you cannot send them through Meadow. A field Meadow does not know insideprovidergets a 400unknown field in provider routing. - Meadow sets
stream_options.include_usagetotrueon every streamed Chat Completions call and removes the usage-only chunk unless you asked for it. See Usage and cost. - On a key with
allowed_models, Meadow removespresetandroutefrom requests sent to OpenRouter. - For Azure, Bedrock, and Vertex, Meadow rewrites the URL, the authentication, and the envelope fields the host requires.
The model field in the response is the provider’s ID, which can differ from what you sent. A call to openrouter/z-ai/glm-5.3 answers with "model":"z-ai/glm-5.3".
Meadow checks the request before any provider sees it. These get a 400 from Meadow: a body that is not one JSON object, a duplicate field, a missing model, a missing messages or input, a missing max_tokens on Messages, a stream that is not a boolean, and a Content-Type other than application/json.
Response headers
An Anthropic call returns its rate-limit headers like this:
When a call fails
Read the status, then check for x-meadow-provider.
- The header is present on a 4xx: the provider rejected your request, and the body is in that provider’s shape. Google sends a JSON array, xAI sends
{"code": ..., "error": "..."}, and Anthropic sends{"type": "error", ...}. Fix the request. - The header is absent: the body is Meadow’s, in the route’s own format (OpenAI’s envelope, or Anthropic’s on
/v1/messages), witherror.type,error.codeanderror.message. A 502 lists every provider tried inerror.attempts.
Errors has the full list, and Routing and fallbacks shows each case.
API reference
Operations on this page: createChatCompletion, createResponse, createMessage, listModels.