{"uid":"cap_GzCUXJA2foPPWR1QROPAX","slug":"saylor-innovations-llm-model-pricing-context-lookup-13dde3da","name":"Saylor Innovations LLM Model Pricing & Context Lookup","description":"LLM model pricing and context window lookup - input and output price per million tokens, max tokens and capabilities for OpenAI, Anthropic, Google and more","url":"https://saylorinnovations.com/api/llm/models?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","required":["q"],"properties":{"q":{"type":"string","description":"Text the model id contains, e.g. gpt-4o, claude, gemini"},"limit":{"type":"string","description":"optional 1-50, default 10"},"provider":{"type":"string","description":"optional provider, e.g. openai, anthropic, gemini, bedrock"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","required":["matched","models"],"properties":{"note":{"type":["string","null"],"description":"Caveat or context for reading the result"},"query":{"description":"The query as the server interpreted it"},"models":{"type":"array","items":{"type":"object","properties":{"mode":{"description":"Mode used"},"model":{"type":"string","description":"Model"},"provider":{"type":["string","null"],"description":"Provider of the data"},"supports":{"type":"array","items":{"type":"string"}},"deprecation_date":{"description":"Deprecation date"},"max_input_tokens":{"type":["number","null"],"description":"Max input tokens"},"max_output_tokens":{"type":["number","null"],"description":"Max output tokens"},"input_usd_per_1m_tokens":{"type":["number","null"],"description":"Input usd per 1m tokens"},"output_usd_per_1m_tokens":{"type":["number","null"],"description":"Output usd per 1m tokens"},"cached_input_usd_per_1m_tokens":{"description":"Cached input usd per 1m tokens"}}}},"source":{"type":"string","description":"Data source the values come from"},"matched":{"type":"number","description":"Number of items that matched the query"},"checked_at":{"type":["string","null"],"description":"Time the check was run (UTC)"}}}}}}},"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_LCEki_vbojNkwG_FksuT2","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 pricing (input/output USD per million tokens), context window sizes, and capability flags for LLM models from OpenAI, Anthropic, Google, and other providers","exampleAgentPrompt":"What's the input and output price per million tokens for gpt-4o, and how large is its context window? Search for 'gpt-4o' and return up to 5 results.","exampleUseCases":[{"title":"Cost estimation before model selection","prompt":"I'm deciding between claude-3-5-sonnet and gpt-4o for a project — can you look up the input and output pricing per million tokens for both so I can compare costs?"},{"title":"Context window check for long-document task","prompt":"I need to process a very long document — can you check what the maximum input token limit is for gemini-1.5-pro?"},{"title":"Audit deprecated models in production","prompt":"We're using a few Anthropic models in production — can you check if any claude models are deprecated or have a deprecation date set?"}],"resultDescription":"A JSON object containing the number of matched models and an array of model records, each with the model ID, provider, input and output USD cost per million tokens, cached input pricing, max input and output token counts, supported capability flags, deprecation date, the data source used, and the UTC timestamp when the data was last checked. A note field may provide caveats about the data.","failureModes":["Missing required query parameter 'q' returns an error","Query string matches no models, returning matched=0 and an empty models array","Provider filter typo returns no results","Pricing data may be stale if checked_at timestamp is old","Limit parameter outside 1-50 range may be rejected or clamped"],"whenToPreferThis":"Use this endpoint when you need machine-readable LLM pricing, context window sizes, or capability metadata for one or more specific models — especially when comparing costs across providers like OpenAI, Anthropic, Google, or AWS Bedrock. Prefer this over manually checking provider docs when you need structured data that can be used in cost calculations or routing logic.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-16T12:38:40.697Z","isFirstParty":false,"canonicalSlug":"saylor-innovations-llm-model-pricing-context-lookup-13dde3da"}