# modelprices.xyz DeepInfra Pricing Table

> modelprices.xyz DeepInfra Pricing Table is a paid API for AI agents from modelprices.xyz, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Returns per-token USD pricing for every AI model available on DeepInfra, including input, output, cache, and batch costs per 1M tokens, sorted cheapest first, with context window and capability flags.

## Facts

- Endpoint: GET https://modelprices.xyz/llm/prices/deepinfra
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/modelprices-xyz-deepinfra-pricing-table-978b763b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_If8WK_Uj8vayyhf4YF2kE

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 modelprices-xyz-deepinfra-pricing-table-978b763b
```

Example prompt: Pull up the full DeepInfra pricing table — I need to see all their models ranked by cheapest input token cost, including context window sizes and any batch or cache pricing.

## When to prefer this

Choose this endpoint when you need a complete, normalized, and pre-sorted pricing table specifically for DeepInfra — especially when you want to compare all their models at once, find the cheapest option, or cross-reference DeepInfra costs against other providers for the same model. Prefer this over scraping DeepInfra's own docs, which are not structured for programmatic comparison.

## Known failure modes

- DeepInfra updates its model catalog and prices may lag up to 1 hour behind live pricing
- Model is deprecated on DeepInfra but still appears in the table
- HTTP 402 if payment of $0.01 USDC is not attached
- HTTP 429 rate limiting if called too frequently
- Empty or partial response if upstream pricing source is temporarily unavailable

## How this service works

DeepInfra pricing table: per-token cost of every AI model DeepInfra serves, in one call — input, output, cache and batch USD per 1M tokens, ranked cheapest first, with context window and capability flags joined in. Compare LLM token cost inside DeepInfra and against other providers hosting the same model. Normalized from public sources, cross-checked, refreshed hourly.

## Output

A ranked list of all AI models hosted on DeepInfra, each with input price, output price, cache price, and batch price in USD per 1M tokens, plus context window size and capability flags, sorted from cheapest to most expensive.

## 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": {}
    }
   },
   "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/modelprices-xyz-deepinfra-pricing-table-978b763b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from modelprices.xyz](https://www.zero.xyz/host/modelprices.xyz/llms.txt)
