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

Basic information

array
An array of model information objects
string
The unique identifier for the model, which is the value used for the model parameter when calling the API
string
The display name of the model
integer
The platform-internal ID of the model developer, usable with the developer_id request parameter for filtering
string
A description of the model’s functionality (in English)
string
Model vendor identifier (such as openai, anthropic, zhipu). This is a separate numbering system from developer_id. Optional field; when absent, the value has not been recorded
string
Model type, comma-separated. Supported values: llm (large language model), image_generation (image generation model), video (video generation model), tts (text-to-speech model), stt (speech-to-text model), embedding (embedding model), rerank (reranking model), ocr (text recognition model), search (search model), 3d (3D generation model)
string
Supported features, comma-separated. Supported values: thinking (supports reasoning), tools (supports tool use), function_calling (supports function calling), web (supports search), deepsearch (supports deep search), long_context (long-context model), structured_outputs (structured outputs)
string
Supported input modalities, comma-separated. Supported values: text, image, audio, video, pdf
string
Supported output modalities, comma-separated. Supported values: text, image, audio, video. Optional field; when absent, the value has not been annotated
string
API protocols available for the model, comma-separated. Supported values: chat_completions (Chat Completions API), responses (Responses API), claude_api (Claude Messages API), gemini_api (Gemini API). An empty value means the field has not been annotated yet
integer
Maximum number of output tokens
integer
Context window size (maximum number of input tokens)
string
Model release date, in YYYY-MM-DD or YYYY-MM format. Optional field; when absent, the value has not been recorded
string
Date of the model’s most recent update. When there is no in-place upgrade record, it equals release_date. Optional field
boolean
Whether the model weights are openly downloadable and self-deployable. false means the vendor has explicitly stated the weights will not be released. Optional field; when absent, the value has not been recorded
boolean
Whether the platform has completed verification of the model’s request parameter schema

Pricing

object
Pricing information object. All prices are in USD per 1 million (1M) tokens
number
Input token price (USD / 1M tokens)
number
Output token price (USD / 1M tokens)
number
Cache read price (USD / 1M tokens, optional field)
number
Cache write price (USD / 1M tokens, optional field)
array
Tiered pricing array, optional field. Each element contains a tier object (type is always context, size is the context token count threshold) plus the input, output, cache_read, and cache_write prices for that tier. When the request’s context length exceeds size, billing follows that tier’s prices; the top-level input, output, and related fields are the default tier prices

Reasoning and tool capabilities

boolean
Whether the model has reasoning capability, a boolean normalized from features. Optional field; when absent, the value has not been annotated, and absence does not mean the capability is unsupported
boolean
Whether the model supports tool use, a boolean normalized from features. Optional field; when absent, the value has not been annotated, and absence does not mean the capability is unsupported
array
Reasoning level configuration array, optional field. Each item contains type. Supported values: toggle (reasoning can be switched on and off), effort (controlled by level, with values listing the available levels and default giving the default level), budget_tokens (controlled by token budget)
object
Where reasoning content is returned under each API protocol. Optional field; when absent, the value has not been recorded. Keys are protocol names (anthropic.messages, openai.chat_completions, openai.responses, google.gemini); values are true (the protocol can return reasoning content) or {"field": "reasoning_content"} (reasoning content is returned via that field). Read the key that matches the protocol you actually call

Variants and lifecycle

string
Parent model ID, optional field. When present, the current model_id and the parent model are the same model, differing only in platform-side tier or preset
string
Variant type, appearing together with variant_of. Supported values: pricing-tier (pricing tier), channel-tier (access tier), mode-preset (mode preset), deprecated-alias (deprecated alias)
string
Model lifecycle stage, always returned. Supported values: active (in normal service), deprecated (retirement announced, still callable). Models whose service has ended do not appear in this endpoint’s response
string
Time of the retirement announcement (ISO 8601 format). Returned only in the deprecated stage
string
Planned end-of-service time (ISO 8601 format). Optional field; may be returned only in the deprecated stage
string
Recommended replacement model ID for migration. Optional field; may be returned only in the deprecated stage

Limited-time promotions

object
Limited-time promotion information, optional field. Absent when there is no promotion
string
Name of the promotion
integer
Discount percentage. For example, 10 means 10% off
string
Promotion time rule type. Supported values: absolute (an absolute time range, see the absolute object’s start and end), daily (fixed time windows each day, see daily.ranges), weekly (fixed time windows each week, see the weekly array’s weekdays and ranges; weekdays uses ISO 8601 numbering, with Monday as 1 and Sunday as 7)

Request Examples

Request Parameter Descriptions (for Filtering)

string
Model type. Supported values: llm (large language model), image_generation (image generation model), video (video generation model), tts (text-to-speech model), stt (speech-to-text model), embedding (embedding model), rerank (reranking model), ocr (text recognition model), search (search model), 3d (3D generation model)
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 (supports reasoning), tools (supports tool use), function_calling (supports function calling), web (supports search), deepsearch (supports deep search), long_context (long-context model), structured_outputs (structured outputs). Supports multi-feature queries (comma-separated)
string
Filter by API protocol. Supported values: chat_completions, responses, claude_api, gemini_api. Supports multi-value queries (comma-separated)
integer
Filter by model developer ID. IDs are given in the developer_id response field
string
Filter by model tag, such as coding (coding models)
boolean
When set to true, returns only models for which the platform has completed request parameter schema verification (models whose schema_checked response field is true)
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: private, 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
    • t2t ↔ llm
    • t2i ↔ image_generation
    • t2v ↔ video
    • reranking ↔ rerank
  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
  5. Lifecycle: Models with retire_stage set to deprecated can still be called normally. Refer to the successor_model and retired_at fields to plan migration ahead of time; models whose service has ended do not appear in the returned list
  6. Optional fields: When a field marked as optional is absent, the information has not been annotated or recorded. Absence does not mean the model lacks the corresponding capability

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-09-18