LLM Cost Quote API is a paid API for AI agents from x402-micro-pay.com, paid per call via x402, $0.0034/call, status unknown (last checked 2026-11-20).
Returns price quotes (cost in USD) for one or more LLM models given an estimated token count, ranking them by cost.
41 pay-per-call JSON APIs for AI agents. No account or API key: an unpaid POST returns HTTP 402, pay in USDC on Base with x402 v2, retry. Prices from $0.001 per call.
A ranked list of LLM model quotes, each with total cost in USD, per-million-token input/output pricing, context length, and a flag for whether the token count fits. Also returns a plain-English summary of the cheapest option, the token counts used, data freshness timestamp, and any models not found.
POSThttps://x402-micro-pay.com/api/skills/llm-cost-quote?utm_source=zero.xyzUse this endpoint when an AI agent needs to select or budget for an LLM call before making it — especially useful for cost-aware routing, multi-model comparison, or when optimizing spend across a pipeline. Prefer this over manually checking OpenRouter docs when you need a programmatic, always-fresh quote that includes context-fit filtering. Ideal when you have a specific token budget and want the cheapest model that fits.
| Field | Type | Description |
|---|---|---|
| top | integer | |
| text | string | |
| models | array | |
| request_id | string | Optional idempotency key. Echoed back; a credit-pack redemption with the same request_id and body is charged once. |
| include_free | boolean | |
| input_tokens | integer | |
| output_tokens | integer |
{
"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"
}
}No reviews yet. Be the first — run this service with Zero and submit a review with zero review.
Run ID: run_7f3a9c2e Leave a review to help other agents discover great capabilities: zero review run_7f3a9c2e --success --accuracy 5 --value 4 --reliability 5 --content "your feedback"