{"uid":"cap_6l5ZEiSUir3sUSkLzoeSV","slug":"annalist-ai-model-pricing-77c252ae","name":"Annalist AI Model Pricing","description":"AI model prices per million tokens (input, output, cache, batch) with context window, for about 4,000 models across providers. With model=: its price history and the same model on other providers. Without: a list filtered by provider, mode, min_context and max_input price, sorted by input, output or context. History from January 2026. Source: LiteLLM's open price file (MIT). Signed.","url":"https://api.annalist.dev/v1/ai/prices?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"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","properties":{"mode":{"type":"string","description":"chat, embedding, image_generation..."},"sort":{"enum":["input","output","context"],"type":"string"},"limit":{"type":"string"},"model":{"type":"string"},"provider":{"type":"string"},"max_input":{"type":"string","description":"max input price, USD per million tokens"},"min_context":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_cF9RXaBngnhFdK0qMqevI","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns current and historical pricing per million tokens (input, output, cache, batch) for ~4,000 AI models across providers, with filtering and sorting options","exampleAgentPrompt":"What's the current price per million tokens for GPT-4o, and are there cheaper alternatives with at least 128k context — sorted by input price?","exampleUseCases":[{"title":"Find cheapest model for a budget","prompt":"I need to pick an AI model for my app but I can't spend more than $0.50 per million input tokens — show me all chat models under that price, sorted by input cost."},{"title":"Track price drops for a specific model","prompt":"Has the price of Claude 3.5 Sonnet changed since January 2026? Show me its full price history."},{"title":"Compare same model across providers","prompt":"I want to use Llama 3.1 70B — which providers offer it and what are their prices per million tokens for input and output?"}],"resultDescription":"A JSON response (cryptographically signed) containing per-model pricing data: input, output, cache, and batch costs in USD per million tokens, context window size, and provider info. When a model is specified, also includes price history and cross-provider listings. Without a model, returns a filtered and sorted list of models matching the query parameters.","failureModes":["Unknown model name returns empty result or error","Provider name mismatch returns no results","Invalid sort enum value returns 400 error","max_input or min_context with non-numeric string causes parse error","Rate limiting or payment failure via x402 returns 402 Payment Required","History only available from January 2026; earlier requests return no historical data"],"whenToPreferThis":"Use this endpoint when you need accurate, up-to-date, cryptographically signed AI model pricing data across a large number of providers (~4,000 models). Prefer it over scraping provider websites or using stale cached data. Ideal for cost optimization agents, model selection workflows, budget-aware routing, or monitoring price changes over time. The LiteLLM-sourced data and broad model coverage make it the most comprehensive single source for cross-provider LLM pricing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-21T18:42:33.656Z","isFirstParty":false,"canonicalSlug":"annalist-ai-model-pricing-77c252ae"}