grokzilla.shop / try

{ try it }

"skills": 33, // pay-per-call, no account, no API key
"protocol": "x402 v2 · scheme exact",
"network": "eip155:8453", // Base mainnet
"this_page_pays": false // "Send unpaid request" only shows the 402 challenge. Paying stays with your own wallet or agent.
optional · prompt only The Base address your agent pays from. It is only written into the copyable agent prompt so your agent knows which wallet to use. It is never sent to the server and nothing is signed here.

← all 33 skills

"llm-cost-quote": { LLM Cost Quote $0.0034 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.
"method": "POST", "content_type": "application/json",
"price_usd": 0.0034, // 3400 atomic USDC (6 decimals)
"network": "eip155:8453", // Base mainnet
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", // USDC
"payTo": "0xc22f9CAEBAc37fE72D5142f35f21f6696Ea9Ef69",
"you_provide": { // JSON body fields
optional string The prompt text to price (tokens are approximated). Send text or input_tokens. Optional · string max length 400000
optional integer Input token count, if you already know it. Send text or input_tokens. Optional · integer min 0 · max 10000000 Example: 3000
optional integer Expected output tokens (default 500). Optional · integer min 0 · max 1000000 · default 500 Example: 400
optional array of string Optional JSON array of OpenRouter model ids, e.g. ["openai/gpt-4o-mini"]. Optional · array of string Example: ["openai/gpt-4o-mini", "google/gemini-2.5-flash"]
optional integer How many cheapest models to list when models is not given (default 10). Optional · integer min 1 · max 50 · default 10
optional boolean true includes $0 models in the ranking. Optional · boolean default false
optional string Value for `request_id`. Optional · string min length 1 · max length 64
},
"request_body": // live, from your inputs
{
  "input_tokens": 3000,
  "output_tokens": 400,
  "models": [
    "openai/gpt-4o-mini",
    "google/gemini-2.5-flash"
  ]
}
"you_get": { // HTTP 200 application/json after payment
"output_schema":
{
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "skill": {
      "type": "string"
    },
    "service": {
      "type": "string"
    },
    "version": {
      "type": "string"
    },
    "summary": {
      "type": "string"
    },
    "data": {
      "type": "object",
      "properties": {
        "input_tokens": {
          "type": "integer"
        },
        "output_tokens": {
          "type": "integer"
        },
        "token_source": {
          "type": "string"
        },
        "models_considered": {
          "type": "integer"
        },
        "quotes": {
          "type": "array",
          "items": {
            "type": "object"
          }
        },
        "missing_models": {
          "type": "array"
        },
        "price_fetched_at": {
          "type": "string"
        },
        "currency": {
          "type": "string"
        }
      }
    },
    "confidence": {
      "type": "number"
    },
    "sources": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "fetched_at": {
            "type": "string"
          }
        }
      }
    },
    "generated_at": {
      "type": "string"
    },
    "data_as_of": {
      "type": "string"
    },
    "charged": {
      "type": "boolean"
    },
    "warnings": {
      "type": "array"
    },
    "next": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "ok",
    "skill"
  ]
}
"example":
{
  "ok": true,
  "skill": "llm_cost_quote",
  "service": "llm_cost_quote",
  "version": "1.0.0",
  "summary": "cheapest: openai/gpt-4o-mini $0.00069 for 3000 in + 400 out tokens",
  "data": {
    "input_tokens": 3000,
    "output_tokens": 400,
    "token_source": "caller-supplied input_tokens",
    "models_considered": 2,
    "quotes": [
      {
        "model": "openai/gpt-4o-mini",
        "name": "OpenAI: GPT-4o-mini",
        "cost_usd": "0.00069",
        "input_usd_per_mtok": "0.15",
        "output_usd_per_mtok": "0.6",
        "context_length": 128000,
        "fits_context": true,
        "time_based_price": false
      },
      {
        "model": "google/gemini-2.5-flash",
        "name": "Google: Gemini 2.5 Flash",
        "cost_usd": "0.0019",
        "input_usd_per_mtok": "0.3",
        "output_usd_per_mtok": "2.5",
        "context_length": 1048576,
        "fits_context": true,
        "time_based_price": false
      }
    ],
    "missing_models": [],
    "price_fetched_at": "2026-10-17T11:12:57Z",
    "currency": "USD"
  },
  "confidence": 0.97,
  "sources": [
    {
      "name": "OpenRouter public models list",
      "url": "https://openrouter.ai/api/v1/models",
      "fetched_at": "2026-10-17T11:12:57Z"
    }
  ],
  "generated_at": "2026-10-17T11:12:57Z",
  "data_as_of": "2026-10-17T11:12:57Z",
  "charged": true,
  "warnings": [],
  "next": [
    "token_count"
  ]
}
},
"flow": [
  1. POST https://grokzilla.shop/api/skills/llm-cost-quote with the JSON body, no payment header
  2. ← 402 Payment Required + PAYMENT-REQUIRED header: base64 JSON {x402Version: 2, accepts: [{scheme: "exact", network: "eip155:8453", asset: USDC, amount: "3400", payTo}]} (same JSON in the body)
  3. your x402 client checks amount ≤ $0.0034 and signs a USDC transfer authorization to payTo with your wallet
  4. retry the same POST with PAYMENT-SIGNATURE: <base64> (x402 v2) or X-PAYMENT (v1 clients)
  5. ← 200 OK with the result JSON + PAYMENT-RESPONSE header (base64 settlement receipt, tx hash on Base)
],
"copy": { // fills in from your inputs as you type
"agent_prompt"

        
"curl" // unpaid: shows the 402

        
"agentcash" // pays from your AgentCash wallet

        
},
"try": // POSTs unpaid to /api/skills/llm-cost-quote on this host and decodes the 402. Never pays.
}