Ir al contenido

API de consola: catalog

Esta página se genera a partir de server/api/openapi.yaml. Su contenido está en inglés; no la edites a mano.

Public model catalogue with prices. Handlers: internal/console/catalog.

Model catalogue with list prices

operationId catalogListModels · auth: public

Parameter In Type Required Description
kind query ModelKind no
vendor query string no
q query string no Matches slug, display name and aliases.
Status Meaning Body
200 OK application/json CatalogModelList
default Error envelope. The HTTP status follows the error kind. application/json Error

Response 200 application/json — CatalogModelList

  • data (array of CatalogModel, required)
    • id (string, required)
    • slug (string, required)
    • display_name (string, required)
    • vendor (string, required)
    • kind (ModelKind, required)
    • description (string, required)
    • context_window (integer, required) — 0 = unknown.
    • max_output_tokens (integer, required) — 0 = unknown.
    • input_modalities (array of string, required)
    • output_modalities (array of string, required)
    • capabilities (ModelCapabilities, required)
      • streaming (boolean, required)
      • tools (boolean, required)
      • vision (boolean, required)
      • audio_input (boolean, required)
      • audio_output (boolean, required)
      • documents (boolean, required)
      • reasoning (boolean, required)
      • prompt_caching (boolean, required)
      • structured_output (boolean, required)
      • web_search (boolean, required)
      • builtin_tools (array of string) — Provider-executed tool types other than web search that requests may use (for example code_execution_20250522). An entry ending in * matches by prefix. Empty or absent allows none.
      • service_tiers (array of string) — Non-default service tiers requests may ask for (for example flex, priority). An entry ending in * matches by prefix. Empty or absent allows none.
    • status (ModelStatus, required) — hidden: routable but unlisted. deprecated: listed with a marker. disabled: not routable.
    • aliases (array of string, required)
    • providers (array of string, required) — Provider tags that currently serve the model.
    • pricing (ModelPricing)
      • price_version_id (string, required)
      • tiers (array of PriceTier, required)
        • min_context_tokens (integer, required) — The tier applies to prompts of at least this many tokens. Exactly one tier has 0.
        • input_per_million (PricePerMillion, required, pattern: ”^[0-9]+$”) — A price in nano-USD per 1,000,000 units (tokens or characters), as a decimal integer string.
        • output_per_million (PricePerMillion, required, pattern: ”^[0-9]+$”) — A price in nano-USD per 1,000,000 units (tokens or characters), as a decimal integer string.
        • reasoning_per_million (string, required, pattern: ”^[0-9]+$”, nullable) — Null = output price.
        • cache_read_per_million (string, required, pattern: ”^[0-9]+$”, nullable) — Null = input price.
        • cache_write_5m_per_million (string, required, pattern: ”^[0-9]+$”, nullable) — Null = input price.
        • cache_write_1h_per_million (string, required, pattern: ”^[0-9]+$”, nullable) — Null = 5-minute cache write price, then input price.
        • image_input_per_million (string, required, pattern: ”^[0-9]+$”, nullable) — Null = input price.
        • audio_input_per_million (string, required, pattern: ”^[0-9]+$”, nullable) — Null = input price.
        • image_output_per_million (string, required, pattern: ”^[0-9]+$”, nullable) — Null = output price.
        • audio_output_per_million (string, required, pattern: ”^[0-9]+$”, nullable) — Null = output price.
        • input_chars_per_million (string, required, pattern: ”^[0-9]+$”) — Per million input characters (character-priced speech models). (Nano-USD per million units, integer string.)
        • request_nano (string, required, pattern: ”^-?[0-9]+$”) — Flat fee per billable request. (Nano-USD, integer string.)
        • web_search_nano (string, required, pattern: ”^-?[0-9]+$”) — Per provider-executed web search call. (Nano-USD, integer string.)
        • image_nano (string, required, pattern: ”^-?[0-9]+$”) — Per generated image unless image_variants has the variant. (Nano-USD, integer string.)
        • image_variants (map of string, required) — Per-image price by <quality>:<size>, nano-USD strings.
        • audio_input_second_nano (string, required, pattern: ”^-?[0-9]+$”) — Per second of input audio. (Nano-USD, integer string.)
        • video_second_nano (string, pattern: ”^-?[0-9]+$”) — Per second of generated video unless video_variants has the resolution. Absent = 0. (Nano-USD, integer string.)
        • video_variants (map of string) — Per-second video price by resolution <width>x<height>, nano-USD strings.
        • id (string, required)

