Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Models

Use the model APIs to retrieve the catalogue and deployment metadata available to your API key.

List available models

GET /v1/models returns the model IDs that the authenticated key can use.

curl https://api.tensorx.ai/v1/models \
  -H "Authorization: Bearer $TENSORX_API_KEY"

To print only the IDs:

curl -sS https://api.tensorx.ai/v1/models \
  -H "Authorization: Bearer $TENSORX_API_KEY" \
  | jq -r '.data[].id'

Use an ID from this response as the model value in API requests. Access can differ by key, so this endpoint is the source of truth for availability.

Inspect model metadata

GET /v1/model/info returns customer-visible metadata for the available models.

curl -sS https://api.tensorx.ai/v1/model/info \
  -H "Authorization: Bearer $TENSORX_API_KEY" \
  | jq '.data[] | {
      model: .model_name,
      mode: .model_info.mode,
      max_input_tokens: .model_info.max_input_tokens,
      max_output_tokens: .model_info.max_output_tokens,
      quantization: .model_info.quantization,
      supports_reasoning: .model_info.supports_reasoning,
      supports_function_calling: .model_info.supports_function_calling,
      supports_vision: .model_info.supports_vision,
      supports_prompt_caching: .model_info.supports_prompt_caching
    }'

Fields that do not apply to a model can be null or absent. Read the returned values rather than assuming that every model supports the same parameters.

Use a selected model

The example below reads the model ID from an environment variable so it can be changed without editing the application.

Pricing

Current pricing is published at tensorx.ai/models. The model cards include input, cache-read and output prices where applicable.

See also

Last updated

Was this helpful?