Get custom model. GET /api/openapi/v1/models/custom/{id}, scope admin.v1.models.read.
- Scope:
admin.v1.models.read - Permission: Read Models
- Action: read
- Endpoint: GET
/api/openapi/v1/models/custom/{id}
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 |
|---|---|---|---|---|---|
id | path | string · uuid | Yes | id; format="uuid" | - |
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 |
|---|---|---|---|---|
api_key_configured | boolean | Yes | api key configured | - |
created_at | string · date-time | Yes | created at; format="date-time" | - |
created_by | object | Yes | Creator ID | - |
credential_configured | boolean | Yes | credential configured | - |
credential_fingerprint | string | No | credential fingerprint | - |
credential_version | integer · int64 | No | credential version; format="int64" | - |
description | string | No | description | - |
description_i18n | object | No | description i18n | - |
display_name | string | Yes | display name | - |
display_name_i18n | object | No | Display names by locale | - |
endpoint_url | string | Yes | endpoint url | - |
id | string · uuid | Yes | id; format="uuid" | - |
is_reasoning | boolean | Yes | is reasoning | - |
is_vl | boolean | Yes | is vl | - |
last_test_code | string | No | last test 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 | pass third party user id | - |
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 | - |
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" |
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" |