Documentation menu

Catalog

The models offered to the calling key's environment through the platform's own provider keys, and their prices.

OperationMethodSDK
List catalog modelsGEThixel.catalog.listModels

List catalog models#

GET/v1/catalog/modelshixel.catalog.listModels

Every model of the catalog the environment draws on, those its allowlist excludes included (allowed: false): names, aliases, limits and prices, never a credential.

Takes an environment key with the management scope, or a project key with the member role or higher, naming the environment in x-hixel-environment.

Response 200: CatalogModels

FieldTypeDescription
catalog requiredstring | nullThe catalog the environment draws on; null (and no models) when it draws on none.
markup_bps requiredintegerThe environment's markup on cost, in basis points.
models requiredarray of object
models[].name requiredstring
models[].allowed requiredbooleanWhether the environment's allowlist lets it use the model; when not, it could enable it.
models[].aliases requiredarray of stringOther names that reach this model.
models[].provider required"openai" | "anthropic" | "azure" | "google" | "groq" | "mistral" | …An upstream model vendor: what a route names and what a customer can bring its own key for. bedrock is Amazon Bedrock and vertex Google Vertex AI, which serve other vendors' models under their own authentication.
models[].endpoints requiredarray of "chat" | "embeddings" | "image_generations" | "image_edits" | "audio_speech" | "audio_transcriptions" | …What the model is offered for.
models[].context_window requiredinteger | nullnull when the vendor publishes none (an image or speech model).
models[].max_output_tokens requiredinteger | null
models[].price requiredobject
models[].price.input requiredstringAn amount of micro-USD (millionths of a US dollar) as a decimal string: "1500000" is 1.50 USD. Never a JSON number.
models[].price.output requiredstringAn amount of micro-USD (millionths of a US dollar) as a decimal string: "1500000" is 1.50 USD. Never a JSON number.
models[].price.cache_read requiredstringAn amount of micro-USD (millionths of a US dollar) as a decimal string: "1500000" is 1.50 USD. Never a JSON number.
models[].price.cache_write_5m requiredstringAn amount of micro-USD (millionths of a US dollar) as a decimal string: "1500000" is 1.50 USD. Never a JSON number.
models[].price.cache_write_1h requiredstringAn amount of micro-USD (millionths of a US dollar) as a decimal string: "1500000" is 1.50 USD. Never a JSON number.
models[].price.long_context requiredobject | null
models[].price.units requiredobject
models[].billed_price requiredobject
models[].billed_price.input requiredstringAn amount of micro-USD (millionths of a US dollar) as a decimal string: "1500000" is 1.50 USD. Never a JSON number.
models[].billed_price.output requiredstringAn amount of micro-USD (millionths of a US dollar) as a decimal string: "1500000" is 1.50 USD. Never a JSON number.
models[].billed_price.cache_read requiredstringAn amount of micro-USD (millionths of a US dollar) as a decimal string: "1500000" is 1.50 USD. Never a JSON number.
models[].billed_price.cache_write_5m requiredstringAn amount of micro-USD (millionths of a US dollar) as a decimal string: "1500000" is 1.50 USD. Never a JSON number.
models[].billed_price.cache_write_1h requiredstringAn amount of micro-USD (millionths of a US dollar) as a decimal string: "1500000" is 1.50 USD. Never a JSON number.
models[].billed_price.long_context requiredobject | null
models[].billed_price.units requiredobject
models[].price_source requiredobject
models[].price_source.url requiredstring
models[].price_source.checked_on requiredstring

Errors

  • 400
    • invalid_request: The request is malformed or fails validation; param names the field.
    • environment_required: a project key was sent without x-hixel-environment.
  • 401 api_key_required, invalid_api_key, expired_api_key: no key was sent; the key is unknown or revoked, or its project or environment is archived; or it has expired.
  • 403
    • key_inactive: the key was revoked or expired while the request ran, or an environment's key lost the management scope.
    • management_scope_required: the environment's key does not have the management scope.
  • 404 environment_not_found: x-hixel-environment names an environment outside the project key's project, an archived one, or another than the environment key's own.
  • 500 internal: an unexpected failure on the platform's side (internal_error); the details are logged, never returned.
  • 503 database_unavailable: A dependency, such as the database or Stripe, cannot be reached; retry later.
curl "https://api.hixel.dev/v1/catalog/models" \
  -H "Authorization: Bearer $HIXEL_API_KEY"