One model with its price tiers

operationId catalogGetModel · auth: public

Parameter In Type Required Description
model_id path string<uuid> yes
Status Meaning Body
200 OK application/json CatalogModel
default Error envelope. The HTTP status follows the error kind. application/json Error

Response 200 application/json — CatalogModel

  • id (string, required)
  • slug (string, required)
  • display_name (string, required)
  • vendor (string, required)
  • kind (ModelKind, required)
  • description (string, required)
  • context_window (integer, required) — 0 = unknown.
  • max_output_tokens (integer, required) — 0 = unknown.
  • input_modalities (array of string, required)
  • output_modalities (array of string, required)
  • capabilities (ModelCapabilities, required)
    • streaming (boolean, required)
    • tools (boolean, required)
    • vision (boolean, required)
    • audio_input (boolean, required)
    • audio_output (boolean, required)
    • documents (boolean, required)
    • reasoning (boolean, required)
    • prompt_caching (boolean, required)
    • structured_output (boolean, required)
    • web_search (boolean, required)
    • builtin_tools (array of string) — Provider-executed tool types other than web search that requests may use (for example code_execution_20250522). An entry ending in * matches by prefix. Empty or absent allows none.
    • service_tiers (array of string) — Non-default service tiers requests may ask for (for example flex, priority). An entry ending in * matches by prefix. Empty or absent allows none.
  • status (ModelStatus, required) — hidden: routable but unlisted. deprecated: listed with a marker. disabled: not routable.
  • aliases (array of string, required)
  • providers (array of string, required) — Provider tags that currently serve the model.
  • pricing (ModelPricing)
    • price_version_id (string, required)
    • tiers (array of PriceTier, required)
      • min_context_tokens (integer, required) — The tier applies to prompts of at least this many tokens. Exactly one tier has 0.
      • input_per_million (PricePerMillion, required, pattern: ”^[0-9]+$”) — A price in nano-USD per 1,000,000 units (tokens or characters), as a decimal integer string.
      • output_per_million (PricePerMillion, required, pattern: ”^[0-9]+$”) — A price in nano-USD per 1,000,000 units (tokens or characters), as a decimal integer string.
      • reasoning_per_million (string, required, pattern: ”^[0-9]+$”, nullable) — Null = output price.
      • cache_read_per_million (string, required, pattern: ”^[0-9]+$”, nullable) — Null = input price.
      • cache_write_5m_per_million (string, required, pattern: ”^[0-9]+$”, nullable) — Null = input price.
      • cache_write_1h_per_million (string, required, pattern: ”^[0-9]+$”, nullable) — Null = 5-minute cache write price, then input price.
      • image_input_per_million (string, required, pattern: ”^[0-9]+$”, nullable) — Null = input price.
      • audio_input_per_million (string, required, pattern: ”^[0-9]+$”, nullable) — Null = input price.
      • image_output_per_million (string, required, pattern: ”^[0-9]+$”, nullable) — Null = output price.
      • audio_output_per_million (string, required, pattern: ”^[0-9]+$”, nullable) — Null = output price.
      • input_chars_per_million (string, required, pattern: ”^[0-9]+$”) — Per million input characters (character-priced speech models). (Nano-USD per million units, integer string.)
      • request_nano (string, required, pattern: ”^-?[0-9]+$”) — Flat fee per billable request. (Nano-USD, integer string.)
      • web_search_nano (string, required, pattern: ”^-?[0-9]+$”) — Per provider-executed web search call. (Nano-USD, integer string.)
      • image_nano (string, required, pattern: ”^-?[0-9]+$”) — Per generated image unless image_variants has the variant. (Nano-USD, integer string.)
      • image_variants (map of string, required) — Per-image price by <quality>:<size>, nano-USD strings.
      • audio_input_second_nano (string, required, pattern: ”^-?[0-9]+$”) — Per second of input audio. (Nano-USD, integer string.)
      • video_second_nano (string, pattern: ”^-?[0-9]+$”) — Per second of generated video unless video_variants has the resolution. Absent = 0. (Nano-USD, integer string.)
      • video_variants (map of string) — Per-second video price by resolution <width>x<height>, nano-USD strings.
      • id (string, required)