# modelprices.xyz GPT Pricing Table

> modelprices.xyz GPT 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 current per-token pricing for all GPT models (GPT-5, GPT-4o, GPT-4.1, o3, etc.) across every host that serves them — OpenAI, Azure, Bedrock, Vertex, OpenRouter, Fireworks — sorted cheapest first.

## Facts

- Endpoint: GET https://modelprices.xyz/gpt-pricing
- 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-gpt-pricing-table-d8a31e5e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5JFNU4jHamjgDyRwPyP-x

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-gpt-pricing-table-d8a31e5e
```

Example prompt: Pull the latest GPT pricing table from modelprices.xyz — I need input, output, cache, and batch costs per million tokens for every GPT model across OpenAI, Azure, Bedrock, Vertex, OpenRouter, and Fireworks, sorted cheapest first so I can pick the most cost-effective host.

## When to prefer this

Use this endpoint when you need a cross-provider GPT pricing comparison in a single call — specifically when you want to compare OpenAI, Azure, AWS Bedrock, Google Vertex, OpenRouter, and Fireworks side-by-side for GPT-family models. Prefer this over scraping individual provider pricing pages, or over sibling endpoints on modelprices.xyz that cover other model families (Claude, Bedrock-all, DeepInfra, etc.).

## Known failure modes

- Pricing data may be temporarily stale if upstream provider APIs are unavailable during hourly refresh
- Provider may not list all GPT variants if a host has not published pricing (row omitted)
- Payment failure (402) if USDC payment of $0.01 is not properly attached
- Network timeout if modelprices.xyz is temporarily unreachable

## How this service works

GPT pricing table: what every GPT model costs per token right now — GPT-5, GPT-5 mini, GPT-4o, GPT-4.1, o3 — from OpenAI and every provider that resells or hosts them (Bedrock, Azure, Vertex, OpenRouter, Fireworks). Input, output, cache and batch USD per 1M tokens, sorted cheapest first, so you can compare GPT inference cost across hosts and pick the cheapest place to run one. Normalized, cross-checked, refreshed hourly.

## Output

A normalized pricing table listing every GPT model variant (GPT-5, GPT-5 mini, GPT-4o, GPT-4.1, o3, etc.) available across all major hosts, with columns for input, output, cache, and batch prices in USD per 1M tokens, sorted ascending by cost. Data is refreshed hourly and cross-checked across providers.

## 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-gpt-pricing-table-d8a31e5e/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)
