# x402 Agent Tools – LLM Price Lookup

> x402 Agent Tools – LLM Price Lookup is a paid API for AI agents from x402-agent-tools.vercel.app, paid per call via x402, $0.002/call, status unknown (last checked 2026-11-01).

Returns current per-token pricing for LLM models, optionally filtered by model ID or name substring

## Facts

- Endpoint: GET https://x402-agent-tools.vercel.app/v1/prices/llm?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-agent-tools-llm-price-lookup-2bf91639
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Yp1jt8TwCbanp52H0tfQv

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 x402-agent-tools-llm-price-lookup-2bf91639
```

Example prompt: Can you look up the current token pricing for GPT-4o — both input and output costs per million tokens?

## When to prefer this

Choose this endpoint when an agent needs to programmatically look up or compare LLM token pricing without requiring API keys or account setup, paying only $0.002 USDC per call via x402. Ideal for cost-estimation workflows, model selection logic, or budget-aware routing decisions within an agent pipeline.

## Known failure modes

- No models match the provided query filter — returns an empty models array
- Invalid query parameter type causes a 400 error
- Payment not received or insufficient USDC balance results in a 402 Payment Required response
- Service temporarily unavailable returns a 5xx error

## How this service works

Pay-per-call tools for AI agents. USDC on Base or Solana via x402 v2; no keys, no accounts.

## Output

A JSON object containing a list of LLM models with their IDs, input cost per million tokens in USD, output cost per million tokens in USD, and the pricing unit label (e.g. 'USD per 1M tokens').

## 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",
     "properties": {
      "q": {
       "type": "string",
       "description": "Optional substring filter on model id or name"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "unit": "USD per 1M tokens",
  "models": [
   {
    "id": "openai/gpt-4o",
    "inputPerMTokUsd": 2.5,
    "outputPerMTokUsd": 10
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-agent-tools-llm-price-lookup-2bf91639/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-agent-tools.vercel.app](https://www.zero.xyz/host/x402-agent-tools.vercel.app/llms.txt)
