# GPT Shop LLM Price Lookup

> GPT Shop LLM Price Lookup is a paid API for AI agents from api.gptshopltd.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-19).

Returns a list of LLM models with their current input and output pricing per million tokens, optionally filtered by model ID or name.

## Facts

- Endpoint: GET https://api.gptshopltd.com/v1/prices/llm?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gpt-shop-llm-price-lookup-e1b9f9c0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2Hb6l6DOSyuf9j4jQexSN

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 gpt-shop-llm-price-lookup-e1b9f9c0
```

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

## When to prefer this

Choose this endpoint when you need current LLM token pricing data without API keys or account setup, especially in autonomous agent contexts where micropayment-based access (x402/USDC) is preferred over subscription APIs. Ideal for cost-comparison workflows or dynamic model selection based on price.

## Known failure modes

- No models returned if filter query string matches nothing
- Stale pricing if the backend cache is not updated frequently
- Payment failure if USDC micropayment via x402 is not correctly submitted
- 400/402 errors if the x402 payment header is missing or malformed

## 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, each with a model ID, input price in USD per 1 million tokens, and output price in USD per 1 million tokens, plus the pricing unit label.

## 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/gpt-shop-llm-price-lookup-e1b9f9c0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.gptshopltd.com](https://www.zero.xyz/host/api.gptshopltd.com/llms.txt)
