List custom models. GET /api/openapi/v1/models/custom, scope admin.v1.models.read.
- Scope:
admin.v1.models.read - Permission: Read Models
- Action: read
- Endpoint: GET
/api/openapi/v1/models/custom
Authorization: Bearer \<API_KEY\>. The application must have subject_scope={"mode":"all"}; restricted scopes return 403. Scopes are independently granted. Do not cache responses.
Model configuration covers BYOK custom models and system-model listing.
Creation reuses UI test-and-save: probe first, persist nothing on failure, and save without activating on success. models/connection-tests is an independent preflight that persists neither model nor credentials.
BYOK feature and management gates, endpoint restrictions and credential handling remain unchanged. Lists remain paginated. Creation requires Idempotency-Key.
No update, deletion, activation or credential-rotation operation is added.
Common request headers
Apply the “Authentication and headers” section in “Configure the QwenWork console through APIs”: Authorization is required and X-Request-Id is optional. See this page for the required scope.
Whether Idempotency-Key applies and is required is specified in this page’s request parameters; a tracing identifier does not replace an idempotency key.
Request parameters
| Name | Location | Type | Required | Description | Example |
|---|---|---|---|---|---|
page | query | integer · int64 | No | Page number, starting at 1; format="int64", minimum=1, default=1 default=1 | - |
page_size | query | integer · int64 | No | Page size; format="int64", minimum=1, maximum=100, default=20 default=20 | - |
Response statuses
| HTTP status | Trigger | Response structure | Client action |
|---|---|---|---|
200 | Request succeeded | See “Response” on this page | Read the response. |
default | Other authentication, authorization, validation or dependency errors | See “General error” in “Configure the QwenWork console through APIs” | Handle the status and code; verify the result and idempotency requirements before retrying writes. |
Response
Content-Type: application/json
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
items | array\<object\> | Yes | items | - |
management_enabled | boolean | Yes | management enabled | - |
page | integer · int64 | Yes | Page number, starting at 1; format="int64" | - |
page_size | integer · int64 | Yes | Page size; format="int64" | - |
total_pages | integer · int64 | Yes | Total pages; zero when no records match; format="int64" | - |
total_rows | integer · int64 | Yes | Total matching records; format="int64" | - |
items[]
| Field | Type | Required | Description |
|---|---|---|---|
api_key_configured | boolean | Yes | Whether an API key is configured; plaintext is never returned |
created_at | string · date-time | Yes | created at; format="date-time" |
created_by | object | Yes | Creator ID |
credential_configured | boolean | Yes | Whether credentials are configured |
credential_fingerprint | string | No | Credential fingerprint, not the plaintext secret |
credential_version | integer · int64 | No | credential version; format="int64" |
description | string | No | Description text |
description_i18n | object | No | Descriptions keyed by locale |
display_name | string | Yes | Display name |
display_name_i18n | object | No | Display names by locale |
endpoint_url | string | Yes | Model service endpoint |
id | string · uuid | Yes | id; format="uuid" |
is_reasoning | boolean | Yes | Whether reasoning is supported |
is_vl | boolean | Yes | Whether visual input is supported |
last_test_code | string | No | Latest connection-test result code |
last_test_result | string | No | last test result; enum=["success", "failed"] Values: "failed", "success" |
last_tested_at | string · date-time | No | last tested at; format="date-time" |
lifecycle | string | Yes | lifecycle; enum=["draft", "test", "active", "disabled"] Values: "active", "disabled", "draft", "test" |
max_context_window_tokens | integer · int64 | Yes | max context window tokens; format="int64", minimum=1 |
model_key | string | Yes | Model key |
pass_third_party_user_id | boolean | Yes | Whether to forward third-party user IDs to the model provider |
protocol_profile | string | Yes | protocol profile; enum=["openai_chat_completions_v1"] Values: "openai_chat_completions_v1" |
provider_adapter | string | Yes | provider adapter; enum=["openai_compatible"] Values: "openai_compatible" |
row_version | integer · int64 | Yes | row version; format="int64" |
target_version | integer · int64 | Yes | target version; format="int64" |
updated_at | string · date-time | Yes | updated at; format="date-time" |
updated_by | object | Yes | Updater ID |
upstream_model | string | Yes | Upstream model name |
items[].created_by
| Field | Type | Required | Description |
|---|---|---|---|
email | string · email | No | email; format="email" |
name | string | No | Name |
user_id | string · uuid | Yes | user id; format="uuid" |
items[].updated_by
| Field | Type | Required | Description |
|---|---|---|---|
email | string · email | No | email; format="email" |
name | string | No | Name |
user_id | string · uuid | Yes | user id; format="uuid" |