{"uid":"cap_jj70m3Kih_kjLMFfQpOhf","slug":"grokzilla-llm-cost-quote-8a2a3978","name":"Grokzilla LLM Cost Quote","description":"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.","url":"https://grokzilla.shop/api/skills/llm-cost-quote?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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}}},"responseSchema":{"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"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0034","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.0034/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0034","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0034","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_fE0B8JvrnY3Fj7Rpwgbj3","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0034","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Pre-flight LLM cost check","prompt":"Before I run my batch job, can you get me price quotes for sending this 2000-word document through the 10 cheapest models on OpenRouter with 500 output tokens? I want to know which one is most cost-effective."},{"title":"Budget-constrained model selection","prompt":"I've got a tight budget. What are the top 3 cheapest models on OpenRouter for a prompt that's about 1500 input tokens and 300 output tokens? Include free models too."},{"title":"Dynamic cost comparison for agent routing","prompt":"My agent needs to pick a model for each task at runtime. Can you quote me the cost for this text across the 25 cheapest OpenRouter models with 500 output tokens so I can route to the best value option?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-27T12:35:53.369Z","isFirstParty":false,"canonicalSlug":"grokzilla-llm-cost-quote-8a2a3978"}