{"api":"v1","generated_at":"2026-10-13T21:39:36.800Z","licence":{"name":"CC BY 4.0","url":"https://creativecommons.org/licenses/by/4.0/","attribution":"TOLL, with a link to the page cited"},"page":"https://tollindex.com/e/agentstoolshub-com-api-v1-dev-llm-cost-calculator-522fbc","pinned_page":"https://tollindex.com/e/agentstoolshub-com-api-v1-dev-llm-cost-calculator-522fbc/at/2026-10-13T14-08Z","pinned":false,"method":"https://tollindex.com/ledger/method","snapshot_at":"2026-10-13T14:08:52.397Z","snapshot_stamp":"2026-10-13T14-08Z","endpoint":{"slug":"agentstoolshub-com-api-v1-dev-llm-cost-calculator-522fbc","canonical_url":"https://agentstoolshub.com/api/v1/dev/llm-cost-calculator","resource":"https://agentstoolshub.com/api/v1/dev/llm-cost-calculator","http_method":"GET","type":"http","x402_version":2,"registries":["cdp"],"primary_registry":"cdp","curated_by_coinbase":false,"description":"Calculate the API cost of an LLM call: input and output tokens × published per-million prices for 15 current models (OpenAI, Anthropic, Google, DeepSeek, xAI, Meta). Batch multiplier included for monthly estimates. Use this when an agent needs to tokens × current per-model prices = USD.","service_name":"AgentTools","declared_category":null,"declared_tags":["dev","crypto-dev"],"route_template":null,"registry_updated":"2026-10-11T22:54:14.747Z"},"derived":{"note":"fields no registry supplies; TOLL derives them and marks them derived on the page","title":"dev llm cost calculator","category":"inference","first_observed_by_toll":"2026-10-11T21:56:34.976Z","last_observed_by_toll":"2026-10-13T14:08:52.397Z","observation_began":"2026-09-10"},"presence":{"listed_now":true,"first_absent_at":null,"delisting_confirmed_at":null,"events":[{"registry":"cdp","at":"2026-10-11T21:56:34.976Z","event":"listed"}]},"accepts":[{"registry":"cdp","ordinal":0,"network":"eip155:8453","asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","asset_name":"USD Coin","symbol":"USDC","decimals":6,"amount_display":"0.002 USDC","amount_units":0.002,"decimals_known":true,"pay_to":"0x8a0F2b0a6C82D1c54B16E2e4DEcd18fF0802b0f6","scheme":"exact"}],"counters":{"observed_at":"2026-10-13T14:08:52.397Z","calls_30d":2,"unique_payers_30d":2,"last_called_at":"2026-10-11T22:54:14.584Z"},"validation":{"latest":{"observed_at":"2026-10-13T10:28:34.175Z","state":"pass","failed_checks":[],"endpoint_http_status":402,"run_id":"daily-2026-10-13"},"uptime":[{"days":7,"observed":3,"passed":3,"ratio":1},{"days":30,"observed":3,"passed":3,"ratio":1},{"days":90,"observed":3,"passed":3,"ratio":1}],"history_90d":[{"observed_at":"2026-10-13T10:28:34.175Z","state":"pass","failed_checks":[],"run_id":"daily-2026-10-13","state_changed":false},{"observed_at":"2026-10-12T07:49:13.103Z","state":"pass","failed_checks":[],"run_id":"daily-2026-10-12","state_changed":false},{"observed_at":"2026-10-12T05:27:12.368Z","state":"pass","failed_checks":[],"run_id":"new-after-daily-2026-10-11","state_changed":true}]},"seller":{"wallet":"0x8a0F2b0a6C82D1c54B16E2e4DEcd18fF0802b0f6","page":"https://tollindex.com/seller/0x8a0F2b0a6C82D1c54B16E2e4DEcd18fF0802b0f6","endpoints":148,"hosts":2},"reports":0,"registry_record":{"cdp":[{"tags":["dev","crypto-dev"],"type":"http","accepts":[{"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","extra":{"name":"USD Coin","version":"2"},"payTo":"0x8a0F2b0a6C82D1c54B16E2e4DEcd18fF0802b0f6","amount":"2000","scheme":"exact","network":"eip155:8453","maxTimeoutSeconds":300}],"quality":{"lastCalledAt":"2026-10-11T22:54:14.584Z","l30DaysTotalCalls":2,"l30DaysUniquePayers":2},"resource":"https://agentstoolshub.com/api/v1/dev/llm-cost-calculator","extensions":{"bazaar":{"info":{"input":{"type":"http","method":"GET","queryParams":{"calls":1,"model":"gpt-4o","inputTokens":12000,"outputTokens":1500}},"output":{"type":"json","example":{"tool":"llm-cost-calculator","result":{"steps":["input: 12,000 ÷ 1e6 × $2.5","output: 1,500 ÷ 1e6 × $10","× 1 call(s) = total"],"table":{"rows":[["gpt-5","OpenAI",1.25,10],["gpt-5-mini","OpenAI",0.25,2],["gpt-4.1","OpenAI",2,8],["gpt-4.1-mini","OpenAI",0.4,1.6],["gpt-4o","OpenAI",2.5,10],["o4-mini","OpenAI",1.1,4.4],["claude-opus-4","Anthropic",15,75],["claude-sonnet-4","Anthropic",3,15],["claude-haiku-4","Anthropic",0.8,4],["gemini-2.5-pro","Google",1.25,10],["gemini-2.5-flash","Google",0.3,2.5],["gemini-2.0-flash","Google",0.1,0.4],["deepseek-v3","DeepSeek",0.27,1.1],["grok-3","xAI",3,15],["llama-4-maverick","Meta",0.22,0.88]],"columns":["Model","Vendor","$/M input","$/M output"]},"value":0.045,"answer":"$0.0450","details":[{"label":"Input cost","value":"$0.030000 (12,000 tok × $2.5/M)"},{"label":"Output cost","value":"$0.015000 (1,500 tok × $10/M)"},{"label":"Per call","value":"$0.045000"},{"label":"Projected monthly (1 call/day)","value":"$1.3500"}],"answerLabel":"Cost — OpenAI gpt-4o"}}}},"schema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["inputTokens"],"properties":{"calls":{"type":"number","description":"Number of calls"},"model":{"enum":["gpt-5","gpt-5-mini","gpt-4.1","gpt-4.1-mini","gpt-4o","o4-mini","claude-opus-4","claude-sonnet-4","claude-haiku-4","gemini-2.5-pro","gemini-2.5-flash","gemini-2.0-flash","deepseek-v3","grok-3","llama-4-maverick"],"type":"string","description":"Model"},"inputTokens":{"type":"number","description":"Input tokens"},"outputTokens":{"type":"number","description":"Output tokens"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}}},"analytics":{}},"description":"Calculate the API cost of an LLM call: input and output tokens × published per-million prices for 15 current models (OpenAI, Anthropic, Google, DeepSeek, xAI, Meta). Batch multiplier included for monthly estimates. Use this when an agent needs to tokens × current per-model prices = USD.","lastUpdated":"2026-10-11T22:54:14.747Z","serviceName":"AgentTools","x402Version":2}]}}