# datastand.dev LLM Cost Router

> datastand.dev LLM Cost Router is a paid API for AI agents from datastand.dev, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-15).

Ranks all current LLMs by estimated USD cost for a given token workload, returning per-MTok prices, cached-input rates, and context windows with verified source URLs.

## Facts

- Endpoint: GET https://datastand.dev/api/llm/route
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/datastand-dev-llm-cost-router-112557d8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_K1Pw7yTDw56Hm9wUtdVgp

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability datastand-dev-llm-cost-router-112557d8
```

Example prompt: Which LLM APIs are cheapest right now for a workload of 5000 input tokens and 1000 output tokens per request? Show me the full ranked list with prices per million tokens and context windows.

## When to prefer this

Use this endpoint when you need to programmatically select or recommend the most cost-effective LLM for a specific token workload, especially when you want verified, source-cited pricing rather than self-reported or stale figures. Prefer it over static pricing pages or manual comparison when building cost-aware routing logic for agents or pipelines. It is particularly valuable when filtering by provider or minimum context window is needed alongside cost ranking.

## Known failure modes

- Invalid or non-numeric token counts return a 400 error
- Unknown provider name in filter returns empty result set or 400
- Pricing table temporarily stale if weekly verification is delayed
- min_context value larger than any available model returns empty list
- Service unavailable returns 5xx with no ranked results

## How this service works

Name your token workload and get every current LLM ranked by estimated USD cost to run it, with per-million-token prices, cached-input rates, context windows and provider. Combines an operator-verified pricing table with the wider marketplace listing and says which source each row came from. Filter by minimum context window or by provider, or restrict to verified rows only. Use it to pick the cheapest model that can actually hold your prompt.

## Output

An ordered list of LLM models ranked from cheapest to most expensive for the specified token workload, each entry including the model name, provider, input/output price per MTok, cached-input rate, context window size, official source URL, and verification date.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "limit": {
       "type": "string",
       "description": "Rows per page, 1-100 (default 100)"
      },
      "offset": {
       "type": "string",
       "description": "Skip this many ranked models (default 0). Use page.next_offset from the previous response. A page past the end costs nothing."
      },
      "provider": {
       "type": "string",
       "description": "Filter to one vendor token, e.g. anthropic, openai, x-ai, mistralai, qwen. Matched exactly against the vendor (punctuation and case ignored, so x-ai and xai are the same token) — never as a prefix, because meta and meta-llama are different vendors. Every response carries providers_available; a token that matches nothing is refused for free and names the near misses."
      },
      "min_context": {
       "type": "string",
       "description": "Only models with at least this context window. Models whose window is null (not verified) are excluded and counted in filters.unknown_context_excluded."
      },
      "input_tokens": {
       "type": "string",
       "description": "Input tokens per request (default 1000)"
      },
      "output_tokens": {
       "type": "string",
       "description": "Output tokens per request (default 1000)"
      },
      "verified_only": {
       "type": "string",
       "description": "1/true to rank only operator-verified rows, dropping the marketplace catalog"
      },
      "include_unknown_context": {
       "type": "string",
       "description": "1/true to also rank models whose context window is unverified when min_context is set"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/datastand-dev-llm-cost-router-112557d8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from datastand.dev](https://www.zero.xyz/host/datastand.dev/llms.txt)
