Search current AI models by price, context window, and capability.
Use this for up-to-date model pricing/features you don't reliably know.
Prices are USD per 1M tokens. Results are cheapest-input-price first.
Args:
query: match part of a model name/id (e.g. "haiku", "gpt").
provider: filter to one provider (openai, anthropic, google, xai, mistral, deepseek, groq).
max_input_price: only models at or below this USD/1M input price.
min_context: only models with at least this context window (tokens).
needs_vision: only models that accept images.
limit: max results.
Envelope: this searches our model-pricing registry, so measured_at = when the freshest matching
row was last refreshed (each row's `updated_at`); max_age 18h covers the 12h registry-refresh
cycle so a current row never falsely reads "stale". A search returning nothing yields
unavailable — there's no honest observation time to claim.
Every value is returned in an Ed25519-signed, provenance-stamped envelope (source and observation time) you can verify offline against /.well-known/keys, no account required.