Catalog
The models offered to the calling key's environment through the platform's own provider keys, and their prices.
| Operation | Method | SDK |
|---|---|---|
| List catalog models | GET | hixel.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
| Field | Type | Description |
|---|---|---|
catalog required | string | null | The catalog the environment draws on; null (and no models) when it draws on none. |
markup_bps required | integer | The environment's markup on cost, in basis points. |
models required | array of object | |
models[].name required | string | |
models[].allowed required | boolean | Whether the environment's allowlist lets it use the model; when not, it could enable it. |
models[].aliases required | array of string | Other 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 required | array of "chat" | "embeddings" | "image_generations" | "image_edits" | "audio_speech" | "audio_transcriptions" | … | What the model is offered for. |
models[].context_window required | integer | null | null when the vendor publishes none (an image or speech model). |
models[].max_output_tokens required | integer | null | |
models[].price required | object | |
models[].price.input required | string | An 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 required | string | An 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 required | string | An 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 required | string | An 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 required | string | An 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 required | object | null | |
models[].price.units required | object | |
models[].billed_price required | object | |
models[].billed_price.input required | string | An 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 required | string | An 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 required | string | An 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 required | string | An 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 required | string | An 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 required | object | null | |
models[].billed_price.units required | object | |
models[].price_source required | object | |
models[].price_source.url required | string | |
models[].price_source.checked_on required | string |
Errors
- 400
invalid_request: The request is malformed or fails validation;paramnames the field.environment_required: a project key was sent withoutx-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 themanagementscope.management_scope_required: the environment's key does not have themanagementscope.
- 404
environment_not_found:x-hixel-environmentnames 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"const catalogModels = await hixel.catalog.listModels();