Skip to main content
GET
Model Management API

New API Version

Get Model Information

Endpoint: GET https://aihubmix.com/api/v1/models Description: Fetches detailed information for all available models.

Model Object Field Descriptions

array
An array of model information objects.
string
The unique identifier for the model.
string
A description of the model’s functionality (in English).
string
Model type. Supported values: llm (Large Language Model), image_generation, video, tts (Text-to-Speech), stt (Speech-to-Text), embedding, rerank.
string
Supported features. Supported values: thinking (reasoning), tools (tool use), function_calling, web (web search), deepsearch, long_context, structured_outputs.
string
Supported input modalities. Supported values: text, image, audio, video, pdf.
string
Maximum number of output tokens.
string
Context window size (maximum number of input tokens).
object
Pricing information object.
number
Input token price (per 1K tokens, in USD).
number
Output token price (per 1K tokens, in USD).
number
Cache read price (per 1K tokens, in USD, optional field).
number
Cache write price (per 1K tokens, in USD, optional field).

Request Examples

Request Parameter Descriptions (for Filtering)

string
Model type. Supported values: llm (Large Language Model), image_generation, video, tts (Text-to-Speech), stt (Speech-to-Text), embedding, rerank.
string
Input modalities. Supported values: text, image, audio, video, pdf. Supports multi-modality queries (comma-separated).
string
Fuzzy search for model name (supports partial matching).
string
Model features. Supported values: thinking (reasoning), tools (tool use), function_calling, web (web search), deepsearch, long_context, structured_outputs. Supports multi-feature queries (comma-separated).
string
Sort by field. Supported values:
  • model_ratio: Sort by cost-effectiveness.
  • context_length: Sort by context length.
  • coding: Prioritize coding models.
  • order: Sort by default order.
string
Sort order. Supported values:
  • asc (ascending)
  • desc (descending)

Successful Response Example

Usage Scenario Examples

Note: When using smart sort for coding models, the system will prioritize models tagged with coding, and other models will be listed in the default order.

Performance Optimization

Caching Mechanism

  • Cache Policy: HTTP caching, cache duration 300 seconds (5 minutes).
  • Cache Control: Cache-Control: public, max-age=300, stale-while-revalidate=300
  • Content Validation: Supports ETag content hash validation.

Cache Usage Example

If the content has not been updated, the server returns a 304 Not Modified status code.

Error Handling

Important Notes

  1. Data Integrity: This endpoint returns all models that meet the criteria, without pagination.
  2. Type Compatibility: Supports automatic mapping between new and old type identifiers:
    • t2tllm
    • t2iimage_generation
    • t2vvideo
    • rerankingrerank
  3. Filtering Logic: Multiple filter conditions are combined with a logical AND.
  4. Sorting Rule: When no sorting method is specified, models are arranged in the system’s default order.

Legacy API Version

⚠️ Note: The following are legacy API endpoints. It is recommended to use the new API version for better performance and features.

Get Model List

Endpoint: GET /v1/models
  • If a user is logged in, it retrieves the list of available models for the user’s group. If no user is logged in, it retrieves the list for the default group.
  • If the header contains an Authorization field, it queries the list of models configured for the corresponding token.
Response Example:

Response

Response Data Structure

Status Code 200

Get Model Information

Endpoint: GET /v1/models/:model

Request Parameters

Response Example:

Response

Response Data Structure

Status Code 200
Last updated: 2026-06-01