# Grokzilla LLM Cost Quote

> Grokzilla LLM Cost Quote is a paid API for AI agents from grokzilla.shop, paid per call via x402, $0.0034/call, status unknown (last checked 2026-10-27).

Estimates the cost of running a prompt across LLM models by looking up OpenRouter's live price list, returning models ranked cheapest first with a price-fetched-at timestamp.

## Facts

- Endpoint: POST https://grokzilla.shop/api/skills/llm-cost-quote?utm_source=zero.xyz
- Price: $0.0034/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-27
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/grokzilla-llm-cost-quote-8a2a3978
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jj70m3Kih_kjLMFfQpOhf

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 grokzilla-llm-cost-quote-8a2a3978 -d '<json body>'
```

Example prompt: What would it cost to run this text through the top 5 cheapest LLM models on OpenRouter, assuming 500 output tokens? Here's the text: 'Summarize the quarterly earnings report and highlight key risks.' Show me models ranked cheapest first.

## When to prefer this

Use this endpoint when you need real-time LLM pricing data from OpenRouter to make cost-aware model selection decisions, especially when comparing multiple models before committing to an API call. Prefer it over hardcoded pricing tables when you need up-to-date prices with time-of-day adjustments. It's ideal for agents that route tasks to models dynamically based on cost constraints.

## Known failure modes

- OpenRouter price list unavailable — returns error, no charge applied
- No models match the specified filter — returns empty result, no charge applied
- text exceeds 400,000 character limit — validation error
- input_tokens or output_tokens out of allowed range — validation error
- models array exceeds 25 items — validation error
- top parameter outside 1–50 range — validation error

## How this service works

Text or token counts in, cost per model out, cheapest first, from OpenRouter's public price list with a price-fetched-at timestamp. Applies time-of-day pricing. Not charged if the price list is unavailable or no model matches.

## Output

A list of LLM models ranked cheapest first, each with its cost estimate for the given input text or token counts, plus a price-fetched-at timestamp reflecting when OpenRouter's price list was retrieved. Time-of-day pricing adjustments are applied. If the price list is unavailable or no models match, no charge is incurred and an appropriate response is returned.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "top": {
   "type": "integer",
   "default": 10,
   "maximum": 50,
   "minimum": 1
  },
  "text": {
   "type": "string",
   "maxLength": 400000
  },
  "models": {
   "type": "array",
   "items": {
    "type": "string",
    "maxLength": 120
   },
   "maxItems": 25
  },
  "request_id": {
   "type": "string",
   "pattern": "^[A-Za-z0-9._:-]+$",
   "maxLength": 64,
   "minLength": 1,
   "description": "Optional idempotency key. Echoed back; a credit-pack redemption with the same request_id and body is charged once."
  },
  "include_free": {
   "type": "boolean",
   "default": false
  },
  "input_tokens": {
   "type": "integer",
   "maximum": 10000000,
   "minimum": 0
  },
  "output_tokens": {
   "type": "integer",
   "default": 500,
   "maximum": 1000000,
   "minimum": 0
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "data": {
   "quotes": [
    {
     "name": "OpenAI: GPT-4o-mini",
     "model": "openai/gpt-4o-mini",
     "cost_usd": "0.00069",
     "fits_context": true,
     "context_length": 128000,
     "time_based_price": false,
     "input_usd_per_mtok": "0.15",
     "output_usd_per_mtok": "0.6"
    },
    {
     "name": "Google: Gemini 2.5 Flash",
     "model": "google/gemini-2.5-flash",
     "cost_usd": "0.0019",
     "fits_context": true,
     "context_length": 1048576,
     "time_based_price": false,
     "input_usd_per_mtok": "0.3",
     "output_usd_per_mtok": "2.5"
    }
   ],
   "currency": "USD",
   "input_tokens": 3000,
   "token_source": "caller-supplied input_tokens",
   "output_tokens": 400,
   "missing_models": [],
   "price_fetched_at": "2026-10-17T11:12:57Z",
   "models_considered": 2
  },
  "next": [
   "token_count"
  ],
  "skill": "llm_cost_quote",
  "charged": true,
  "service": "llm_cost_quote",
  "sources": [
   {
    "url": "https://openrouter.ai/api/v1/models",
    "name": "OpenRouter public models list",
    "fetched_at": "2026-10-17T11:12:57Z"
   }
  ],
  "summary": "cheapest: openai/gpt-4o-mini $0.00069 for 3000 in + 400 out tokens",
  "version": "1.0.0",
  "warnings": [],
  "confidence": 0.97,
  "data_as_of": "2026-10-17T11:12:57Z",
  "generated_at": "2026-10-17T11:12:57Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/grokzilla-llm-cost-quote-8a2a3978/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from grokzilla.shop](https://www.zero.xyz/host/grokzilla.shop/llms.txt)
