Skills Llm Cost Quote
by Grokzilla x402 Micro Pay in AI models & inference
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.
https://grokzilla.shop/api/skills/llm-cost-quote- Price
- $0.0034
- per call in USDC
- Uptime
- 98.8%
- last 30 days
- Response time
- 330 ms
- 530 ms slowest 5%
- Last check
- Passed
- 14 h ago, next any minute now
Reliability
Status and outage history · Atom feed · Watch with other listings
How to call it
POST https://grokzilla.shop/api/skills/llm-cost-quote
Each call costs $0.0034 in USDC on Base, paid with the request over x402.
Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.
Example request
From the listing.
POST https://grokzilla.shop/api/skills/llm-cost-quote
content-type: application/json
{
"input_tokens": 3000,
"models": [
"openai/gpt-4o-mini",
"google/gemini-2.5-flash"
],
"output_tokens": 400
}Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
include_free | boolean | No | Default: false. |
input_tokens | integer | No | |
models | array of string | No | |
output_tokens | integer | No | Default: 500. |
request_id | string | No | Optional idempotency key. Echoed back; a credit-pack redemption with the same request_id and body is charged once. |
text | string | No | |
top | integer | No | Default: 10. |
Example response
The provider's example. We can't check it without paying.
Example response, 53 lines
{
"charged": true,
"confidence": 0.97,
"data": {
"currency": "USD",
"input_tokens": 3000,
"missing_models": [],
"models_considered": 2,
"output_tokens": 400,
"price_fetched_at": "2026-10-17T11:12:57Z",
"quotes": [
{
"context_length": 128000,
"cost_usd": "0.00069",
"fits_context": true,
"input_usd_per_mtok": "0.15",
"model": "openai/gpt-4o-mini",
"name": "OpenAI: GPT-4o-mini",
"output_usd_per_mtok": "0.6",
"time_based_price": false
},
{
"context_length": 1048576,
"cost_usd": "0.0019",
"fits_context": true,
"input_usd_per_mtok": "0.3",
"model": "google/gemini-2.5-flash",
"name": "Google: Gemini 2.5 Flash",
"output_usd_per_mtok": "2.5",
"time_based_price": false
}
],
"token_source": "caller-supplied input_tokens"
},
"data_as_of": "2026-10-17T11:12:57Z",
"generated_at": "2026-10-17T11:12:57Z",
"next": [
"token_count"
],
"ok": true,
"service": "llm_cost_quote",
"skill": "llm_cost_quote",
"sources": [
{
"fetched_at": "2026-10-17T11:12:57Z",
"name": "OpenRouter public models list",
"url": "https://openrouter.ai/api/v1/models"
}
],
"summary": "cheapest: openai/gpt-4o-mini $0.00069 for 3000 in + 400 out tokens",
"version": "1.0.0",
"warnings": []
}Call it from code
The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.0034.
curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://grokzilla.shop/api/skills/llm-cost-quote' \
-H 'content-type: application/json' \
--data-raw '{"input_tokens":3000,"models":["openai/gpt-4o-mini","google/gemini-2.5-flash"],"output_tokens":400}'
# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://grokzilla.shop/api/skills/llm-cost-quote' \
-H 'content-type: application/json' \
--data-raw '{"input_tokens":3000,"models":["openai/gpt-4o-mini","google/gemini-2.5-flash"],"output_tokens":400}' \
| grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decodeJavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
// Pays at most $0.0034 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.0034" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.0034 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fgrokzilla.shop%2Fapi%2Fskills%2Fllm-cost-quote&method=POST
const res = await pay("https://grokzilla.shop/api/skills/llm-cost-quote", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({
"input_tokens": 3000,
"models": [
"openai/gpt-4o-mini",
"google/gemini-2.5-flash"
],
"output_tokens": 400
}),
});
console.log(res.status, await res.text());Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client
# Pays at most $0.0034 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.0034"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))
with x402_requests(client) as session:
res = session.post(
"https://grokzilla.shop/api/skills/llm-cost-quote",
json={
"input_tokens": 3000,
"models": [
"openai/gpt-4o-mini",
"google/gemini-2.5-flash",
],
"output_tokens": 400,
},
)
print(res.status_code, res.text)Security scan
No findings
We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 14 h ago | Passed | 402 | 254 ms | $0.0034 |
| 31 h ago | Passed | 402 | 264 ms | $0.0034 |
| 47 h ago | Passed | 402 | 184 ms | $0.0034 |
| 3 days ago | Passed | 402 | 251 ms | $0.0034 |
| 3 days ago | Passed | 402 | 234 ms | $0.0034 |
Show 10 older checks
| 5 days ago | Timed out | - | - | - |
| 7 days ago | Passed | 402 | 249 ms | $0.0034 |
| 7 days ago | Passed | 402 | 321 ms | $0.0034 |
| 8 days ago | Passed | 402 | 385 ms | $0.0034 |
| 9 days ago | Passed | 402 | 363 ms | $0.0034 |
| 9 days ago | Passed | 402 | 311 ms | $0.0034 |
| 10 days ago | Passed | 402 | 297 ms | $0.0034 |
| 10 days ago | Passed | 402 | 277 ms | $0.0034 |
| 11 days ago | Passed | 402 | 359 ms | $0.0034 |
| 11 days ago | Passed | 402 | 322 ms | $0.0034 |