Skip to main content
GET
Model Management API

New API Version

Get Informações dos Modelos

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. Suporta multi-modality queries (comma-separated).
string
Fuzzy search for model name (suporta partial matching).
string
Model features. Supported values: thinking (reasoning), tools (tool use), function_calling, web (web search), deepsearch, long_context, structured_outputs. Suporta 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 no 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: Suporta 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

Observações Importantes

  1. Data Integrity: This endpoint returns all models that meet the criteria, without pagination.
  2. Type Compatibility: Suporta 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 no system’s default order.

Legacy API Version

⚠️ Note: O seguinte are legacy API endpoints. Recomenda-se 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

Código de Status 200

Get Informações dos Modelos

Endpoint: GET /v1/models/:model

Parâmetros da Requisição

Response Example:

Response

Response Data Structure

Código de Status 200
Última atualização: 2026-06-01