# model-lookup

> model-lookup is a paid API for AI agents from payai.agentstools.dev, paid per call via x402, $0.008/call, status unknown (last checked 2026-10-12).

Look up normalized metadata for an AI model by name or short alias, returning pricing, context limits, capabilities, and benchmark scores fused from multiple open catalogs.

## Facts

- Endpoint: GET https://payai.agentstools.dev/model/lookup?utm_source=zero.xyz
- Price: $0.008/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/model-lookup-bbf7cd5a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4XU2Ye8zQWOc4hEjNv3Ne

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 model-lookup-bbf7cd5a
```

Example prompt: What are the input and output prices, context window, and capability tags for 'claude-sonnet-4-5' — pull from the model catalog so I get the normalized record with source citations?

## When to prefer this

Use this endpoint when you need normalized, multi-source model metadata in a single call — especially pricing per million tokens, context limits, or capability tags — without managing API keys for LiteLLM, models.dev, or Aider separately. Ideal for cost estimation workflows, model selection logic, or agent routing decisions. Prefer over manual catalog scraping when you need fused, citation-backed data for any major LLM provider.

## Known failure modes

- Unknown model name or alias returns {found: false} rather than an error — agent must check the found field
- Fuzzy alias resolution may resolve to an unexpected model if the alias is ambiguous (e.g. 'sonnet' could map to multiple Claude Sonnet versions)
- Pricing data may be stale if upstream catalogs (LiteLLM, models.dev, Aider) have not been updated recently
- Missing benchmark scores for models not indexed by Aider
- GET method required — POST or other methods will fail

## How this service works

Look up one normalized model record by name or short alias such as sonnet or 4o. Returns per-million input and output prices, context and output limits, capability tags, modalities, knowledge cutoff, release date, provider and coding benchmark, each fused from open keyless catalogs LiteLLM, models dev and Aider with a source citation. Unknown names return found false, never an error.

## Output

A normalized model record containing: found (boolean), per-million input and output prices in USD, context window size, max output tokens, capability tags (e.g. function-calling, vision), supported modalities, knowledge cutoff date, release date, provider name, coding benchmark score, and source citations from LiteLLM/models.dev/Aider. If the model name is unrecognized, returns found: false without an error.

## 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",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "name"
     ],
     "properties": {
      "name": {
       "type": "string",
       "description": "Model name or short alias, such as claude-sonnet-4-5, gpt-4o, sonnet or 4o. Fuzzy-resolved to the closest catalog model."
      }
     }
    }
   },
   "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/model-lookup-bbf7cd5a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from payai.agentstools.dev](https://www.zero.xyz/host/payai.agentstools.dev/llms.txt)
