Skip to main content

Get custom model

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}
Use 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

NameLocationTypeRequiredDescriptionExample
idpathstring · uuidYesid; format="uuid"-

Response statuses

HTTP statusTriggerResponse structureClient action
200Request succeededSee “Response” on this pageRead the response.
defaultOther authentication, authorization, validation or dependency errorsSee “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
NameTypeRequiredDescriptionExample
api_key_configuredbooleanYesapi key configured-
created_atstring · date-timeYescreated at; format="date-time"-
created_byobjectYesCreator ID-
credential_configuredbooleanYescredential configured-
credential_fingerprintstringNocredential fingerprint-
credential_versioninteger · int64Nocredential version; format="int64"-
descriptionstringNodescription-
description_i18nobjectNodescription i18n-
display_namestringYesdisplay name-
display_name_i18nobjectNoDisplay names by locale-
endpoint_urlstringYesendpoint url-
idstring · uuidYesid; format="uuid"-
is_reasoningbooleanYesis reasoning-
is_vlbooleanYesis vl-
last_test_codestringNolast test code-
last_test_resultstringNolast test result; enum=["success", "failed"] Values: "failed", "success"-
last_tested_atstring · date-timeNolast tested at; format="date-time"-
lifecyclestringYeslifecycle; enum=["draft", "test", "active", "disabled"] Values: "active", "disabled", "draft", "test"-
max_context_window_tokensinteger · int64Yesmax context window tokens; format="int64", minimum=1-
model_keystringYesmodel key-
pass_third_party_user_idbooleanYespass third party user id-
protocol_profilestringYesprotocol profile; enum=["openai_chat_completions_v1"] Values: "openai_chat_completions_v1"-
provider_adapterstringYesprovider adapter; enum=["openai_compatible"] Values: "openai_compatible"-
row_versioninteger · int64Yesrow version; format="int64"-
target_versioninteger · int64Yestarget version; format="int64"-
updated_atstring · date-timeYesupdated at; format="date-time"-
updated_byobjectYesUpdater ID-
upstream_modelstringYesupstream model-

created_by

FieldTypeRequiredDescription
emailstring · emailNoemail; format="email"
namestringNoName
user_idstring · uuidYesuser id; format="uuid"

updated_by

FieldTypeRequiredDescription
emailstring · emailNoemail; format="email"
namestringNoName
user_idstring · uuidYesuser id; format="uuid"

Errors and retries

Existing UI error codes and validation are preserved. 401/403 indicate authentication or authorization failure; 409 requires rereading before retry; 413 indicates an oversized request; 400/422 indicate invalid input; 503 indicates an unavailable dependency. The response and machine contract are authoritative. Retry idempotent creates with the same Idempotency-Key and payload.