# FreeTier Agent API — LLM Pricing Lookup

> FreeTier Agent API — LLM Pricing Lookup is a paid API for AI agents from freetier-agent-api.pages.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-18).

Returns AI model pricing data (input/output cost per million tokens, context window size) with optional filtering by provider, free tier, vision, tools support, and more

## Facts

- Endpoint: GET https://freetier-agent-api.pages.dev/api/llm-pricing?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/freetier-agent-api-llm-pricing-lookup-85472d48
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bi2mW7W9li31aN1LgJ1z4

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 freetier-agent-api-llm-pricing-lookup-85472d48
```

Example prompt: What are the cheapest AI models with at least 128k context that support vision and tool use — show me up to 10 results sorted by input cost?

## When to prefer this

Use this endpoint when an AI agent needs up-to-date, structured LLM pricing data with flexible filtering — especially when comparing models across providers by cost, context window, or capability (vision, tools). Prefer this over static datasets or web scraping when you need cited, machine-readable pricing that includes free tier information.

## Known failure modes

- Invalid enum value for sort/free/vision/tools parameters returns an error
- No models match the filter criteria — returns empty models array
- min_context or limit supplied as non-numeric string may cause parsing errors
- Payment not fulfilled (x402) — endpoint returns 402 Payment Required before data is served

## How this service works

Pay-per-call data API for AI agents: AI model prices and cost calculator, 4,259 MCP servers, email domain checks, text-to-JSON extraction, country/holiday/currency lookup, page and link checks, page-to-markdown, 2,230 verified APIs. x402, USDC on Base, no signup. Sources cited in every response.

## Output

A JSON object containing a count of matched models and an array of model objects, each with model ID, provider, input price per million USD, output price per million USD, and max input tokens. Also includes source citations and free tier details where applicable.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "q": {
       "type": "string"
      },
      "free": {
       "enum": [
        "yes"
       ],
       "type": "string"
      },
      "sort": {
       "enum": [
        "input",
        "output",
        "context"
       ],
       "type": "string"
      },
      "limit": {
       "type": "string"
      },
      "tools": {
       "enum": [
        "yes"
       ],
       "type": "string"
      },
      "vision": {
       "enum": [
        "yes"
       ],
       "type": "string"
      },
      "provider": {
       "type": "string"
      },
      "min_context": {
       "type": "string"
      },
      "max_input_per_m": {
       "type": "string"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 1,
  "models": [
   {
    "id": "gpt-4o-mini",
    "provider": "openai",
    "input_per_m_usd": 0.15,
    "max_input_tokens": 128000,
    "output_per_m_usd": 0.6
   }
  ],
  "sources": [],
  "free_tiers": []
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/freetier-agent-api-llm-pricing-lookup-85472d48/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from freetier-agent-api.pages.dev](https://www.zero.xyz/host/freetier-agent-api.pages.dev/llms.txt)
