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

# Read the prices Meadow charges usage at

GET https%3A%2F%2Fapi.usemeadow.ai/v1/pricing

Returns the price table Meadow uses to put a cost on a model call and a sandbox:
the same table, at the same `version`, that `price_version` on `GET /v1/usage`
names. It needs no key. OpenRouter's model list is public in the same way and
carries each model's prices as decimal strings
(https://openrouter.ai/docs/api-reference/models/get-models).

Prices are decimal strings in US dollars, written as the vendor's page shows
them: per million tokens for a model, per hour for a sandbox. Each entry names
the page it was read from (`source`) and the day (`checked`). `confirmed` is
false when no call has been compared with the vendor's bill.

`prices_as_of` gives, for each vendor, the day every one of its entries was last
compared with the vendor's page. A vendor whose date is more than
`stale_after_days` days old, or that has entries and no date, is listed in
`stale_vendors`. Its prices may be out of date: check them on the vendor's page
before you rely on them. The same 30-day rule fails Meadow's own price check
(`docs/runbooks/pricing.md`).


Reference: https://docs.usemeadow.ai/api-endpoints/usage/get-pricing

## Response

### 200

The price table.

- `version` (string, required) — The table's version. The same string as `price_version` on `GET /v1/usage`.
- `currency` (enum, required)
  - Allowed values: `USD`
- `unit` (string, required) — The unit of the prices
- `prices_as_of` (map from string to date, required) — For each vendor, the day (`YYYY-MM-DD`) every one of its entries was last compared with its pricing page.
- `stale_after_days` (integer, required) — The age in days after which a vendor's `prices_as_of` counts as stale.
- `stale_vendors` (list of string, required) — Vendors whose `prices_as_of` is older than `stale_after_days`, or that have entries and no date. Empty when every vendor is current.
- `models` (list of PricingModel, required)
- `tools` (list of PricingTool, required)
- `modifiers` (list of PricingModifier, required)
- `sandboxes` (list of PricingSandbox, required)
- `unpriced_providers` (list of PricingUnpricedProvider, optional) — Model providers whose calls Meadow stores with no cost on purpose, and why. A call through one has `cost_status` `price_unknown` with this `reason` as `cost_reason`, and a key with a dollar limit refuses a route that includes it.

## Errors

### 500 Internal Server Error

Meadow failed. Retry with backoff, and tell us if it persists.

- `error` (ErrorError, required)
- `request_id` (string, optional) — The same id as the `x-request-id` response header. Quote it when you report a problem.

## Types

### PricingModel

The prices of one model at one vendor.

- `provider` (string, required)
- `model` (string, required)
- `source` (string, required) — The vendor page the price was read from.
- `checked` (date, required) — The day the entry was read from that page.
- `confirmed` (boolean, required) — False when no call has been compared with the vendor's bill.
- `input` (string, optional)
- `output` (string, optional)
- `cache_read` (string, optional)
- `cache_write` (string, optional) — A 5 minute cache write.
- `cache_write_long` (string, optional) — A 1 hour cache write.
- `endpoint` (enum, optional) — Set to `regional` on a Bedrock price for a model id with a geographic or regional inference profile (`us.`, `eu.` and the like). Left out on the price for a `global.` model id and on every other vendor.
  - Allowed values: `regional`
- `tiers` (list of PricingTier, optional)
- `fast` (PricingRates, optional) — Token prices in US dollars per million tokens. A rate the vendor does not sell is left out.
- `service_tiers` (list of PricingServiceTier, optional)
- `from` (date, optional) — The price applies from this day.
- `until` (date, optional) — The price applies until this day.

### PricingTool

The price of one request to a vendor's server tool, in US dollars.

- `provider` (string, required)
- `tool` (string, required)
- `per_request` (string, required)
- `source` (string, required)
- `checked` (date, required)
- `confirmed` (boolean, required)

### PricingModifier

A multiplier on every token price when a call sets `field` to `value`.

- `provider` (string, required)
- `field` (string, required)
- `value` (string, required)
- `multiplier` (string, required)
- `source` (string, required)
- `checked` (date, required)
- `confirmed` (boolean, required)

### PricingSandbox

A sandbox vendor's prices, in US dollars per hour.

- `provider` (string, required)
- `cpu_hour` (string, required) — One vCPU for one hour.
- `memory_gib_hour` (string, required) — One GiB of memory for one hour.
- `disk_gib_hour` (string, required) — One GiB of disk for one hour.
- `gpus` (list of PricingGpu, required)
- `source` (string, required)
- `checked` (date, required)
- `confirmed` (boolean, required)

### PricingUnpricedProvider

- `provider` (string, required)
- `reason` (string, required) — The `cost_reason` every call through this provider gets.
- `source` (string, required) — The vendor page that was read.
- `checked` (date, required)

### ErrorError

- `type` (enum, required) — The class of the failure. - `invalid_request`: the request is malformed or breaks a rule (400), or is too large (413). - `conflict`: the request is valid and the current state refuses it (409). Before 2026-11-24 a 409 used `invalid_request`. - `unauthorized`: the key is missing, unknown, revoked, or expired (401). - `forbidden`: the key's scope or limit does not allow this, or the project's routing is locked (403). - `not_found`: no such resource or route (404). - `no_provider_key`: no stored credential can serve this request (422). - `all_providers_failed`: every vendor in the route was tried (502). - `provider_error`: a vendor failed and no fallback was possible (502). - `rate_limited`: too many requests (429). - `insufficient_quota`: a dollar `limit` on the key, or on a key above it, is spent (402). The name is OpenAI's. - `unavailable`: a dependency Meadow needs is not set up (503). - `internal`: Meadow failed (500), or the feature is not set up (501).
  - Allowed values: `invalid_request`, `unauthorized`, `forbidden`, `not_found`, `conflict`, `no_provider_key`, `all_providers_failed`, `provider_error`, `rate_limited`, `insufficient_quota`, `unavailable`, `internal`
- `message` (string, required) — A sentence for people. It can change, so do not match on it.
- `code` (string, optional) — A stable name for the specific failure. Every Meadow error carries one. `type` stays the general class, and several codes share a type. Branch on `code` when you need to tell two failures of one type apart, for example `api_key_expired` from `api_key_revoked`. The full list is in the Errors guide. A new code can be added at any time, so treat a code you do not know as its `type`. A spent limit (`key_request_limit_exceeded`, `key_token_limit_exceeded`) stays a 403 and not a 429, so a client that retries a 429 does not resend a call a spent key can never make. A spent dollar `limit` (`key_spend_limit_exceeded`) is a 402 for the same reason.
- `param` (string, optional) — The request field, query parameter or header the error is about, when there is one. A nested field is written with dots, such as `credentials.api_key`. Set on most validation errors (400).
- `attempts` (list of Attempt, optional) — The vendors Meadow tried for this request, in order. Present only when it tried at least one.
- `retry` (enum, optional) — Whether to send the same request again. Set on routes under `/v1/sandboxes` only. The values are BoxRouter's (https://boxrouter.ai/docs/error-codes). - `safe`: send the same request again, after `retry-after` seconds when the response has that header. A 429, a 409 `exec_start_in_progress` or `idempotency_request_in_progress`, a 502 `sandbox_unreachable`, and a 5xx on a `GET`, `PUT` or `DELETE`, on `POST /v1/sandboxes/route`, or on a sandbox create or background command start sent with `Idempotency-Key`. - `after_fix`: change the request, the key or the account first. Any other 4xx. - `check_outcome`: read the sandbox or the command before you send it again, because the work may have happened. A 5xx on any other `POST`, which includes a blocking command. - `never`: do not send it again. A 501. When the response has `x-should-retry`, `retry` is `safe` exactly when the header is `true`.
  - Allowed values: `safe`, `after_fix`, `check_outcome`, `never`
- `outcome` (enum, optional) — What happened to the work. Set on routes under `/v1/sandboxes` only. The values are BoxRouter's (https://boxrouter.ai/docs/error-codes). - `not_started`: nothing was changed. Every 4xx, a 501, and a 502 `sandbox_unreachable`. - `unknown`: the work may have happened. Any other 5xx. - `completed` and `partial`: the work happened, in whole or in part. Meadow does not send them today. Handle them as `unknown`. A sandbox create that fails after Meadow accepted it is not an error response: the create returns 202, and the sandbox later has `status` `failed` and a `failure_reason`.
  - Allowed values: `not_started`, `completed`, `partial`, `unknown`

### PricingTier

Higher prices for a prompt of at least `min_prompt_tokens` tokens.

- `min_prompt_tokens` (long, required)
- `input` (string, optional)
- `output` (string, optional)
- `cache_read` (string, optional)
- `cache_write` (string, optional) — A 5 minute cache write.
- `cache_write_long` (string, optional) — A 1 hour cache write.

### PricingRates

Token prices in US dollars per million tokens. A rate the vendor does not sell is left out.

- `input` (string, optional)
- `output` (string, optional)
- `cache_read` (string, optional)
- `cache_write` (string, optional) — A 5 minute cache write.
- `cache_write_long` (string, optional) — A 1 hour cache write.

### PricingServiceTier

Prices for the vendor's service tiers named in `names`, used when the vendor says one of them served the call.

- `names` (list of string, required)
- `input` (string, optional)
- `output` (string, optional)
- `cache_read` (string, optional)
- `cache_write` (string, optional) — A 5 minute cache write.
- `cache_write_long` (string, optional) — A 1 hour cache write.
- `tiers` (list of PricingTier, optional)

### PricingGpu

One GPU type's price per hour. A price the vendor does not sell is left out.

- `type` (string, required)
- `source` (string, required)
- `checked` (date, required)
- `confirmed` (boolean, required)
- `on_demand_hour` (string, optional)
- `spot_hour` (string, optional)
- `on_demand_confirmed` (boolean, optional) — Set when only the on-demand price is confirmed and `confirmed` is false for the spot price.

### Attempt

One try at one vendor, for a model call or a sandbox create.

- `provider` (enum, required) — The name of a vendor. Model providers and sandbox providers share one list. Model providers: `anthropic`, `openai`, `google`, `xai`, `azure`, `bedrock`, `vertex`, `openrouter`, `fireworks`, `deepseek`. Sandbox providers: `daytona`, `modal`.
  - Allowed values: `anthropic`, `openai`, `google`, `xai`, `azure`, `bedrock`, `vertex`, `openrouter`, `fireworks`, `deepseek`, `daytona`, `modal`
- `outcome` (enum, required) — How the try ended. - `served`: this vendor served the request. - `unsupported`: the vendor cannot do what was asked, such as a resource size, a network rule, or a model it does not offer. - `refused`: the vendor rejected the request or the stored credential. - `no_capacity`: the vendor had no capacity. - `timeout`: the vendor did not answer in time. - `rate_limited`: the vendor answered 429. - `error`: any other failure.
  - Allowed values: `served`, `unsupported`, `refused`, `no_capacity`, `timeout`, `rate_limited`, `error`
- `reason` (enum, optional) — A stable code for why the try ended as it did. It is narrower than `outcome`, and it is the code to branch on or to count. More values can be added: treat one you do not know like `vendor_error`. - `served`: this vendor served the request. - `no_capacity`: the vendor had no capacity. - `quota_exceeded`: the vendor account is out of quota or credit. - `rate_limited`: the vendor answered 429. - `timeout`: the vendor did not answer in time. - `auth_failed`: the vendor rejected the stored vendor key. - `invalid_request`: the vendor rejected the request itself. - `refused`: the vendor refused for another reason. - `unsupported`: the vendor cannot do what was asked, such as a model, a GPU type, a size or a network rule. - `no_provider_key`: skipped, because no usable vendor key was stored. - `image_pull_failed`, `build_failed`: the vendor could not pull or build the image (sandboxes). - `provider_lost`: the vendor lost the sandbox while it was starting. - `vendor_error`: any other failure.
  - Allowed values: `served`, `no_capacity`, `quota_exceeded`, `rate_limited`, `timeout`, `auth_failed`, `invalid_request`, `refused`, `unsupported`, `no_provider_key`, `image_pull_failed`, `build_failed`, `provider_lost`, `vendor_error`
- `started_at` (datetime, optional) — When Meadow started this try. Absent on attempts recorded before 2026-11-24.
- `finished_at` (datetime, optional) — When this try ended.
- `detail` (string, optional) — A short description of what happened, written by Meadow, such as `provider returned HTTP 404`. On a `served` sandbox attempt it reports resources the vendor granted that differ from the request, such as `provider granted cpu 2 instead of 1.5` or `gpu type H200 instead of H100`. It says `provider built a copy of the image for this size` when this create made a new Daytona snapshot for an `image_id`. On an `unsupported` attempt it carries the vendor's size limit, such as `daytona cannot serve this size: CPU request 8 exceeds maximum allowed per sandbox (4)`. Absent when there is nothing to say.
- `duration_ms` (integer, optional) — How long the try took, in milliseconds.

## Examples

**Response**

```json
{
  "version": "2026-11-28.5",
  "currency": "USD",
  "unit": "Model prices are US dollars per million tokens. Sandbox prices are US dollars per hour.",
  "prices_as_of": {
    "anthropic": "2026-11-28",
    "modal": "2026-11-28"
  },
  "stale_after_days": 30,
  "stale_vendors": [],
  "models": [
    {
      "provider": "anthropic",
      "model": "claude-haiku-4-5",
      "source": "https://platform.claude.com/docs/en/about-claude/pricing",
      "checked": "2026-11-25",
      "confirmed": true,
      "input": "1",
      "output": "5",
      "cache_read": "0.10",
      "cache_write": "1.25",
      "cache_write_long": "2"
    }
  ],
  "tools": [],
  "modifiers": [],
  "sandboxes": [
    {
      "provider": "modal",
      "cpu_hour": "0.141912",
      "memory_gib_hour": "0.024012",
      "disk_gib_hour": "0",
      "gpus": [],
      "source": "https://modal.com/pricing",
      "checked": "2026-11-25",
      "confirmed": true
    }
  ]
}
```

**SDK Code**

```python Two entries, shortened
import requests

url = "https://api.example.com/v1/pricing"

response = requests.get(url)

print(response.json())
```

```javascript Two entries, shortened
const url = 'https://api.example.com/v1/pricing';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Two entries, shortened
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.example.com/v1/pricing"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Two entries, shortened
require 'uri'
require 'net/http'

url = URI("https://api.example.com/v1/pricing")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
```

```java Two entries, shortened
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.example.com/v1/pricing")
  .asString();
```

```php Two entries, shortened
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.example.com/v1/pricing');

echo $response->getBody();
```

```csharp Two entries, shortened
using RestSharp;

var client = new RestClient("https://api.example.com/v1/pricing");
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
```

```swift Two entries, shortened
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "https://api.example.com/v1/pricing")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```