# DopamineDesk AI Model Pricing API

> DopamineDesk AI Model Pricing API is a paid API for AI agents from ai-data-marketplace-1042299154756.us-central1.run.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Returns current per-token pricing and context window sizes for major AI language models across providers like OpenAI and Anthropic.

## Facts

- Endpoint: GET https://ai-data-marketplace-1042299154756.us-central1.run.app/api/v1/ai_model_pricing
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dopaminedesk-ai-model-pricing-api-3902537b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_d_JUl4ptx_um878XW9iLZ

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 dopaminedesk-ai-model-pricing-api-3902537b
```

Example prompt: Pull the latest pricing for OpenAI and Anthropic models — I need input cost, output cost, and context window for each so I can figure out which LLM is cheapest for my use case.

## When to prefer this

Choose this endpoint when you need structured, machine-readable AI model pricing data with context window details for cost optimization decisions, especially if you are already using the x402 USDC micropayment stack and want a single low-cost lookup rather than scraping multiple provider documentation pages.

## Known failure modes

- Invalid provider filter value returns empty models array
- Stale pricing data if upstream sources haven't updated recently — check updated_at timestamp
- Payment failure via x402 if USDC balance is insufficient results in 402 response
- Network timeout from Cloud Run cold start on first call

## How this service works

Fetch a current third-party aggregated model-pricing snapshot from LiteLLM. Buyers should verify final pricing with each provider.

## Output

A JSON object containing an array of AI model records — each with model ID, provider name, input cost per 1M tokens, output cost per 1M tokens, and context window size — plus a timestamp indicating when the pricing data was last updated.

## 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": {
      "providers": {
       "type": "string",
       "description": "Comma-separated list of providers to filter."
      }
     },
     "additionalProperties": true
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "success",
      "source",
      "source_url",
      "fetched_at",
      "caveat",
      "count",
      "models",
      "marketplace_metadata"
     ],
     "properties": {
      "count": {
       "type": "integer"
      },
      "caveat": {
       "type": "string"
      },
      "models": {
       "type": "array",
       "items": {
        "type": "string"
       }
      },
      "source": {
       "type": "string"
      },
      "success": {
       "type": "boolean"
      },
      "fetched_at": {
       "type": "string"
      },
      "source_url": {
       "type": "string"
      },
      "marketplace_metadata": {
       "type": "object",
       "required": [
        "data_mode",
        "billable",
        "availability",
        "source"
       ],
       "properties": {
        "source": {
         "type": "string"
        },
        "billable": {
         "type": "boolean"
        },
        "data_mode": {
         "type": "string"
        },
        "availability": {
         "type": "string"
        }
       },
       "additionalProperties": true
      }
     },
     "additionalProperties": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 30,
  "caveat": "Third-party aggregated pricing. Verify final purchasing decisions with the model...",
  "models": [
   "[nested detail omitted from the challenge header; see the full example in /openapi.json]"
  ],
  "source": "LiteLLM community pricing database",
  "success": true,
  "fetched_at": "2026-08-07T07:32:42.020Z",
  "source_url": "https://github.com/BerriAI/litellm/blob/main/model_prices_and_context_window.jso...",
  "marketplace_metadata": {
   "source": "LiteLLM community pricing database",
   "billable": true,
   "data_mode": "live_source",
   "availability": "operational"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/dopaminedesk-ai-model-pricing-api-3902537b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from ai-data-marketplace-1042299154756.us-central1.run.app](https://www.zero.xyz/host/ai-data-marketplace-1042299154756.us-central1.run.app/llms.txt)
